mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
Updated translation rules so that Docker Desktop can be mapped to the proper CPE (#10326)
Updated translation rules so that Docker Desktop can be mapped to the proper CPE.
This commit is contained in:
parent
f457b8cd33
commit
56ed2727b5
3 changed files with 54 additions and 0 deletions
1
changes/8186-fix-bug-with-docker-false-positive
Normal file
1
changes/8186-fix-bug-with-docker-false-positive
Normal file
|
|
@ -0,0 +1 @@
|
|||
Updated translation rules so that Docker Desktop can be mapped to the correct CPE.
|
||||
|
|
@ -1141,6 +1141,38 @@ func TestCPEFromSoftwareIntegration(t *testing.T) {
|
|||
BundleIdentifier: "com.microsoft.Excel",
|
||||
}, cpe: "",
|
||||
},
|
||||
{
|
||||
software: fleet.Software{
|
||||
Name: "Docker.app",
|
||||
Source: "apps",
|
||||
Version: "4.7.1",
|
||||
BundleIdentifier: "com.docker.docker",
|
||||
}, cpe: "cpe:2.3:a:docker:docker_desktop:4.7.1:*:*:*:*:macos:*:*",
|
||||
},
|
||||
{
|
||||
software: fleet.Software{
|
||||
Name: "Docker Desktop.app",
|
||||
Source: "apps",
|
||||
Version: "4.16.2",
|
||||
BundleIdentifier: "com.electron.dockerdesktop",
|
||||
}, cpe: "cpe:2.3:a:docker:docker_desktop:4.16.2:*:*:*:*:macos:*:*",
|
||||
},
|
||||
{
|
||||
software: fleet.Software{
|
||||
Name: "Docker Desktop.app",
|
||||
Source: "apps",
|
||||
Version: "3.5.0",
|
||||
BundleIdentifier: "com.electron.docker-frontend",
|
||||
}, cpe: "cpe:2.3:a:docker:docker_desktop:3.5.0:*:*:*:*:macos:*:*",
|
||||
},
|
||||
// 2023-03-06: there are no entries for the docker python package at the NVD dataset.
|
||||
{
|
||||
software: fleet.Software{
|
||||
Name: "docker",
|
||||
Source: "python_packages",
|
||||
Version: "6.0.1",
|
||||
}, cpe: "",
|
||||
},
|
||||
}
|
||||
|
||||
tempDir := t.TempDir()
|
||||
|
|
|
|||
|
|
@ -79,5 +79,26 @@
|
|||
"filter": {
|
||||
"skip": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"software": {
|
||||
"bundle_identifier": [
|
||||
"/(?i)(com\\.docker\\.docker|com\\.electron\\.dockerdesktop|com\\.electron\\.docker-frontend)/"
|
||||
],
|
||||
"source": ["apps"]
|
||||
},
|
||||
"filter": {
|
||||
"product": ["docker_desktop"],
|
||||
"vendor": ["docker"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"software": {
|
||||
"name": ["docker"],
|
||||
"source": ["python_packages"]
|
||||
},
|
||||
"filter": {
|
||||
"skip": true
|
||||
}
|
||||
}
|
||||
]
|
||||
|
|
|
|||
Loading…
Reference in a new issue