feat(vuln): vulnerability management — 7 integrations + risk-based prioritisation#132
Merged
Merged
Conversation
…ioritisation Dedicated Vulnerability Management module (user request: integrate Nessus, OpenVAS, Qualys, Microsoft Defender, AWS Inspector, Azure Defender, CrowdStrike; prioritise by CVSS, exploitability, business criticality, affected assets). No such module existed — the scanner produces transient findings and CTI holds feed data, but there was no persistent, per-asset, prioritised vulnerability register. Backend: - domain.Vulnerability (tenant-scoped: CVSS/EPSS/KEV/exploit, linked-asset business criticality, blast radius, remediation status, priority score + P1..P4 tier; in AutoMigrate) + VulnerabilityRepository port + Gorm impl (dedup upsert that preserves triage status, filtered/sorted list, stats, distinct-asset count). - pkg/vulnprio: pure, deterministic prioritisation engine (8 tests) over the 4 requested axes — CVSS 0.40, exploitability 0.30 (EPSS/KEV/exploit; KEV floors to P1), business criticality 0.20, affected assets 0.10 — → 0-100 + tier + why. - internal/vulnscan: a normaliser per product (native finding JSON → common shape) for all 7 tools + connector catalogue (AWS Inspector live-pull; others import + honest seam, never fabricated data). - application/vulnerability: ingest (normalise → resolve asset → recount blast radius post-upsert → re-prioritise → upsert), list/get/update-status/delete/stats (tenant-safe, typed errors, tests). Handler + routes under vulnerabilities:*. Frontend (features/vulnerabilities): register sorted by priority + KPI stats + filters, detail drawer (prioritisation breakdown, KEV/exploit signals, status lifecycle, delete), multi-source ingest modal, connectors panel; sidebar item + route + FR/EN i18n. Live-verified (Postgres:5434): 7 connectors; Nessus Log4Shell → CVE extracted, matched to web-01 (CRITICAL) → P2 62.2; CrowdStrike exploit → maturity high 76.4; manual KEV CVSS 5.0 → floored P1 (80); same CVE on 3 assets → blast radius 3 → 66.97; priority-sorted list; stats; status update (invalid 400); delete 204 → 404; bad source 400; headless screenshot of the rendered page. go build/vet/test + tsc/vite all green.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dedicated Vulnerability Management module (user request: integrate Nessus, OpenVAS, Qualys, Microsoft Defender, AWS Inspector, Azure Defender, CrowdStrike; prioritise by CVSS, exploitability, business criticality, affected assets). No such module existed — the scanner produces transient findings and CTI holds feed data, but there was no persistent, per-asset, prioritised vulnerability register.
Backend:
Frontend (features/vulnerabilities): register sorted by priority + KPI stats + filters, detail drawer (prioritisation breakdown, KEV/exploit signals, status lifecycle, delete), multi-source ingest modal, connectors panel; sidebar item + route + FR/EN i18n.
Live-verified (Postgres:5434): 7 connectors; Nessus Log4Shell → CVE extracted, matched to web-01 (CRITICAL) → P2 62.2; CrowdStrike exploit → maturity high 76.4; manual KEV CVSS 5.0 → floored P1 (80); same CVE on 3 assets → blast radius 3 → 66.97; priority-sorted list; stats; status update (invalid 400); delete 204 → 404; bad source 400; headless screenshot of the rendered page. go build/vet/test + tsc/vite all green.