Skip to content

BSI TR-03183-2 comp_source_code URL and hash not found #585

@robin-s-007

Description

@robin-s-007

Hello,

I using sbomqs to validate an SBOM template (CycloneDX v1.6 JSON) against the BSI v2.1.0 standard.
While sbomqs only supports BSI v2.0 the changelog in v2.1.0 does not list anything significant differences.

But I noticed that the source code URL and source code hash are not detected by sbomqs, while the input SBOM complies to the BSI format.

BSI format:
"components": [{
"externalReferences": [{
"type": "source-distribution",
"url": "..."
}]
}]

In file:
"externalReferences":[
{
"type": "source-distribution",
"url": "https://svn.ACME.com/..../Measure.c",
"hashes": [
{
"alg": "SHA-512",
"content": "25bce836d2eac1faa04bb4160c23434b855db09da0be765b95e21e0ba0ab822fec28463bfac147267b89ce343a5d3195a58fd9c7f6a95b41780c24cb522739ef"
}
]
}
]

The same is true for the hash, but sbomqs picksup a hash at this level:
"components": [{
"hashes": {...}
}]

and interprets this as being under the
"components": [{
"externalReferences": [{
"type": "source-distribution",
"hashes": [{
"alg": "SHA-512",
"content": "..."
}]
}]
}]

I have attached the sbom test file.
Hope it can be fixed

Best Regards,

Robin

C project SBOM example-v3_issuereport -BSi tests.json

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions