Deduplicate findings and enrich with offline CVSS/KEV data

Aperta
#74 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
15/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
data, security

Direzione di ricerca

Start in the existing finding and report modules to see how findings are stored and rendered, then decide where a fingerprint field and a merge step belong. The offline enrichment needs a new sec enrich --offline entry point that reads a local CVE/KEV snapshot, and the snapshot format is not yet specified. Done means the acceptance criteria hold: duplicates merge with both evidence ids kept, fingerprints are stable across sessions, and enrichment makes no network call by default.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

area: security enhancement priority: P2

Problem

The same issue appears multiple times: once from a scanner import, once from manual review, once from a retest. Findings have no stable fingerprint, so the report shows duplicates and the count is meaningless. Severity is hand-written, and there is no link to CVSS or known exploitation.

Enrichment must be local by default. A security harness that phones home to look up a CVE leaks the engagement.

Inspiration

  • CISA KEV catalog as a local JSON snapshot.
  • CVSS v3.1/v4.0 vector parsing.
  • SARIF partialFingerprints as a dedupe model.
  • The existing finding and report modules.

Proposal

  • Compute a fingerprint from rule/class, normalized path or URL, line/parameter, and a hash of the canonical evidence. Store it on the finding.
  • Merge duplicates into one finding with multiple evidence links; keep the earliest and latest observation dates.
  • Add sec enrich --offline <dir> that reads a local CVE/KEV snapshot and attaches CVSS vector/score, KEV status and source date when the finding names a CVE.
  • Never fetch during a turn; a separate explicit sec enrich --update may download a snapshot, with size and URL shown.
  • Mark every enriched field with its source and date; unknown is unknown.

Acceptance criteria

  • Two findings with the same rule/path/line and equivalent evidence merge and keep both evidence ids.
  • The fingerprint is stable across exports and sessions.
  • Offline enrichment attaches CVSS and KEV only when the local snapshot has the CVE.
  • A missing snapshot is reported, not treated as "not exploited".
  • Enrichment never makes a network call in the default path.
  • The report shows source and date for every enriched value.
Lingua principale
Rust
Stelle
0
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di GotinhaAzul/LocalHarness

Tutte le issue di GotinhaAzul/LocalHarness

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.