2.2 KiB
2.2 KiB
CLI Vulnerability Workflow Commands
Module
Cli
Status
IMPLEMENTED
Description
Complete vulnerability triage CLI commands (stella vuln list/show/assign/comment/accept-risk/verify-fix/target-fix/reopen/simulate/export/bundle verify) enabling full vulnerability lifecycle management from the command line.
Implementation Details
- Command Handlers:
src/Cli/StellaOps.Cli/Commands/CommandHandlers.cs-- vulnerability workflow handlers - Watchlist Commands:
src/Cli/StellaOps.Cli/Commands/WatchlistCommandGroup.cs--WatchlistCommandGroupwithWatchlist/subdirectory - CVSS Client:
src/Cli/StellaOps.Cli/Services/CvssClient.cs/ICvssClient.cs-- CVSS scoring client - Tests:
src/Cli/__Tests/StellaOps.Cli.Tests/Commands/WatchlistCommandGoldenTests.cs - Commands:
stella vuln list-- list vulnerabilities with filtering. Options:--severity,--status,--limitstella vuln show <cve>-- show vulnerability detailsstella vuln assign <cve> --to <user>-- assign for triagestella vuln comment <cve> --message <text>-- add triage commentstella vuln accept-risk <cve> --reason <text>-- accept risk with justificationstella vuln verify-fix <cve>-- verify fix appliedstella vuln target-fix <cve> --version <ver>-- set target fix versionstella vuln reopen <cve>-- reopen a closed vulnerabilitystella vuln simulate <cve>-- simulate policy impactstella vuln export-- export vulnerability datastella vuln bundle verify <path>-- verify vulnerability bundle
E2E Test Plan
- Run
stella vuln list --severity criticaland verify filtered vulnerability listing - Run
stella vuln show CVE-2024-1234and verify detailed vulnerability info - Run
stella vuln assign CVE-2024-1234 --to adminand verify assignment - Run
stella vuln comment CVE-2024-1234 --message "Investigating"and verify comment added - Run
stella vuln accept-risk CVE-2024-1234 --reason "Mitigated by WAF"and verify risk acceptance - Run
stella vuln verify-fix CVE-2024-1234and verify fix verification - Run
stella vuln export --format jsonand verify JSON export - Verify full lifecycle: assign -> comment -> target-fix -> verify-fix