Map Hashicorp Vault Homebrew package to correct vendor for CPE translation (#30363)

Fixes #30229. No changes file since this is a vulns feed fix not tied to
a release.

- [x] Added/updated automated tests
- [x] Manual QA for all new/changed functionality
This commit is contained in:
Ian Littman 2025-06-27 10:31:51 -05:00 committed by GitHub
parent ab5567cad9
commit aca3be97e9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 19 additions and 0 deletions

View file

@ -1743,6 +1743,15 @@ func TestCPEFromSoftwareIntegration(t *testing.T) {
BundleIdentifier: "",
}, cpe: "cpe:2.3:a:github:cli:2.61.0:*:*:*:*:macos:*:*",
},
{
software: fleet.Software{
Name: "vault",
Source: "homebrew_packages",
Version: "1.4.0",
Vendor: "",
BundleIdentifier: "",
}, cpe: "cpe:2.3:a:hashicorp:vault:1.4.0:*:*:*:*:macos:*:*",
},
{
software: fleet.Software{
Name: "pass",

View file

@ -10,6 +10,16 @@
"target_sw": ["macos", "mac_os"]
}
},
{
"software": {
"name": ["vault"],
"source": ["homebrew_packages"]
},
"filter": {
"product": ["vault"],
"vendor": ["hashicorp"]
}
},
{
"software": {
"name": ["pass"],