Use CPE dictionary to improve recall on NVD API detector
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
Direzione di ricerca
Start in pkg/vuln/nvdapi/detector.go around lines 331-440 and review how CPEs are generated for NVD lookups. Then examine the NVD CPE Dictionary and determine whether dictionary entries should be reviewed manually or resolved automatically. Done means a decided dictionary-based approach improves CVE recall without undermining the current precision.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Context
Today, we search NVD for CVEs by constructing a CPE per package, and using that CPE for CVE lookups. The approach to this CPE generation was taken from Alpine's secfixes-tracker project, and extended slightly in some areas. Today the CPE generation code is here: https://github.com/wolfi-dev/wolfictl/blob/main/pkg/vuln/nvdapi/detector.go#L331-L440
This code helps the wolfictl adv discover command find new CVEs for our packages. While the precision of today's implementation is high, the recall is unverified and probably on the low side.
Idea
We could probably greatly improve recall by examining NVD's CPE Dictionary and trying to find dictionary entries that correspond to Wolfi packages. We could treat any hits in the dictionary as authoritative CPEs and avoid generating our own CPEs in that case.
We could extend today's CPE approach by manually reviewing the CPE dictionary, and that alone would be a win.
Bonus: It would be even cooler if we can automate this dictionary lookup, either by embedding some form of the dictionary in wolfictl, or by having wolfictl fetch and parse the dictionary at runtime.
- Lingua principale
- Go
- Stelle
- 76
- Fork
- 84
- Merge medio
- 2g 14h
- PR unite (30g)
- 19
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di wolfi-dev/wolfictl
-
It'd be nice to have line numbers from wolfictl lintForse di nuovo libera @sratslla l’ha presa 727 giorni fa e non c’è nessuna pull request aperta. Apertaenhancement needs-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 42/100
wolfi-dev/wolfictl#1203 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement needs-triage
Difficoltà 4/5 3-5 giorni Idoneità per principianti 35/100
wolfi-dev/wolfictl#785 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di wolfi-dev/wolfictl
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
orchestration.migration.data.tasks.retry values are ignored by the 8.8 data migration jobForse già presa @irisfield l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
camunda/camunda-platform-helm#7773 ·
I maintainer di solito rispondono entro 1 giorno
-
Add missing unit tests for IsAdmissionPolicyName and IsCertManagerResourceNameForse già presa @a1h8 l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
kubernetes-sigs/security-profiles-operator#3644 ·
I maintainer di solito rispondono entro 1 giorno
-
[Bug]: Anthropic Responses converter forwards empty text blocks, upstream rejects with 400Forse già presa @david-choi-querypie l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
I maintainer di solito rispondono entro 1 giorno
-
[DOCS]: enforce_admins description understates what it covers and omits push restrictionsForse già presa @dav-tb l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 78/100
integrations/terraform-provider-github#3707 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno