Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CPE in sbom.cdx.json to current organisation #9982

Open
finger42 opened this issue Feb 14, 2025 · 2 comments
Open

Update CPE in sbom.cdx.json to current organisation #9982

finger42 opened this issue Feb 14, 2025 · 2 comments
Labels
bug size-s Estimated task size: small (~2d)

Comments

@finger42
Copy link

Hello,

in the file:
https://github.com/Mbed-TLS/mbedtls/blob/03e704018ad7e005648f5ca428bc095e4ce3b5a0/scripts/sbom.cdx.json#L16C8-L16C21

the CPE is pointing to the trustedfirmware
"cpe": "cpe:2.3:a:trustedfirmware:mbed_tls:@VCS_TAG@:*:*:*:*:*:*:*",

When I did some search on:
https://nvd.nist.gov/products/cpe/search
for the given CPE I find nothing that matches with the mbedtls lib.

Searching for "mbed tls" I will find:
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=mbed+tls

So I guess that the right CPE would be:
cpe:2.3:a:arm:mbed_tls:3.6.1:*:*:*:*:*:*:*
and in the given file:
cpe:2.3:a:arm:mbed_tls:@VCS_TAG@:*:*:*:*:*:*:*"

To match with the existing organisations on nvd.nist.gov , it should be arm instead of trustedfirmware.

@gilles-peskine-arm
Copy link
Contributor

The Mbed TLS project has under Trusted Firmware governance since 2020. Arm still does most of the maintenance, but when we press the button to make a release, we do so on behalf of Trusted Firmware. We discussed this internally when the SBOM was created, and concluded that trustedfirmware was the correct value for this field. I believe the NVD entries since 2020 should have trustedfirmware instead of arm, but I don't know how to get them updated.

We aren't SBOM experts though. If our understanding of the meaning of the field is flawed, please clarify.

@finger42
Copy link
Author

Hello,

When I search on nvd.nist.gov it looks like that the CPE given by the NIST is named like:
cpe:2.3:a:arm:mbed_tls:3.1.0:*:*:*:*:*:*:*

Comparing the two searchs:
https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&keyword=trustedfirmware&status=FINAL%2CDEPRECATED
-> 1 result with version 1.4.0 which is marked DEPRECATED

https://nvd.nist.gov/products/cpe/search/results?namingFormat=2.3&orderBy=CPEURI&keyword=mbed_tls&status=FINAL&startIndex=140
-> >140 results.
looks like the naming with arm:mbed_tls is the one used by the NIST .

If I am using the SBOM from this repo (with trustedfirmware as organisation) it will not match to the naming of the CPEs on NIST.
Also the 3rd party eco system like dependencytrack will not find the component.

So, from my point of view, it should be changed on NIST or here, so that the names match together.

But I dont know how this should be done on NIST. Looks like it will be easier here to follow their naming.

@gabor-mezei-arm gabor-mezei-arm added bug size-s Estimated task size: small (~2d) labels Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug size-s Estimated task size: small (~2d)
Projects
Status: No status
Development

No branches or pull requests

3 participants