| Format | Description | Use Case |
|---|---|---|
| JSON | Default format | SCANOSS ecosystem, detailed analysis |
| CycloneDX | Industry-standard CBOM | Compliance, third-party tools |
JSON Format
The default output format containing detailed cryptographic asset information, optimised for the SCANOSS ecosystem.Generate
Format Specification
Field Descriptions
| Field | Description |
|---|---|
version | Format version (currently "1.0") |
tool.name | Scanner used (opengrep) |
tool.version | Scanner version |
findings | Array of file-level findings |
file_path | Relative path to the scanned file |
language | Detected programming language |
cryptographic_assets | Array of cryptographic findings within the file |
match_type | Scanner that detected the asset |
line_number | Line number where the match was found |
match | Actual code snippet matched |
rule.id | Unique rule identifier |
rule.message | Human-readable description of the rule |
rule.severity | Finding severity level (INFO, WARNING, ERROR) |
type | Asset classification (see Supported Asset Types) |
name | Algorithm or protocol name |
primitive | Cryptographic primitive type |
mode | Mode of operation (applicable to block ciphers) |
padding | Padding scheme used |
Example Output
Use Cases
- Integration with the SCANOSS platform via its native JSON schema
- Building custom analysis pipelines that consume detailed finding data
- Tracking cryptographic assets at the code-snippet level
- Security auditing workflows requiring full match context
CycloneDX Format
CycloneDX 1.6-compatible Cryptography Bill of Materials (CBOM) format for standardised reporting.Features
- Schema Validation: Output is validated against the CycloneDX 1.6 specification.
- Standardised Components: Cryptographic assets are mapped to CycloneDX-defined component types.
- Rich Metadata: Includes algorithm properties, evidence, and provenance information.
Supported Asset Types
| Type | Description |
|---|---|
algorithm | Cryptographic algorithms (AES, RSA, SHA-256, etc.) |
certificate | Digital certificates and certificate chains |
protocol | Cryptographic protocols (TLS, SSH, etc.) |
related-crypto-material | Keys, seeds, nonces, and other cryptographic material |
Generate
Example Output
Converting Formats
Use theconvert command to transform a SCANOSS JSON output file into CycloneDX
CBOM format:
Integration
CycloneDX CBOM output can be consumed by tools including:- Dependency-Track (OWASP)
- Software Bill of Materials (SBOM) aggregators
- Security scanning platforms
- Compliance reporting tools
- Supply chain risk management systems
Format Comparison
| Feature | SCANOSS JSON | CycloneDX CBOM |
|---|---|---|
| Ecosystem | SCANOSS-specific | Industry standard |
| Detail Level | High (includes code snippets) | Medium (structured metadata) |
| File Size | Larger | Smaller |
| Best For | Deep analysis, custom tooling | Compliance, integration, reporting |
| Schema | SCANOSS JSON spec | CycloneDX 1.6 |
| Validation | SCANOSS tools | CycloneDX validators |