fleet/server/vulnerabilities/nvd
Jacob Shandling d7821685a8
Migrate logic from nvdtools into Fleet (#18244)
## Addresses #15999

- [x] Added/updated tests
- [ ] Manual QA for all new/changed functionality

---------

Co-authored-by: Jacob Shandling <jacob@fleetdm.com>
2024-04-24 15:25:59 -07:00
..
sync Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
tools Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
cpe.go Skip nonASCII Software Names in Vuln Processing (#17193) 2024-03-01 10:31:46 -07:00
cpe_matching_rule.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
cpe_matching_rule_test.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
cpe_matching_rules.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
cpe_test.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
cpe_translations.go Flock vulnerability false positive (#13827) 2023-09-14 10:38:36 -06:00
cpe_translations.json Ignoring Valve Corporation's Steam client's vulnerabilities on Windows and macOS (#18380) 2024-04-18 10:12:49 -05:00
cve.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
cve_test.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
db.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
indexed_cpe_item.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
README.md Add visual studio extensions to software inventory (#17501) 2024-03-14 16:33:12 -03:00
sanitize.go Fixing false negative vulnerabilities on macOS Homebrew python packages. (#17709) 2024-03-19 14:12:07 -05:00
sanitize_test.go Add visual studio extensions to software inventory (#17501) 2024-03-14 16:33:12 -03:00
sync.go Migrate logic from nvdtools into Fleet (#18244) 2024-04-24 15:25:59 -07:00
sync_test.go Add Description text to CVE Metadata (#13856) 2023-09-15 11:24:10 -06:00
testing_utils.go Fixes various bugs with NVD vulnerability detection (#7963) 2022-10-04 07:04:48 -04:00

Testing CPE Translations

To improve accuracy when mapping software to CVEs, we can add data to cpe_translations.json which will get picked up by the NVD repo.

To test these changes locally, you can:

  1. make the appropriate changes to cpe_translations

  2. host this file on a local web server

    go run ./tools/file-server/main.go 8082 ./server/vulnerabilities/nvd/
    
  3. (re)launch your local fleet server with one of the following

    Config method

    vulnerabilities:
    cpe_translations_url: "http://localhost:8082/cpe_translations.json"
    

    Environment method

    FLEET_VULNERABILITIES_CPE_TRANSLATIONS_URL="http://localhost:8082/cpe_translations.json" ./build/fleet serve --dev --dev_license --logging_debug
    
  4. trigger a vulnerabilities scan

    fleetctl trigger --name vulnerabilities