fleet/tools/software/vulnerabilities
2025-11-12 13:09:34 -07:00
..
performance_test Atomic vulnerability count calculations (#35317) 2025-11-12 13:09:34 -07:00
seed_data Atomic vulnerability count calculations (#35317) 2025-11-12 13:09:34 -07:00
README.md (releases on merge to main) Fix vuln false positives for vscode golang extension (#33839) 2025-10-27 14:48:29 -07:00
software-macos.csv New tool: software package uploader (#30417) 2025-07-01 10:35:56 -06:00
software-ubuntu.csv New tool: software package uploader (#30417) 2025-07-01 10:35:56 -06:00
software-win.csv New tool: software package uploader (#30417) 2025-07-01 10:35:56 -06:00

Vulnerability Data Seeder

The purpose of seed_vuln_data.go is to provide developers an easy way to insert hosts and software into your local development Fleet server without needing a real host or osquery-perf

Usage

  1. Ensure your local development environment is running using docker-compose up and fleet serve

  2. Optional: Review and modify the software titles in the following files in this folder:

    • software_macos.csv
    • software_ubuntu.csv
    • software_win.csv

    Comma seperated values align directly with the columns in the software table in MySQL

  3. Run the data seeder

go run ./tools/software/vulnerabilities/seed_vuln_data.go --ubuntu 1 --macos 1 --windows 1 --linux-kernels 1

You should now see new hosts with the configured software attached in the UI and database. This tool is idempotent as it will not create duplicate hosts or software titles if run multiple times, however it will not delete software if removed from the CSV files.