Commit 234664c
feat!(detector): replace go-kev with vuls2 (#2509)
Remove go-kev dependency and replace KEVuln detection with vuls2-based
KEV enrichment pipeline supporting CISA, VulnCheck, and ENISA KEV.
- Remove detector/kevuln.go and all FillWithKEVuln call sites
- Remove KEVulnConf from config, TOML template, and subcmds
- Add enrichVulnerabilities() and enrichAdvisories() in vendor.go
with explicit sourceID switch for each data source
- Add enrichVulnerabilityKEV() for CISA/VulnCheck KEV (vulnerability-based)
- Add enrichAdvisoryKEV() for ENISA KEV (advisory-based)
- Add enrichRedHatCVE() extracted from inline enrich() logic
- Use GetVulnerabilityDataByVulnerabilityID for unified vuln+advisory lookup
- Add ENISAKEVType and ENISAKEV struct to models
- Add unit tests for CISA, VulnCheck, and ENISA KEV enrichment
- Remove go-kev from dependabot.yml
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent afd0c4d commit 234664c
26 files changed
Lines changed: 492 additions & 526 deletions
File tree
- .github
- config
- detector
- vuls2
- internal/test
- testdata/fixtures/enrich
- cisa-kev
- data/2022
- enisa-kev
- data/2024
- vulncheck-kev
- data/2021
- models
- server
- subcmds
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | 47 | | |
49 | 48 | | |
50 | 49 | | |
| |||
61 | 60 | | |
62 | 61 | | |
63 | 62 | | |
64 | | - | |
65 | 63 | | |
66 | 64 | | |
67 | 65 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
192 | 191 | | |
193 | 192 | | |
194 | 193 | | |
195 | | - | |
196 | 194 | | |
197 | 195 | | |
198 | 196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | 257 | | |
285 | 258 | | |
286 | 259 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | 218 | | |
223 | 219 | | |
224 | 220 | | |
| |||
0 commit comments