fleet/tools/seed_data
2023-11-30 13:01:50 -07:00
..
README.md 14969 vuln software seeding tool (#15116) 2023-11-30 13:01:50 -07:00
seed_vuln_data.go 14969 vuln software seeding tool (#15116) 2023-11-30 13:01:50 -07:00
software-macos.csv 14969 vuln software seeding tool (#15116) 2023-11-30 13:01:50 -07:00
software-ubuntu.csv 14969 vuln software seeding tool (#15116) 2023-11-30 13:01:50 -07:00
software-win.csv 14969 vuln software seeding tool (#15116) 2023-11-30 13:01:50 -07:00

Vulnerability Data Seeder

The purpose of seed_vuln_data.go is to provide developers an easy way to insert software titles into your local development Fleet server in order to troubleshoot false positive|negative vulnerabilities.

Usage

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

  2. 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/seed_data/seed_vuln_data.go

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.