vigievuln 1.3.2 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (375) hide show
  1. package/CHANGELOG.md +63 -0
  2. package/README.md +34 -19
  3. package/completions/vigievuln.bash +14 -3
  4. package/completions/vigievuln.zsh +11 -8
  5. package/data/fingerprints/index.js +80 -0
  6. package/data/fingerprints/interpreters/javascript/bun.json +23 -0
  7. package/data/fingerprints/interpreters/javascript/deno.json +10 -0
  8. package/data/fingerprints/interpreters/javascript/electron.json +20 -0
  9. package/data/fingerprints/interpreters/javascript/gjs.json +8 -0
  10. package/data/fingerprints/interpreters/javascript/javascriptcore.json +14 -0
  11. package/data/fingerprints/interpreters/javascript/jscgtk.json +10 -0
  12. package/data/fingerprints/interpreters/javascript/node.json +26 -0
  13. package/data/fingerprints/interpreters/javascript/nwjs.json +8 -0
  14. package/data/fingerprints/interpreters/javascript/webkitgtk.json +10 -0
  15. package/data/fingerprints/interpreters/javascript/wpewebkit.json +10 -0
  16. package/data/fingerprints/interpreters/languages/dotnet.json +8 -0
  17. package/data/fingerprints/interpreters/languages/erlang.json +9 -0
  18. package/data/fingerprints/interpreters/languages/gawk.json +10 -0
  19. package/data/fingerprints/interpreters/languages/guile.json +9 -0
  20. package/data/fingerprints/interpreters/languages/java.json +8 -0
  21. package/data/fingerprints/interpreters/languages/julia.json +9 -0
  22. package/data/fingerprints/interpreters/languages/lua.json +11 -0
  23. package/data/fingerprints/interpreters/languages/luajit.json +10 -0
  24. package/data/fingerprints/interpreters/languages/perl.json +11 -0
  25. package/data/fingerprints/interpreters/languages/php.json +22 -0
  26. package/data/fingerprints/interpreters/languages/powershell.json +17 -0
  27. package/data/fingerprints/interpreters/languages/pypy.json +8 -0
  28. package/data/fingerprints/interpreters/languages/python.json +24 -0
  29. package/data/fingerprints/interpreters/languages/r.json +9 -0
  30. package/data/fingerprints/interpreters/languages/racket.json +9 -0
  31. package/data/fingerprints/interpreters/languages/raku.json +8 -0
  32. package/data/fingerprints/interpreters/languages/ruby.json +21 -0
  33. package/data/fingerprints/interpreters/languages/tcl.json +9 -0
  34. package/data/fingerprints/interpreters/shells/bash.json +10 -0
  35. package/data/fingerprints/interpreters/shells/dash.json +8 -0
  36. package/data/fingerprints/interpreters/shells/fish.json +9 -0
  37. package/data/fingerprints/interpreters/shells/ksh.json +8 -0
  38. package/data/fingerprints/interpreters/shells/zsh.json +9 -0
  39. package/data/fingerprints/services/databases/clickhouse.json +8 -0
  40. package/data/fingerprints/services/databases/elasticsearch.json +8 -0
  41. package/data/fingerprints/services/databases/etcd.json +9 -0
  42. package/data/fingerprints/services/databases/mariadb.json +9 -0
  43. package/data/fingerprints/services/databases/memcached.json +9 -0
  44. package/data/fingerprints/services/databases/mongo.json +8 -0
  45. package/data/fingerprints/services/databases/mysql.json +9 -0
  46. package/data/fingerprints/services/databases/opensearch.json +8 -0
  47. package/data/fingerprints/services/databases/postgres.json +18 -0
  48. package/data/fingerprints/services/databases/redis.json +9 -0
  49. package/data/fingerprints/services/databases/valkey.json +8 -0
  50. package/data/fingerprints/services/dns-directory/bind.json +8 -0
  51. package/data/fingerprints/services/dns-directory/dnsmasq.json +8 -0
  52. package/data/fingerprints/services/dns-directory/slapd.json +8 -0
  53. package/data/fingerprints/services/dns-directory/unbound.json +8 -0
  54. package/data/fingerprints/services/mail/cyrus.json +8 -0
  55. package/data/fingerprints/services/mail/dovecot.json +8 -0
  56. package/data/fingerprints/services/mail/exim.json +9 -0
  57. package/data/fingerprints/services/mail/opendkim.json +8 -0
  58. package/data/fingerprints/services/mail/opensmtpd.json +8 -0
  59. package/data/fingerprints/services/mail/postfix.json +8 -0
  60. package/data/fingerprints/services/mail/rspamd.json +8 -0
  61. package/data/fingerprints/services/mail/sendmail.json +8 -0
  62. package/data/fingerprints/services/messaging/kafka.json +8 -0
  63. package/data/fingerprints/services/messaging/mosquitto.json +8 -0
  64. package/data/fingerprints/services/messaging/nats.json +9 -0
  65. package/data/fingerprints/services/messaging/rabbitmq.json +8 -0
  66. package/data/fingerprints/services/remote-access/dropbear.json +8 -0
  67. package/data/fingerprints/services/remote-access/openssh.json +10 -0
  68. package/data/fingerprints/services/remote-access/proftpd.json +8 -0
  69. package/data/fingerprints/services/remote-access/samba.json +8 -0
  70. package/data/fingerprints/services/remote-access/vsftpd.json +8 -0
  71. package/data/fingerprints/services/web-proxies/apache.json +18 -0
  72. package/data/fingerprints/services/web-proxies/caddy.json +9 -0
  73. package/data/fingerprints/services/web-proxies/envoy.json +8 -0
  74. package/data/fingerprints/services/web-proxies/haproxy.json +10 -0
  75. package/data/fingerprints/services/web-proxies/lighttpd.json +8 -0
  76. package/data/fingerprints/services/web-proxies/nginx.json +14 -0
  77. package/data/fingerprints/services/web-proxies/squid.json +8 -0
  78. package/data/fingerprints/services/web-proxies/tomcat.json +8 -0
  79. package/data/fingerprints/services/web-proxies/traefik.json +9 -0
  80. package/data/fingerprints/services/web-proxies/varnish.json +8 -0
  81. package/lib/README.md +51 -0
  82. package/lib/{coverage-diagnostics.js → advisories/coverage-diagnostics.js} +1 -1
  83. package/lib/{cve-match.js → advisories/cve-match.js} +17 -12
  84. package/lib/{advisory-fixes.js → advisories/fixes.js} +1 -1
  85. package/lib/{advisory-freshness.js → advisories/freshness.js} +5 -1
  86. package/lib/{gap-adjudicate.js → advisories/gap-adjudicate.js} +3 -3
  87. package/lib/{native-package-match.js → advisories/native-package-match.js} +20 -11
  88. package/lib/{native-source-prepare.js → advisories/native-source-prepare.js} +15 -12
  89. package/lib/{native-advisories.js → advisories/native.js} +15 -13
  90. package/lib/{advisory-store-sqlite.js → advisories/store-sqlite.js} +5 -5
  91. package/lib/{advisory-store.js → advisories/store.js} +2 -2
  92. package/lib/{application-exports.js → applications/exports.js} +1 -1
  93. package/lib/{application-inventory.js → applications/inventory.js} +3 -1
  94. package/lib/applications/layout.js +199 -0
  95. package/lib/{application-providers → applications}/live-snapshot.js +10 -10
  96. package/lib/{application-plugins → applications/plugins}/drupal.js +2 -2
  97. package/lib/applications/plugins/ghost.js +36 -0
  98. package/lib/{application-plugins → applications/plugins}/index.js +1 -1
  99. package/lib/{application-plugins → applications/plugins}/prestashop.js +73 -15
  100. package/lib/applications/plugins/redmine.js +24 -0
  101. package/lib/{application-plugins → applications/plugins}/runner.js +89 -59
  102. package/lib/{application-plugins → applications/plugins}/spip.js +4 -4
  103. package/lib/{application-plugins → applications/plugins}/symfony.js +1 -1
  104. package/lib/{application-plugins → applications/plugins}/typo3.js +2 -2
  105. package/lib/{application-plugins → applications/plugins}/wave2-common.js +1 -1
  106. package/lib/{application-plugins → applications/plugins}/wordpress.js +52 -18
  107. package/lib/{application-providers → applications}/snapshot-cache.js +1 -1
  108. package/lib/{cms-snapshot-warm.js → applications/snapshot-warm.js} +21 -8
  109. package/lib/artifacts/access-warnings.js +24 -0
  110. package/lib/artifacts/applications.js +39 -8
  111. package/lib/artifacts/component-scope.js +12 -3
  112. package/lib/artifacts/cve-view.js +8 -5
  113. package/lib/artifacts/disk-wasm.mjs +3 -0
  114. package/lib/artifacts/disk.js +188 -0
  115. package/lib/artifacts/elf-product.js +215 -0
  116. package/lib/artifacts/enrichment.js +31 -17
  117. package/lib/artifacts/go-main-identity.js +135 -36
  118. package/lib/artifacts/go-publisher-advisories.js +4 -3
  119. package/lib/artifacts/image-products.js +181 -0
  120. package/lib/artifacts/index.js +36 -13
  121. package/lib/artifacts/install-version.js +44 -0
  122. package/lib/artifacts/inventory-scope.js +53 -3
  123. package/lib/artifacts/pe-product.js +28 -0
  124. package/lib/artifacts/product-advisories.js +212 -0
  125. package/lib/artifacts/product-catalog.js +67 -0
  126. package/lib/artifacts/release-catalogues.js +149 -0
  127. package/lib/artifacts/release-versions.js +101 -0
  128. package/lib/artifacts/remediation-report.js +1 -1
  129. package/lib/artifacts/report-inventory.js +17 -2
  130. package/lib/artifacts/report-path.js +29 -0
  131. package/lib/artifacts/report.js +85 -32
  132. package/lib/artifacts/retire.js +3 -3
  133. package/lib/artifacts/risk-report.js +12 -8
  134. package/lib/artifacts/sbom.js +33 -4
  135. package/lib/artifacts/scan.js +316 -69
  136. package/lib/artifacts/system-apps.js +98 -0
  137. package/lib/artifacts/system-maintenance.js +101 -0
  138. package/lib/artifacts/system-module-updates.js +104 -0
  139. package/lib/artifacts/system-report.js +232 -0
  140. package/lib/{airgap-project.js → cache/airgap-project.js} +25 -10
  141. package/lib/{cache-archive-sqlite.js → cache/archive.js} +6 -5
  142. package/lib/{cache-db.js → cache/db.js} +1 -1
  143. package/lib/{dump-format.js → cache/dump-format.js} +2 -2
  144. package/lib/{json-cache.js → cache/json.js} +1 -1
  145. package/lib/{proxy-cache.js → cache/proxy-cache.js} +9 -9
  146. package/lib/{proxy-scope.js → cache/proxy-scope.js} +1 -1
  147. package/lib/{record-freshness.js → cache/record-freshness.js} +1 -1
  148. package/lib/{cache-repository.js → cache/repository.js} +1 -1
  149. package/lib/{resource-cache → cache/resource}/engine.js +23 -16
  150. package/lib/{resource-cache → cache/resource}/fs-store.js +2 -2
  151. package/lib/{resource-cache → cache/resource}/sqlite-store.js +3 -3
  152. package/lib/{resource-cache → cache/resource}/validate.js +20 -5
  153. package/lib/{sqlite-driver.js → cache/sqlite-driver.js} +7 -5
  154. package/lib/certs/scan.js +17 -11
  155. package/lib/cli-collect.js +262 -0
  156. package/lib/cli-command-routing.js +30 -13
  157. package/lib/cli-groups.js +1 -1
  158. package/lib/cli-image.js +158 -47
  159. package/lib/cli-project-commands.js +10 -10
  160. package/lib/cli-setup.js +8 -8
  161. package/lib/cli-watch.js +3 -3
  162. package/lib/codecs/binary/elf-metadata.js +6 -0
  163. package/lib/codecs/binary/metadata.js +1 -1
  164. package/lib/codecs/binary/pe-metadata.js +47 -11
  165. package/lib/codecs/binary/scan.js +12 -4
  166. package/lib/codecs/binary.codec.js +1 -1
  167. package/lib/codecs/composer/platform.js +2 -2
  168. package/lib/codecs/composer/registry.js +12 -18
  169. package/lib/codecs/composer.codec.js +6 -5
  170. package/lib/codecs/go/parse.js +1 -1
  171. package/lib/codecs/go/registry.js +7 -7
  172. package/lib/codecs/go.codec.js +2 -2
  173. package/lib/codecs/gradle/parse.js +1 -1
  174. package/lib/codecs/gradle/versionless.js +2 -2
  175. package/lib/codecs/gradle.codec.js +7 -7
  176. package/lib/codecs/index.js +1 -1
  177. package/lib/{maven-airgap.js → codecs/maven/airgap.js} +4 -4
  178. package/lib/{maven-bom.js → codecs/maven/bom.js} +3 -3
  179. package/lib/codecs/maven/jar-scan.js +4 -4
  180. package/lib/{maven-license.js → codecs/maven/license.js} +2 -2
  181. package/lib/{core.js → codecs/maven/pom.js} +22 -11
  182. package/lib/{maven-reactor.js → codecs/maven/reactor.js} +18 -12
  183. package/lib/{transitive.js → codecs/maven/transitive.js} +79 -34
  184. package/lib/{maven-version.js → codecs/maven/version.js} +1 -1
  185. package/lib/codecs/maven.codec.js +18 -14
  186. package/lib/codecs/npm/collect.js +55 -8
  187. package/lib/codecs/npm/manifest-kind.js +16 -0
  188. package/lib/codecs/npm/parse.js +23 -7
  189. package/lib/codecs/npm/registry.js +28 -14
  190. package/lib/codecs/npm.codec.js +5 -5
  191. package/lib/codecs/nuget/registry.js +7 -7
  192. package/lib/codecs/nuget.codec.js +4 -4
  193. package/lib/codecs/pypi/registry.js +7 -7
  194. package/lib/codecs/pypi.codec.js +4 -4
  195. package/lib/codecs/recipes.js +2 -2
  196. package/lib/codecs/ruby/registry.js +7 -7
  197. package/lib/codecs/ruby.codec.js +2 -2
  198. package/lib/config.js +1 -1
  199. package/lib/{attribution.js → findings/attribution.js} +3 -3
  200. package/lib/findings/cve-descriptions.js +144 -0
  201. package/lib/{cve-record-coverage.js → findings/cve-record-coverage.js} +46 -41
  202. package/lib/{diff.js → findings/diff.js} +0 -0
  203. package/lib/{finding-enrichment.js → findings/enrichment.js} +45 -32
  204. package/lib/{eu-refs.js → findings/eu-refs.js} +3 -3
  205. package/lib/{gate.js → findings/gate.js} +1 -1
  206. package/lib/{malware.js → findings/malware.js} +30 -7
  207. package/lib/{merge-sources.js → findings/merge.js} +57 -9
  208. package/lib/{priority.js → findings/priority.js} +3 -3
  209. package/lib/findings/risk-evidence.js +24 -0
  210. package/lib/findings/severity.js +16 -0
  211. package/lib/{finding-summary.js → findings/summary.js} +5 -2
  212. package/lib/{suppress.js → findings/suppress.js} +2 -2
  213. package/lib/images/local-docker.js +72 -0
  214. package/lib/{image-network.js → images/network.js} +26 -16
  215. package/lib/{image-references.js → images/references.js} +29 -11
  216. package/lib/{image-registry.js → images/registry.js} +18 -9
  217. package/lib/{source-image-scan.js → images/source-scan.js} +3 -3
  218. package/lib/images/temp-roots.js +23 -0
  219. package/lib/{image-update.js → images/update.js} +3 -3
  220. package/lib/{dep-record.js → inventory/dep-record.js} +2 -2
  221. package/lib/{deps-descriptor.js → inventory/deps-descriptor.js} +3 -3
  222. package/lib/{descriptor-refs.js → inventory/descriptor-refs.js} +1 -1
  223. package/lib/{embedded.js → inventory/embedded.js} +4 -3
  224. package/lib/{license-policy.js → inventory/license-policy.js} +2 -2
  225. package/lib/{manifest-copy.js → inventory/manifest-copy.js} +2 -2
  226. package/lib/{module-names.js → inventory/module-names.js} +1 -1
  227. package/lib/{package-versions.js → inventory/package-versions.js} +2 -2
  228. package/lib/{parallel-walk.js → inventory/parallel-walk.js} +1 -1
  229. package/lib/{path-filter.js → inventory/path-filter.js} +1 -1
  230. package/lib/{private-deps.js → inventory/private-deps.js} +1 -1
  231. package/lib/{project-descriptor.js → inventory/project-descriptor.js} +3 -0
  232. package/lib/{purl.js → inventory/purl.js} +2 -2
  233. package/lib/{unmanaged.js → inventory/unmanaged.js} +6 -3
  234. package/lib/{commercial-support.js → maintenance/commercial-support.js} +5 -5
  235. package/lib/{outdated.js → maintenance/outdated.js} +20 -20
  236. package/lib/options-env.js +1 -1
  237. package/lib/{system-inventory/alpine-tracker.js → providers/alpine/tracker.js} +27 -7
  238. package/lib/{certfr.js → providers/certfr/enrich.js} +9 -9
  239. package/lib/{cve-download.js → providers/cveproject/download.js} +56 -36
  240. package/lib/{cve-legacy-ranges.js → providers/cveproject/legacy-ranges.js} +1 -1
  241. package/lib/{cve-npm-proxy.js → providers/cveproject/npm-proxy.js} +5 -5
  242. package/lib/{cve-packages-proxy.js → providers/cveproject/packages-proxy.js} +6 -6
  243. package/lib/{cve-version-verdict.js → providers/cveproject/version-verdict.js} +2 -2
  244. package/lib/{system-inventory/current-debian.js → providers/debian/current.js} +6 -6
  245. package/lib/{system-inventory/historical-debian.js → providers/debian/historical.js} +6 -6
  246. package/lib/providers/{debian.js → debian/index.js} +1 -0
  247. package/lib/{application-providers/drupal-advisories.js → providers/drupal/advisories.js} +13 -36
  248. package/lib/providers/{drupal.js → drupal/index.js} +4 -0
  249. package/lib/providers/{eol.js → eol/index.js} +1 -1
  250. package/lib/{epss.js → providers/epss/enrich.js} +16 -13
  251. package/lib/providers/{epss.js → epss/index.js} +2 -2
  252. package/lib/{euvd.js → providers/euvd/enrich.js} +13 -13
  253. package/lib/{system-inventory/freexian-ela.js → providers/freexian/ela.js} +6 -6
  254. package/lib/providers/{freexian.js → freexian/index.js} +3 -3
  255. package/lib/{system-inventory/freexian-release-evidence.js → providers/freexian/release-evidence.js} +8 -5
  256. package/lib/{system-inventory/freexian-tracker.js → providers/freexian/tracker.js} +33 -9
  257. package/lib/{gcve-feed.js → providers/gcve/feed.js} +4 -4
  258. package/lib/{gcve.js → providers/gcve/id.js} +1 -1
  259. package/lib/{gcve-index.js → providers/gcve/local-index.js} +4 -4
  260. package/lib/{application-providers/github-advisories.js → providers/github/advisories.js} +6 -2
  261. package/lib/providers/{github.js → github/index.js} +3 -1
  262. package/lib/{github-publisher-maven.js → providers/github/publisher-maven.js} +1 -1
  263. package/lib/providers/{go.js → go/index.js} +1 -1
  264. package/lib/{hash-id.js → providers/hashid/identify.js} +7 -7
  265. package/lib/providers/{hashid.js → hashid/index.js} +1 -1
  266. package/lib/providers/index.js +18 -13
  267. package/lib/{kev.js → providers/kev/enrich.js} +12 -9
  268. package/lib/{maven-cache.js → providers/maven/cache.js} +3 -3
  269. package/lib/providers/{maven.js → maven/index.js} +5 -3
  270. package/lib/{maven-presence.js → providers/maven/presence.js} +5 -5
  271. package/lib/{maven-repo.js → providers/maven/repo.js} +38 -21
  272. package/lib/providers/mit-kerberos/index.js +6 -0
  273. package/lib/{system-inventory/nginx-advisories.js → providers/nginx/advisories.js} +3 -3
  274. package/lib/providers/{npm.js → npm/index.js} +1 -1
  275. package/lib/providers/{nuget.js → nuget/index.js} +1 -1
  276. package/lib/{cpe.js → providers/nvd/cpe.js} +35 -47
  277. package/lib/{nvd.js → providers/nvd/enrich.js} +41 -40
  278. package/lib/providers/{nvd.js → nvd/index.js} +18 -4
  279. package/lib/{nvd-package-ranges.js → providers/nvd/package-ranges.js} +38 -22
  280. package/lib/{osv-db.js → providers/osv/db.js} +18 -16
  281. package/lib/providers/{osv.js → osv/index.js} +1 -1
  282. package/lib/{osv.js → providers/osv/query.js} +150 -80
  283. package/lib/providers/package-releases/index.js +26 -0
  284. package/lib/{packagist-audit.js → providers/packagist/audit.js} +31 -11
  285. package/lib/providers/{packagist.js → packagist/index.js} +1 -1
  286. package/lib/{proxy-throttle.js → providers/proxy-throttle.js} +17 -9
  287. package/lib/providers/{pypi.js → pypi/index.js} +1 -1
  288. package/lib/providers/redhat/bzip2.js +167 -0
  289. package/lib/providers/redhat/errata.js +75 -0
  290. package/lib/providers/redhat/index.js +10 -0
  291. package/lib/providers/redhat/oval.js +70 -0
  292. package/lib/providers/redhat/unfixed.js +127 -0
  293. package/lib/{registries.js → providers/registries.js} +4 -4
  294. package/lib/{retire.js → providers/retire/scan.js} +18 -18
  295. package/lib/providers/{ruby.js → ruby/index.js} +1 -1
  296. package/lib/providers/rubysec/advisories.js +177 -0
  297. package/lib/providers/rubysec/index.js +9 -0
  298. package/lib/{snyk.js → providers/snyk/client.js} +2 -2
  299. package/lib/{application-providers/spip-advisories.js → providers/spip/advisories.js} +5 -13
  300. package/lib/{vigievuln-advisories.js → providers/vigievuln/advisories.js} +4 -4
  301. package/lib/providers/wolfi/index.js +10 -0
  302. package/lib/providers/wolfi/secdb.js +47 -0
  303. package/lib/{application-providers/wordfence-client.js → providers/wordfence/client.js} +4 -4
  304. package/lib/providers/{wordfence.js → wordfence/index.js} +1 -1
  305. package/lib/{application-providers/wordfence-projection.js → providers/wordfence/projection.js} +14 -5
  306. package/lib/{resource-cache/wordfence.js → providers/wordfence/resource-cache.js} +2 -2
  307. package/lib/{application-providers/wordfence-v3.js → providers/wordfence/v3.js} +4 -5
  308. package/lib/providers/{wordpress.js → wordpress/index.js} +5 -0
  309. package/lib/providers/wpvulnerability/assess.js +181 -0
  310. package/lib/providers/wpvulnerability/index.js +12 -0
  311. package/lib/{charts.js → reports/charts.js} +25 -18
  312. package/lib/{csaf-export.js → reports/csaf-export.js} +16 -11
  313. package/lib/{cve-report.js → reports/cve-report.js} +453 -228
  314. package/lib/reports/detail.js +55 -0
  315. package/lib/{i18n.js → reports/i18n.js} +38 -2
  316. package/lib/{report-integrity.js → reports/integrity.js} +1 -1
  317. package/lib/{json-export.js → reports/json-export.js} +95 -24
  318. package/lib/{report-notices.js → reports/notices.js} +11 -6
  319. package/lib/{sarif-export.js → reports/sarif-export.js} +15 -10
  320. package/lib/{sbom-export.js → reports/sbom-export.js} +16 -11
  321. package/lib/{scan-completeness.js → scan/completeness.js} +1 -1
  322. package/lib/scan/coverage.js +114 -0
  323. package/lib/{provenance.js → scan/provenance.js} +12 -5
  324. package/lib/scan/reliability.js +157 -0
  325. package/lib/{source-health.js → scan/source-health.js} +52 -20
  326. package/lib/{source-profile.js → scan/source-profile.js} +3 -3
  327. package/lib/{hosted-proxy.js → service/hosted-proxy.js} +3 -3
  328. package/lib/{project-client.js → service/project-client.js} +20 -2
  329. package/lib/source-input.js +58 -0
  330. package/lib/system-inventory/advisories.js +89 -16
  331. package/lib/system-inventory/collect.js +33 -10
  332. package/lib/system-inventory/distribution-sources.js +32 -15
  333. package/lib/system-inventory/package-applicability.js +51 -0
  334. package/lib/system-inventory/targeted.js +8 -5
  335. package/lib/ui.js +11 -0
  336. package/package.json +49 -2
  337. package/vigievuln.js +483 -352
  338. package/lib/cache-archive.js +0 -676
  339. package/lib/osv-legacy.js +0 -57
  340. package/lib/risk-evidence.js +0 -18
  341. package/lib/scan-coverage.js +0 -61
  342. /package/lib/{application-plugins → applications/plugins}/joomla.js +0 -0
  343. /package/lib/{application-plugins → applications/plugins}/laravel.js +0 -0
  344. /package/lib/{application-plugins → applications/plugins}/magento.js +0 -0
  345. /package/lib/{application-plugins → applications/plugins}/plugin.interface.js +0 -0
  346. /package/lib/{application-plugins → applications/plugins}/select.js +0 -0
  347. /package/lib/{advisory-compression.js → cache/advisory-compression.js} +0 -0
  348. /package/lib/{compression-dictionary.js → cache/compression-dictionary.js} +0 -0
  349. /package/lib/{cache-directory.js → cache/directory.js} +0 -0
  350. /package/lib/{cache-policy.js → cache/policy.js} +0 -0
  351. /package/lib/{resource-cache → cache/resource}/snapshot-projection.js +0 -0
  352. /package/lib/{cache-startup.js → cache/startup.js} +0 -0
  353. /package/lib/{ruby-version.js → codecs/ruby/version.js} +0 -0
  354. /package/lib/{applicability-evidence.js → findings/applicability-evidence.js} +0 -0
  355. /package/lib/{line-stream.js → inventory/line-stream.js} +0 -0
  356. /package/lib/{package-metadata.js → inventory/package-metadata.js} +0 -0
  357. /package/lib/providers/{alpine.js → alpine/index.js} +0 -0
  358. /package/lib/providers/{certfr.js → certfr/index.js} +0 -0
  359. /package/lib/{native-cna-identities.js → providers/cveproject/cna-identities.js} +0 -0
  360. /package/lib/providers/{euvd.js → euvd/index.js} +0 -0
  361. /package/lib/providers/{gcve.js → gcve/index.js} +0 -0
  362. /package/lib/providers/{kev.js → kev/index.js} +0 -0
  363. /package/lib/providers/{nginx.js → nginx/index.js} +0 -0
  364. /package/lib/{nvd-bulk.js → providers/nvd/bulk.js} +0 -0
  365. /package/lib/providers/{osvdb.js → osvdb/index.js} +0 -0
  366. /package/lib/{request-failure.js → providers/request-failure.js} +0 -0
  367. /package/lib/providers/{retire.js → retire/index.js} +0 -0
  368. /package/lib/providers/{vigievuln.js → vigievuln/index.js} +0 -0
  369. /package/lib/{application-providers/wp-checksums.js → providers/wordpress/checksums.js} +0 -0
  370. /package/lib/{report-time.js → reports/time.js} +0 -0
  371. /package/lib/{xlsx-export.js → reports/xlsx-export.js} +0 -0
  372. /package/lib/{diagnostics.js → scan/diagnostics.js} +0 -0
  373. /package/lib/{account-client.js → service/account-client.js} +0 -0
  374. /package/lib/{account-session.js → service/account-session.js} +0 -0
  375. /package/lib/{account-terms.js → service/account-terms.js} +0 -0
@@ -0,0 +1,55 @@
1
+ 'use strict';
2
+ // A report is read, not grepped. One component with thousands of advisories (a kernel
3
+ // package carries more than 9 000) would bury every other finding and weigh hundreds of
4
+ // megabytes in every format, and so would one advisory repeated for each of the forty
5
+ // packages built from the same source. Findings are therefore grouped:
6
+ // - a system source package and every package built from it form one group, any other
7
+ // component is its own group;
8
+ // - within a source group each advisory is detailed once, on its highest-priority package;
9
+ // - a group details its `limit` highest-priority advisories (occurrences, for a component).
10
+ // Every other finding stays listed in the machine exports with its identity, component,
11
+ // rating and fix, without the advisory texts.
12
+ const { sortByPriority } = require('../findings/priority');
13
+ const PER_COMPONENT_DETAIL_LIMIT = 100;
14
+
15
+ function componentKey(dep = {}) {
16
+ return dep.coordKey || [dep.artifactTargetId, dep.ecosystem, dep.groupId, dep.artifactId || dep.name, dep.version].join('\0');
17
+ }
18
+ function detailGroupKey(dep = {}) {
19
+ return dep.ecosystem === 'system' && dep.sourceName
20
+ ? ['source', dep.artifactTargetId, dep.manager, dep.sourceName, dep.sourceVersion].join('\0')
21
+ : componentKey(dep);
22
+ }
23
+
24
+ /**
25
+ * Plan the detail of a list of matches.
26
+ * → detailed: matches reported in full, highest priority first
27
+ * siblings: detailed match → the other occurrences of that advisory in its group
28
+ * compact: every match that is not detailed
29
+ * groups: { dep, source, packages, detailed, beyond: [first match of each advisory past the limit] }
30
+ */
31
+ function planDetail(matches, limit = PER_COMPONENT_DETAIL_LIMIT) {
32
+ const groups = new Map(), detailed = [], siblings = new Map(), compact = new Set();
33
+ for (const m of sortByPriority(matches || [])) {
34
+ const dep = m.dep || {}, key = detailGroupKey(dep);
35
+ let group = groups.get(key);
36
+ if (!group) groups.set(key, group = { dep, source: key !== componentKey(dep), packages: new Set(), primaries: new Map(), beyond: new Map() });
37
+ group.packages.add(componentKey(dep));
38
+ // Only the packages of one source share an advisory. Two matches on another component
39
+ // are distinct occurrences (physical copies in two manifests) and each keeps its row.
40
+ const id = group.source ? (m.cve?.id || m) : m;
41
+ if (group.primaries.has(id)) { siblings.get(group.primaries.get(id)).push(m); compact.add(m); continue; }
42
+ if (group.beyond.has(id)) { compact.add(m); continue; }
43
+ if (group.primaries.size < limit) { group.primaries.set(id, m); siblings.set(m, []); detailed.push(m); continue; }
44
+ group.beyond.set(id, m); compact.add(m);
45
+ }
46
+ return { detailed, siblings, compact,
47
+ groups: [...groups.values()].map(g => ({ dep: g.dep, source: g.source, packages: g.packages.size, detailed: g.primaries.size, beyond: [...g.beyond.values()] })) };
48
+ }
49
+
50
+ /** The matches reported without their advisory texts. */
51
+ function beyondDetailLimit(matches, limit = PER_COMPONENT_DETAIL_LIMIT) {
52
+ return planDetail(matches, limit).compact;
53
+ }
54
+
55
+ module.exports = { PER_COMPONENT_DETAIL_LIMIT, componentKey, detailGroupKey, planDetail, beyondDetailLimit };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lib/i18n.js — report localisation (en / fr), selected by --lang.
2
+ * lib/reports/i18n.js — report localisation (en / fr), selected by --lang.
3
3
  *
4
4
  * The ENGLISH STRING IS THE KEY. `t("Copy table")` returns the French wording under
5
5
  * `fr` and the key itself under `en`, so:
@@ -56,9 +56,12 @@ const fr = {
56
56
  "Image update candidate": "Mise à jour candidate de l’image",
57
57
  "CVE findings": "résultats CVE",
58
58
  "Image overview charts": "Graphiques de synthèse des images",
59
+ "Host overview": "Vue d’ensemble de l’hôte",
59
60
  "Project overview": "Synthèse du projet",
60
61
  "Image overview": "Synthèse des images",
61
62
  "CVE records": "Fiches CVE",
63
+ "Host system warnings": "Avertissements du système hôte",
64
+ "Data sources": "Sources de données",
62
65
  "Project scan warnings": "Avertissements de l’analyse du projet",
63
66
  "Image scan warnings": "Avertissements de l’analyse des images",
64
67
  "Shared source warnings": "Avertissements des sources communes",
@@ -115,11 +118,20 @@ const fr = {
115
118
  "Instance synthesis": "Synthèse des instances",
116
119
  "CMS / framework": "CMS / framework",
117
120
  "Instance": "Instance",
121
+ "Location": "Emplacement",
122
+ "Installed version read from": "Version installée relevée dans",
118
123
  "Observed version": "Version observée",
119
124
  "Coverage": "Couverture",
120
125
  "Note": "Note",
121
126
  "No matching advisory in the consulted data.": "Aucun avis correspondant dans les données consultées.",
122
127
  "Evaluation incomplete.": "Évaluation incomplète.",
128
+ "Incomplete coverage.": "Couverture incomplète.",
129
+ "Disclaimer": "Limite de responsabilité",
130
+ "This report is an automated aid to analysis, not a security audit. It is built from public vulnerability data and from the files given to the scan, as they stood on the date shown: that data may be incomplete, late or wrong, and a component that is absent from the report is not thereby free of vulnerabilities. Check the findings that matter before acting on them. The report is provided as is, without warranty of any kind; the authors and publishers of VigieVuln accept no liability for decisions taken or damage suffered on the basis of its content.": "Ce rapport est une aide automatisée à l’analyse, et non un audit de sécurité. Il est établi à partir de données publiques de vulnérabilités et des fichiers soumis au scan, dans leur état à la date indiquée : ces données peuvent être incomplètes, tardives ou erronées, et un composant absent du rapport n’est pas pour autant exempt de vulnérabilités. Vérifiez les résultats importants avant d’agir. Le rapport est fourni en l’état, sans garantie d’aucune sorte ; les auteurs et éditeurs de VigieVuln déclinent toute responsabilité quant aux décisions prises ou aux dommages subis sur la base de son contenu.",
131
+ "{n} packages": "{n} paquets",
132
+ "Also in {n} other package(s) of this source: {names}": "Aussi dans {n} autre(s) paquet(s) de cette source : {names}",
133
+ "{n} further finding(s) not listed ({breakdown}{kev}). The {limit} highest-priority findings of this component are shown above; all of them are listed in the JSON and Excel exports.": "{n} autre(s) remontée(s) non listée(s) ({breakdown}{kev}). Les {limit} remontées les plus prioritaires de ce composant figurent ci-dessus ; toutes sont listées dans les exports JSON et Excel.",
134
+ "Some checks could not be completed, so vulnerabilities may be missing from this report. Chapter 0 lists each gap.": "Certains contrôles n'ont pas abouti : des vulnérabilités peuvent manquer dans ce rapport. Le chapitre 0 détaille chaque manque.",
123
135
  "not evaluated": "non évalué(s)",
124
136
  "inventory": "inventaire",
125
137
  "advisories": "avis",
@@ -173,7 +185,6 @@ const fr = {
173
185
  "No application components inventoried.": "Aucun composant applicatif inventorié.",
174
186
  "No application checks recorded.": "Aucune vérification applicative enregistrée.",
175
187
  "Also exposed in": "Également exposé dans",
176
- "Application directness uses proven component ownership; overview charts use package-manager scope. A shared physical occurrence is counted once.": "Le lien direct applicatif repose sur l'origine prouvée du composant ; les graphiques de synthèse utilisent la portée du gestionnaire de paquets. Une occurrence physique partagée est comptée une seule fois.",
177
188
  "{n} unique physical finding(s); {exposures} application exposure(s).": "{n} constat(s) physiques distinct(s) ; {exposures} exposition(s) applicative(s).",
178
189
  "Unassessed": "Non évalués",
179
190
  "unassessed because advisory coverage is incomplete": "non évalués car la couverture des avis est incomplète",
@@ -185,6 +196,7 @@ const fr = {
185
196
  "Maintenance/EOL": "Maintenance/Fin de vie",
186
197
  "EOL": "Fin de vie",
187
198
  "Obsolete": "Obsolète",
199
+ "Catalogue version compared for {checked} of {total} installed extensions.": "Version comparée au catalogue pour {checked} extensions installées sur {total}.",
188
200
  "Outdated": "En retard",
189
201
  "Licenses": "Licences",
190
202
  "Fix Recos": "Recommandations",
@@ -203,6 +215,16 @@ const fr = {
203
215
  "transitive": "transitive",
204
216
  "Top end-of-life framework": "Framework en fin de vie le plus critique",
205
217
  "Top {n} end-of-life frameworks": "Les {n} frameworks en fin de vie les plus critiques",
218
+ "Publisher bulletin covering {n} CVEs": "Bulletin éditeur couvrant {n} CVE",
219
+ "Advisory-specific candidates": "Versions correctives par avis",
220
+ "Distribution urgency": "Priorité de la distribution",
221
+ "Distribution status": "État dans la distribution",
222
+ "Security maintenance": "Maintenance de sécurité",
223
+ "Development finding occurrences": "Occurrences de développement ou de test",
224
+ "Direct dependency and CMS extension updates. End-of-life and obsolete components appear in their respective chapters.": "Mises à jour des dépendances directes et des extensions de CMS. Les composants en fin de vie ou obsolètes figurent dans leurs chapitres respectifs.",
225
+ "Production finding occurrences": "Occurrences hors développement",
226
+ "Distinct production advisories": "Avis distincts hors développement",
227
+ "regular support ended {date}": "fin du support standard le {date}",
206
228
  "support ended {date}": "support terminé le {date}",
207
229
  "EOL since {date}": "en fin de vie depuis le {date}",
208
230
  "end-of-life": "en fin de vie",
@@ -371,6 +393,7 @@ const fr = {
371
393
  "Identity (by checksum)": "Identité (par empreinte)",
372
394
  "SHA-256": "SHA-256",
373
395
  "Coordinate (groupId:artifactId:version)": "Coordonnée (groupId:artifactId:version)",
396
+ "Directories excluded from the target filesystem": "Répertoires exclus du système de fichiers audité",
374
397
  "Directory (relative to --src)": "Répertoire (relatif à --src)",
375
398
  "New": "Nouvelle",
376
399
  "Unchanged": "Inchangée",
@@ -493,6 +516,19 @@ const fr = {
493
516
  "No vulnerable vendored JavaScript files detected (or retire.js was skipped).": "Aucun fichier JavaScript embarqué vulnérable détecté (ou retire.js a été ignoré).",
494
517
  "No vendored JavaScript libraries identified.": "Aucune bibliothèque JavaScript embarquée identifiée.",
495
518
  "No committed native binaries found.": "Aucun binaire natif versionné trouvé.",
519
+ "Lifecycle coverage is incomplete. See the source checks in scan context.": "La couverture des fins de vie est incomplète. Le détail des contrôles figure dans le contexte du scan.",
520
+ "Offline analysis covers packages with registry metadata in the auditor’s cache.": "L’analyse hors ligne utilise les métadonnées des paquets disponibles dans le cache de l’auditeur.",
521
+ "Framework extensions": "Extensions du framework",
522
+ "CMS modules and themes": "Modules et thèmes du CMS",
523
+ "Direct module and theme advisories": "CVE et avis directs sur les modules et thèmes",
524
+ "Indirect findings by module": "CVE indirectes par module",
525
+ "Module inventory": "Inventaire des modules et thèmes",
526
+ "Root": "Racine",
527
+ "Module path": "Chemin du module",
528
+ "No private components inventoried.": "Aucun composant privé inventorié.",
529
+ "Audit target": "Cible auditée",
530
+ "Certificate and key metadata was not collected for every target.": "Les métadonnées des certificats et clés n’ont pas été collectées pour toutes les cibles.",
531
+ "No RetireJS signature inventory was collected for this system.": "Cet inventaire système ne contient pas de relevé de signatures RetireJS.",
496
532
  "No committed certificates or key material found.": "Aucun certificat ni matériel cryptographique versionné trouvé.",
497
533
  "No embedded JAR/WAR/EAR coordinates found.": "Aucune coordonnée JAR/WAR/EAR embarquée trouvée.",
498
534
  "No directories were excluded from the scan.": "Aucun répertoire n'a été exclu du scan.",
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lib/report-integrity.js — tamper-evidence for the report deliverable.
2
+ * lib/reports/integrity.js — tamper-evidence for the report deliverable.
3
3
  *
4
4
  * An audit handed to a client should be verifiable as unaltered. This writes a
5
5
  * standard `sha256sum`-format manifest (`<hex>␠␠<relative-path>`) over every artifact
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lib/json-export.js — emit a single machine-readable findings document.
2
+ * lib/reports/json-export.js — emit a single machine-readable findings document.
3
3
  *
4
4
  * Unlike the CycloneDX SBOM (component-centric) or CSAF VEX (status-centric),
5
5
  * this is vigievuln's own flat findings format: every chapter (CVE, EOL,
@@ -11,13 +11,13 @@
11
11
  */
12
12
  const fs = require("fs");
13
13
  const path = require("node:path");
14
- const { purlFor } = require("./purl");
15
- const { summarizeFindings, uniqueFindings } = require("./finding-summary");
16
- const { europeanReferences, euvdExploited } = require("./eu-refs");
14
+ const { purlFor } = require("../inventory/purl");
15
+ const { summarizeFindings, uniqueFindings } = require("../findings/summary");
16
+ const { europeanReferences, euvdExploited } = require("../findings/eu-refs");
17
17
 
18
18
  // Reports are shareable artifacts. Keep locations relative to the project,
19
19
  // without rewriting advisory evidence, URLs, stable IDs or the input payload.
20
- function portableLocations(doc, source) {
20
+ function portableLocations(doc, source, sourceArchive) {
21
21
  if (typeof source !== "string" || source.startsWith("(")) return doc;
22
22
  const paths = path.win32.isAbsolute(source) && !path.posix.isAbsolute(source) ? path.win32 : path.posix;
23
23
  if (!paths.isAbsolute(source)) return doc;
@@ -57,7 +57,7 @@ function portableLocations(doc, source) {
57
57
  return value;
58
58
  };
59
59
  const out = walk(doc);
60
- out.project.src = paths.basename(root) || ".";
60
+ out.project.src = sourceArchive ? paths.basename(sourceArchive) : paths.basename(root) || ".";
61
61
  return out;
62
62
  }
63
63
 
@@ -86,7 +86,9 @@ function depBrief(dep) {
86
86
  installEvidence: dep.installEvidence || null,
87
87
  sbomEvidence: dep.sbomEvidence || null,
88
88
  artifactTargetId: dep.artifactTargetId || null,
89
- ...(dep.artifactTargetId ? {imageRole:dep.imageRole || null,imageSource:require('./artifacts/component-scope').imageComponentSource(dep)} : {}),
89
+ ...(dep.cmsComponent ? {cmsComponent:dep.cmsComponent} : {}),
90
+ ...(dep.systemSection ? {systemSection:dep.systemSection,systemApplicationIds:dep.systemApplicationIds || []} : {}),
91
+ ...(dep.artifactTargetId ? {imageProduct:require('../artifacts/image-products').describe(dep),imageRole:dep.imageRole || null,imageSource:require('../artifacts/component-scope').imageComponentSource(dep)} : {}),
90
92
  artifactPath: dep.artifactPath || null,
91
93
  packageType: dep.packageType || null,
92
94
  manager: dep.manager || null,
@@ -99,19 +101,73 @@ function depBrief(dep) {
99
101
  };
100
102
  }
101
103
 
102
- function cveFinding(m) {
104
+ /**
105
+ * Each text is exported once per finding. The evidence blocks used to repeat it: the
106
+ * single NVD record already summarised by nvdEvidence, the description again in the NVD
107
+ * and EUVD blocks, the EUVD details again under cveEvidence. On a package with thousands
108
+ * of advisories (a kernel) this more than doubled the document.
109
+ */
110
+ function slimEvidence(c) {
111
+ const same = (a, b) => !!a && !!b && JSON.stringify(a) === JSON.stringify(b);
112
+ const text = value => String(value || "").replace(/\s+/g, " ").trim();
113
+ const own = text(c.description);
114
+ // Sources reflow the same text; one contained in the finding's own description adds nothing.
115
+ const repeats = value => { const other = text(value); return !!other && !!own && (own === other || own.includes(other)); };
116
+ const withoutDescription = block => {
117
+ if (!block || !block.description || !repeats(block.description)) return block;
118
+ const { description, ...rest } = block;
119
+ return rest;
120
+ };
121
+ let nvdEvidence = c.nvdEvidence || null;
122
+ if (nvdEvidence) {
123
+ nvdEvidence = withoutDescription({ ...nvdEvidence });
124
+ if (Array.isArray(nvdEvidence.records)) {
125
+ if (nvdEvidence.records.length === 1 && nvdEvidence.records[0]?.id === nvdEvidence.id) delete nvdEvidence.records;
126
+ else nvdEvidence.records = nvdEvidence.records.map(r => r?.id === nvdEvidence.id ? { id: r.id, relationship: r.relationship } : withoutDescription(r));
127
+ }
128
+ }
129
+ const cveEvidence = (c.cveEvidence || []).map(e => {
130
+ if (!e) return e;
131
+ let out = e;
132
+ // CERT-FR notices are listed once for the document (certfrAdvisories); evidence keeps their references.
133
+ if (Array.isArray(out.certfr)) out = { ...out, certfr: out.certfr.map(a => a?.ref || a) };
134
+ if (!out.euvdDetails) return out;
135
+ if (same(out.euvdDetails, c.euvdDetails)) { const { euvdDetails, ...rest } = out; return rest; }
136
+ return { ...out, euvdDetails: withoutDescription(out.euvdDetails) };
137
+ });
138
+ return { nvdEvidence, cveEvidence, euvdDetails: withoutDescription(c.euvdDetails || null),
139
+ summary: c.summary && repeats(c.summary) ? null : c.summary || null };
140
+ }
141
+
142
+ // Beyond its component's detail limit a finding keeps what identifies and rates it (ids,
143
+ // component, severity, score, fix, exploitation signals, distribution evidence), not the texts.
144
+ const COMPACT_OMITTED = { summary: null, description: null, references: [], relatedAdvisories: [], applicabilityEvidence: [],
145
+ cveEvidence: [], nvdEvidence: null, nvdRecordEvidence: null, euvdDetails: null };
146
+
147
+ // A compact entry has the same keys as a detailed one, so a consumer of fad-findings/1 reads
148
+ // both the same way; only the advisory texts and evidence are emptied.
149
+ function cveFinding(m, compact = false) {
150
+ const finding = detailedFinding(m);
151
+ return compact ? { ...finding, ...COMPACT_OMITTED, detail: "compact" } : finding;
152
+ }
153
+
154
+ function detailedFinding(m) {
103
155
  const c = m.cve;
156
+ const slim = slimEvidence(c);
104
157
  return {
105
158
  id: c.id,
106
159
  aliases: c.aliases || [],
107
160
  upstream: c.upstream || [],
108
161
  related: c.related || [],
109
162
  advisorySource: c.advisorySource || null,
163
+ ...(c.sourceAdvisoryId ? {sourceAdvisoryId:c.sourceAdvisoryId} : {}),
164
+ ...(c.distributionUrgency ? {distributionUrgency:c.distributionUrgency} : {}),
165
+ ...(c.distributionStatus ? {distributionStatus:c.distributionStatus} : {}),
110
166
  historicalEvidence: c.historicalEvidence || null,
111
- applicabilityEvidence: require('./applicability-evidence').applicabilityEvidence(c),
167
+ applicabilityEvidence: require('../findings/applicability-evidence').applicabilityEvidence(c),
112
168
  vendorEvidence: c.vendorEvidence || null,
113
169
  publisherEvidence: c.publisherEvidence || null,
114
- summary: c.summary || null,
170
+ summary: slim.summary,
115
171
  published: c.published || null,
116
172
  modified: c.modified || null,
117
173
  description: c.description || null,
@@ -131,7 +187,7 @@ function cveFinding(m) {
131
187
  severitySource: c.severitySource || null,
132
188
  scoreSource: c.scoreSource || null,
133
189
  riskEvidence: c.riskEvidence || null,
134
- cveEvidence: c.cveEvidence || [],
190
+ cveEvidence: slim.cveEvidence,
135
191
  kevEvidence: c.kevEvidence || null,
136
192
  epssEvidence: c.epssEvidence || null,
137
193
  cvss: c.score ?? null,
@@ -150,9 +206,9 @@ function cveFinding(m) {
150
206
  certfr: (c.certfr || []).map(a => a.ref),
151
207
  priority: c.priority ? { band: c.priority.band, score: c.priority.score } : null,
152
208
  cwes: c.cwes || [],
153
- nvdEvidence: c.nvdEvidence || null,
209
+ nvdEvidence: slim.nvdEvidence,
154
210
  nvdRecordEvidence: c.nvdRecordEvidence || null,
155
- euvdDetails: c.euvdDetails || null,
211
+ euvdDetails: slim.euvdDetails,
156
212
  fixVersion: c.fixVersion || null,
157
213
  ...(c.fixVersion && c.fixEvidence ? { fixEvidence: c.fixEvidence } : {}),
158
214
  ...(c.fixVersion ? { fixScope: 'advisory', packageFixVerified: false } : {}),
@@ -182,12 +238,14 @@ function buildFindings(payload = {}) {
182
238
  applications = [], applicationInventory = [], applicationRelations = [], coverage = [], warnings = [],
183
239
  } = payload;
184
240
 
185
- const { buildInventory } = require("./unmanaged");
186
- const sourceDeps = new Map([...(resolvedDeps || [])].filter(([, dep]) => !dep.artifactTargetId));
241
+ const { buildInventory } = require("../inventory/unmanaged");
242
+ const systems = new Set((projectInfo.artifacts || []).filter(a=>a.metadata?.systemApplications).map(a=>a.id));
243
+ const sourceDep = dep => !dep?.artifactTargetId || systems.has(dep.artifactTargetId);
244
+ const sourceDeps = new Map([...(resolvedDeps || [])].filter(([, dep]) => sourceDep(dep)));
187
245
  const unmanaged = buildInventory(sourceDeps);
188
246
 
189
- const { buildEmbeddedInventory } = require("./embedded");
190
- const embeddedMatches = cveMatches.filter(m => !m.dep?.artifactTargetId && m.dep?.provenance === "embedded");
247
+ const { buildEmbeddedInventory } = require("../inventory/embedded");
248
+ const embeddedMatches = cveMatches.filter(m => sourceDep(m.dep) && m.dep?.provenance === "embedded");
191
249
  const embedded = buildEmbeddedInventory(sourceDeps, embeddedMatches);
192
250
 
193
251
  const uniqueCveMatches = uniqueFindings(cveMatches);
@@ -195,28 +253,36 @@ function buildFindings(payload = {}) {
195
253
  // Count diagnostic signals as well as incomplete application capabilities.
196
254
  // Several signals can describe the same gap; this is not a count of sources.
197
255
  const applicationCoverageIncomplete = coverage.filter(c => c.affectsCompleteness !== false && (c.execution === "partial" || c.execution === "not-run" || c.execution === "failed")).length;
198
- const classifiedNotices = require('./report-notices').partitionReportNotices(warnings);
256
+ const classifiedNotices = require('./notices').partitionReportNotices(warnings);
199
257
  const provenance = projectInfo.provenance || payload.provenance || null;
200
258
  const reportProvenance = classifiedNotices.notices.length || classifiedNotices.freshness.length ? { ...(provenance || {}),
201
259
  notices: [...(provenance?.notices || []), ...classifiedNotices.notices],
202
260
  freshnessNotices: [...(provenance?.freshnessNotices || []), ...classifiedNotices.freshness] } : provenance;
203
- const coverageWarningTypes = new Set(["source-unavailable", "source-stale", "dependency-coverage", "osv-coverage", "go-coverage", "unresolved-versions", "no-lockfile", "parse-error", "missing-include", "local-replace", "private-libs"]);
204
- const coverageWarnings = classifiedNotices.warnings.filter(w => w.affectsCompleteness !== false && coverageWarningTypes.has(w.type)).length;
261
+ const coverageWarningTypes = new Set(["source-unavailable", "source-stale", "packagist-advisory-data-unknown", "dependency-coverage", "osv-coverage", "go-coverage", "unresolved-versions", "no-lockfile", "parse-error", "missing-include", "local-replace", "private-libs"]);
262
+ const coverageWarnings = classifiedNotices.warnings.filter(w => w.affectsCompleteness !== false && (coverageWarningTypes.has(w.type) || require("../scan/reliability").isBlocking(w))).length;
205
263
  const artifactCoverageIncomplete = (projectInfo.artifacts || []).flatMap(a => a.coverage || []).filter(c => c.affectsCompleteness !== false && !['completed', 'not-applicable'].includes(c.execution)).length;
206
264
 
265
+ const compactFindings = require("./detail").beyondDetailLimit(uniqueCveMatches);
266
+ const certfrNotices = new Map();
267
+ for (const m of uniqueCveMatches) for (const notice of [...(m.cve?.certfr || []), ...(m.cve?.cveEvidence || []).flatMap(e => e?.certfr || [])])
268
+ if (notice?.ref && !certfrNotices.has(notice.ref)) { const { ref, ...rest } = notice; certfrNotices.set(ref, rest); }
269
+ const certfrAdvisories = certfrNotices.size ? Object.fromEntries([...certfrNotices].sort(([a], [b]) => a < b ? -1 : a > b ? 1 : 0)) : null;
270
+
207
271
  return portableLocations({
208
272
  schema: "fad-findings/1",
209
273
  tool: { name: "VigieVuln", version: String(toolVersion) },
210
274
  generatedAt: projectInfo.generatedAt || null,
275
+ disclaimer: require('./notices').DISCLAIMER,
211
276
  project: { name: projectInfo.name || null, src: projectInfo.src || null },
212
- ...(projectInfo.artifacts ? { artifacts: require('./artifacts/report-inventory').reportArtifacts(projectInfo.artifacts,cveMatches) } : {}),
277
+ ...(projectInfo.artifacts ? { artifacts: require('../artifacts/report-inventory').reportArtifacts(projectInfo.artifacts,cveMatches) } : {}),
213
278
  ...(projectInfo.imageReferences?.length ? { imageReferences: projectInfo.imageReferences } : {}),
214
279
  // Scan-provenance manifest (data-source freshness + run configuration) for a
215
280
  // reproducible/defensible audit. Null if the caller didn't supply one.
216
281
  provenance: reportProvenance,
217
282
  summary: {
218
283
  dependencies: resolvedDeps?.size ?? null,
219
- cve: { ...findingSummary.bySeverity, kev: findingSummary.kev, total: findingSummary.total },
284
+ cve: { ...findingSummary.bySeverity, kev: findingSummary.kev, total: findingSummary.total, distinctAdvisories: findingSummary.distinctAdvisories,
285
+ ...(compactFindings.size ? { compact: compactFindings.size, detailLimitPerComponent: require("./detail").PER_COMPONENT_DETAIL_LIMIT } : {}) },
220
286
  eol: eolResults.length,
221
287
  unsupported: eolResults.filter(e => e.status === "unsupported").length,
222
288
  obsolete: obsoleteResults.length,
@@ -237,10 +303,13 @@ function buildFindings(payload = {}) {
237
303
  applicationCoverageIncomplete,
238
304
  coverageWarnings,
239
305
  ...(projectInfo.artifacts ? { artifacts: projectInfo.artifacts.length, artifactCoverageIncomplete } : {}),
306
+ scanReliable: !warnings.some(require("../scan/reliability").isBlocking),
240
307
  coverageIncomplete: applicationCoverageIncomplete + coverageWarnings + artifactCoverageIncomplete,
241
308
  },
242
309
  findingSummary,
243
- cve: uniqueCveMatches.map(cveFinding),
310
+ cve: uniqueCveMatches.map(m => cveFinding(m, compactFindings.has(m))),
311
+ // Each CERT-FR notice once; findings and their evidence cite it by reference.
312
+ ...(certfrAdvisories ? { certfrAdvisories } : {}),
244
313
  vendored: retireMatches.map(cveFinding),
245
314
  eol: eolResults.map(e => ({
246
315
  product: e.product, productSlug: e.productSlug || null, via: e.via || null, viaKey: e.viaKey || null,
@@ -252,6 +321,8 @@ function buildFindings(payload = {}) {
252
321
  // Lifecycle level: "eol" (no fixes at all) | "unsupported" (bug-fix support ended,
253
322
  // security fixes still provided — only present with --eol-support).
254
323
  status: e.status || "eol",
324
+ supportPhase: e.status === "unsupported" ? "security-only" : "end-of-life",
325
+ securitySupportUntil: typeof e.eol === "string" && /^\d{4}-\d{2}-\d{2}$/.test(e.eol) ? e.eol : null,
255
326
  cycle: e.cycle || null,
256
327
  support: e.support ?? null,
257
328
  // Paid support beyond the OSS end of life: a future date, "true" (offered, no date), or null.
@@ -285,7 +356,7 @@ function buildFindings(payload = {}) {
285
356
  // Differential audit vs a --baseline document (summary + per-category deltas).
286
357
  // Null when no baseline was provided.
287
358
  diff: diff || null,
288
- }, projectInfo.src);
359
+ }, projectInfo.src, projectInfo.sourceArchive);
289
360
  }
290
361
 
291
362
  function writeFindings(payload, outputPath) {
@@ -1,5 +1,8 @@
1
1
  'use strict';
2
- const {isInformational}=require('./diagnostics');
2
+ // Closing note of every report. The licence already says "as is", but whoever receives only a
3
+ // report never read the licence: the report has to say what it is and what it does not promise.
4
+ const DISCLAIMER='This report is an automated aid to analysis, not a security audit. It is built from public vulnerability data and from the files given to the scan, as they stood on the date shown: that data may be incomplete, late or wrong, and a component that is absent from the report is not thereby free of vulnerabilities. Check the findings that matter before acting on them. The report is provided as is, without warranty of any kind; the authors and publishers of VigieVuln accept no liability for decisions taken or damage suffered on the basis of its content.';
5
+ const {isInformational}=require('../scan/diagnostics');
3
6
  // Older data did not mark ordinary cached observations as informational. Only
4
7
  // this exact dated, neutral wording is a compatibility notice; refresh failures,
5
8
  // stale/unknown-age data and explicit warning severities remain warnings.
@@ -21,19 +24,21 @@ function partitionReportNotices(values=[]){
21
24
  // The CVE-record enrichment summary is shared across scans, even when its
22
25
  // underlying records include image findings. All other image diagnostics are
23
26
  // identified by their explicit image identity or image-specific type.
24
- function warningScope(item) {
27
+ function warningScope(item,systemIds) {
25
28
  if(item?.type==='cve-enrichment-summary')return 'global';
29
+ const ids=item?.artifactTargetIds?.length ? item.artifactTargetIds : [item?.artifactTargetId];
30
+ if(systemIds && ids.every(id=>systemIds.has(id)) && !['image-scan-failed','image-unpinned','image-source-unavailable'].includes(item.type))return 'system';
26
31
  if(item?.artifactTargetId || item?.artifactTargetIds?.length || item?.type==='image-unpinned' || item?.type==='image-source-unavailable' || item?.type==='image-scan-failed')return 'image';
27
32
  return 'project';
28
33
  }
29
34
  // Group causes for presentation, retaining every distinct location and detail.
30
35
  // Raw diagnostics remain available in JSON; unrelated causes never collapse
31
36
  // merely because they share a broad warning type.
32
- function groupReportWarnings(values=[]) {
37
+ function groupReportWarnings(values=[],systemIds) {
33
38
  const imageIssues=[],other=[];
34
39
  for(const w of values) {
35
40
  if(w.type==='image-source-unavailable')imageIssues.push(...(w.diagnostics||[w]));
36
- else if(w.type==='image-scan-failed' || (warningScope(w)==='image' && ['source-unavailable','source-stale','osv-coverage'].includes(w.type)))imageIssues.push(w);
41
+ else if(w.type==='image-scan-failed' || (warningScope(w,systemIds)==='image' && ['source-unavailable','source-stale','osv-coverage'].includes(w.type)))imageIssues.push(w);
37
42
  else other.push(w);
38
43
  }
39
44
  if(imageIssues.length){
@@ -62,7 +67,7 @@ function groupReportWarnings(values=[]) {
62
67
  if(item._groupedDiagnostics){out.push(item);continue;}
63
68
  const perManifest=item.type==='no-lockfile'||item.type==='parse-error';
64
69
  const cause=perManifest ? null : item.reason||item.code||item.message;
65
- const key=JSON.stringify([warningScope(item),item.type,item.severity,item.source||item.sourceId,item.capability,item.applicationId,cause,item.cause,item.status,item.refreshFailure]);
70
+ const key=JSON.stringify([warningScope(item,systemIds),item.type,item.severity,item.source||item.sourceId,item.capability,item.applicationId,cause,item.cause,item.status,item.refreshFailure]);
66
71
  if(!groups.has(key)){const group=[];groups.set(key,group);out.push(group);}
67
72
  groups.get(key).push(item);
68
73
  }
@@ -79,4 +84,4 @@ function groupReportWarnings(values=[]) {
79
84
  return {...first,artifactTargetIds:[...new Set(group.flatMap(w=>[w.artifactTargetId,...(w.artifactTargetIds||[])]).filter(Boolean))],message:messages.size===1?first.message:'',count:group.reduce((n,w)=>n+(w.count||1),0),items,_groupedDiagnostics:true};
80
85
  });
81
86
  }
82
- module.exports={legacyFreshness,partitionReportNotices,groupReportWarnings,warningScope};
87
+ module.exports={legacyFreshness,partitionReportNotices,groupReportWarnings,warningScope,DISCLAIMER};
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lib/sarif-export.js — emit a SARIF 2.1.0 log from CVE matches.
2
+ * lib/reports/sarif-export.js — emit a SARIF 2.1.0 log from CVE matches.
3
3
  *
4
4
  * SARIF is the integration standard for GitHub Code Scanning and GitLab: any
5
5
  * tool that emits it shows up in their dashboards with no custom glue. One
@@ -13,8 +13,8 @@
13
13
  */
14
14
  const fs = require("fs");
15
15
  const path = require("path");
16
- const { purlFor } = require("./purl");
17
- const { europeanReferences, euvdExploited } = require("./eu-refs");
16
+ const { purlFor } = require("../inventory/purl");
17
+ const { europeanReferences, euvdExploited } = require("../findings/eu-refs");
18
18
 
19
19
  // CVSS/severity → SARIF result level.
20
20
  function sarifLevel(sev) {
@@ -66,12 +66,16 @@ function buildSarif(matches, opts = {}) {
66
66
 
67
67
  const rulesById = new Map();
68
68
  const results = [];
69
+ // Beyond its component's detail limit a result keeps its identity, rating and location,
70
+ // not the advisory text and evidence (lib/reports/detail.js).
71
+ const beyond = require("./detail").beyondDetailLimit(matches);
69
72
 
70
73
  for (const m of matches || []) {
71
74
  const id = m.cve?.id;
72
75
  if (!id) continue;
76
+ const compact = beyond.has(m);
73
77
  const cve = m.cve;
74
- const risk=require('./risk-evidence'),scoreSafe=!risk.relatedRisk(cve,'scoreSource'),severitySafe=!risk.relatedRisk(cve,'severitySource'),kevRelated=risk.relatedSignal(cve,'kev'),epssRelated=risk.relatedSignal(cve,'epss');
78
+ const risk=require('../findings/risk-evidence'),scoreSafe=!risk.relatedRisk(cve,'scoreSource'),severitySafe=!risk.relatedRisk(cve,'severitySource'),kevRelated=risk.relatedSignal(cve,'kev'),epssRelated=risk.relatedSignal(cve,'epss');
75
79
 
76
80
  if (!rulesById.has(id)) {
77
81
  const rule = {
@@ -101,7 +105,7 @@ function buildSarif(matches, opts = {}) {
101
105
  if (cve.kev) bits.push(kevRelated ? "Related upstream CVE listed in CISA-KEV" : "CISA-KEV (exploited)");
102
106
  if (cve.epssPercentile != null) bits.push(`${epssRelated ? "Related upstream CVE EPSS" : "EPSS"} ${Math.round(cve.epssPercentile * 100)}%`);
103
107
  if (cve.fixVersion) bits.push(`advisory-specific candidate ${cve.fixVersion}; package-wide safety unverified`);
104
- const text = `${id} in ${bits.join(" · ")}${cve.description ? ` — ${cve.description.slice(0, 300)}` : ""}`;
108
+ const text = `${id} in ${bits.join(" · ")}${cve.description && !compact ? ` — ${cve.description.slice(0, 300)}` : ""}`;
105
109
 
106
110
  const locations = (m.dep.manifestPaths || m.dep.pomPaths || [])
107
111
  .map(p => relUri(p, srcRoot))
@@ -112,11 +116,12 @@ function buildSarif(matches, opts = {}) {
112
116
  if (purl) props.purl = purl;
113
117
  if (m.dep.artifactTargetId) props.artifactTargetId = m.dep.artifactTargetId;
114
118
  if (m.dep.artifactPath) props.artifactPath = m.dep.artifactPath;
115
- if (m.dep.artifactTargetId) for (const key of ["manager", "sourceName", "sourceVersion", "distribution", "binaryEvidence", "installEvidence", "sbomEvidence", "osPackageOwners"]) if (m.dep[key]) props[key] = m.dep[key];
116
- const riskEvidence=risk.evidenceObject(cve);if(Object.keys(riskEvidence).length)props.relatedRiskEvidence=riskEvidence;
117
- if(cve.historicalEvidence)props.historicalEvidence=cve.historicalEvidence;
118
- const applicability=require('./applicability-evidence').applicabilityEvidence(cve);if(applicability.length)props.applicabilityEvidence=applicability;
119
- if(cve.vendorEvidence)props.vendorEvidence=cve.vendorEvidence;
119
+ if (m.dep.artifactTargetId) for (const key of compact ? ["manager", "sourceName", "sourceVersion"] : ["manager", "sourceName", "sourceVersion", "distribution", "binaryEvidence", "installEvidence", "sbomEvidence", "osPackageOwners"]) if (m.dep[key]) props[key] = m.dep[key];
120
+ if (compact) props.detail = "compact";
121
+ const riskEvidence=compact ? {} : risk.evidenceObject(cve);if(Object.keys(riskEvidence).length)props.relatedRiskEvidence=riskEvidence;
122
+ if(cve.historicalEvidence && !compact)props.historicalEvidence=cve.historicalEvidence;
123
+ const applicability=compact ? [] : require('../findings/applicability-evidence').applicabilityEvidence(cve);if(applicability.length)props.applicabilityEvidence=applicability;
124
+ if(cve.vendorEvidence && !compact)props.vendorEvidence=cve.vendorEvidence;
120
125
  if (cve.epssScore != null && !epssRelated) props.epss = cve.epssScore;
121
126
  if (cve.epssPercentile != null && !epssRelated) props.epssPercentile = cve.epssPercentile;
122
127
  if (cve.kev && !kevRelated) props.kev = true;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lib/sbom-export.js — emit a CycloneDX 1.6 SBOM with vulnerabilities inline
2
+ * lib/reports/sbom-export.js — emit a CycloneDX 1.6 SBOM with vulnerabilities inline
3
3
  * (a VDR — Vulnerability Disclosure Report) from the resolved deps + matches.
4
4
  *
5
5
  * buildCycloneDx is pure (testable); writeCycloneDx writes the JSON to disk.
@@ -8,9 +8,9 @@
8
8
  * @email: pp9ping@gmail.com
9
9
  */
10
10
  const fs = require("fs");
11
- const { purlFor } = require("./purl");
12
- const { variantsFor, matchingVariants } = require("./application-exports");
13
- const { europeanReferences, euvdExploited } = require("./eu-refs");
11
+ const { purlFor } = require("../inventory/purl");
12
+ const { variantsFor, matchingVariants } = require("../applications/exports");
13
+ const { europeanReferences, euvdExploited } = require("../findings/eu-refs");
14
14
 
15
15
  // NVD "CVSS:3.1" → CycloneDX rating method enum. Tolerates the legacy
16
16
  // "CVSS:V31"/"V30"/"V40"/"V2" labels left in pre-fix NVD caches.
@@ -113,9 +113,14 @@ function buildCycloneDx(resolvedDeps, cveMatches, opts = {}) {
113
113
 
114
114
  // One vulnerability entry per CVE id, aggregating affected component refs.
115
115
  const byCve = new Map();
116
+ // An advisory that is beyond the detail limit on every component it affects keeps its
117
+ // identity, rating and affected references, not its texts and evidence (lib/reports/detail.js).
118
+ const beyond = require('./detail').beyondDetailLimit(cveMatches);
119
+ const detailedIds = new Set((cveMatches || []).filter(m => !beyond.has(m)).map(m => m.cve?.id));
116
120
  for (const m of cveMatches || []) {
117
121
  const id = m.cve?.id;
118
122
  if (!id) continue;
123
+ const compact = !detailedIds.has(id);
119
124
  const variants = variantsByCoord.get(m.dep?.coordKey) || [];
120
125
  let refs = variants.length ? matchingVariants(m, variants, projectInfo.src).map(v => v.ref) :
121
126
  [bomRefFor(m.dep, purlFor(m.dep))];
@@ -134,7 +139,7 @@ function buildCycloneDx(resolvedDeps, cveMatches, opts = {}) {
134
139
  let v = byCve.get(id);
135
140
  if (!v) {
136
141
  const cve = m.cve;
137
- const risk=require('./risk-evidence'), scoreSafe=!risk.relatedRisk(cve,'scoreSource'), severitySafe=!risk.relatedRisk(cve,'severitySource');
142
+ const risk=require('../findings/risk-evidence'), scoreSafe=!risk.relatedRisk(cve,'scoreSource'), severitySafe=!risk.relatedRisk(cve,'severitySource');
138
143
  const score=scoreSafe?cve.score:null;
139
144
  const ownSeverity=severitySafe && cve.severity && String(cve.severity).toUpperCase()!=='UNKNOWN';
140
145
  v = {
@@ -149,17 +154,17 @@ function buildCycloneDx(resolvedDeps, cveMatches, opts = {}) {
149
154
  ...(score != null && cve.cvssVector ? { vector: cve.cvssVector } : {}),
150
155
  }] : [],
151
156
  ...(Array.isArray(cve.cwes) && cve.cwes.length ? { cwes: cve.cwes.map(cweNum).filter(n => n != null) } : {}),
152
- ...(cve.description ? { description: cve.description } : {}),
153
- ...(europeanReferences(cve).length ? { references: europeanReferences(cve).map(r => ({ id: r.id, source: { name: r.source, url: r.url } })) } : {}),
157
+ ...(cve.description && !compact ? { description: cve.description } : {}),
158
+ ...(!compact && europeanReferences(cve).length ? { references: europeanReferences(cve).map(r => ({ id: r.id, source: { name: r.source, url: r.url } })) } : {}),
154
159
  affects: [],
155
- properties: buildVulnProps(cve),
160
+ properties: compact ? [{ name: 'vigievuln:detail', value: 'compact' }, ...buildVulnProps(cve).filter(p => p.name !== 'vigievuln:related-risk-evidence')] : buildVulnProps(cve),
156
161
  };
157
162
  byCve.set(id, v);
158
163
  }
159
- const evidence=require('./risk-evidence').evidenceObject(m.cve);
164
+ const evidence=compact ? {} : require('../findings/risk-evidence').evidenceObject(m.cve);
160
165
  if(Object.keys(evidence).length){const value=JSON.stringify(evidence);if(!v.properties.some(p=>p.name==='vigievuln:related-risk-evidence' && p.value===value))v.properties.push({name:'vigievuln:related-risk-evidence',value});}
161
166
  if(m.cve.historicalEvidence){const value=JSON.stringify({refs:refs.filter(Boolean),evidence:m.cve.historicalEvidence});if(!v.properties.some(p=>p.name==='vigievuln:historical-evidence'&&p.value===value))v.properties.push({name:'vigievuln:historical-evidence',value});}
162
- for(const evidence of require('./applicability-evidence').applicabilityEvidence(m.cve)){const value=JSON.stringify({refs:refs.filter(Boolean),...evidence});if(!v.properties.some(p=>p.name==='vigievuln:applicability-evidence'&&p.value===value))v.properties.push({name:'vigievuln:applicability-evidence',value});}
167
+ for(const evidence of compact ? [] : require('../findings/applicability-evidence').applicabilityEvidence(m.cve)){const value=JSON.stringify({refs:refs.filter(Boolean),...evidence});if(!v.properties.some(p=>p.name==='vigievuln:applicability-evidence'&&p.value===value))v.properties.push({name:'vigievuln:applicability-evidence',value});}
163
168
  if(m.cve.vendorEvidence){const value=JSON.stringify({refs:refs.filter(Boolean),evidence:m.cve.vendorEvidence});if(!v.properties.some(p=>p.name==='vigievuln:vendor-evidence'&&p.value===value))v.properties.push({name:'vigievuln:vendor-evidence',value});}
164
169
  for (const source of String(m.source || 'cache').split('+').filter(Boolean))
165
170
  if (!v.properties.some(p => p.name === 'vigievuln:source' && p.value === source)) v.properties.push({ name: 'vigievuln:source', value: source });
@@ -193,7 +198,7 @@ function buildCycloneDx(resolvedDeps, cveMatches, opts = {}) {
193
198
 
194
199
  function buildVulnProps(cve) {
195
200
  const props = [];
196
- const risk=require('./risk-evidence');const evidence=risk.evidenceObject(cve);
201
+ const risk=require('../findings/risk-evidence');const evidence=risk.evidenceObject(cve);
197
202
  if(Object.keys(evidence).length)props.push({name:'vigievuln:related-risk-evidence',value:JSON.stringify(evidence)});
198
203
  if (cve.epssScore != null && !risk.relatedSignal(cve,'epss')) props.push({ name: "fad:epss", value: String(cve.epssScore) });
199
204
  if (cve.epssPercentile != null && !risk.relatedSignal(cve,'epss')) props.push({ name: "fad:epssPercentile", value: String(cve.epssPercentile) });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lib/scan-completeness.js — produce warnings telling the user when vigievuln
2
+ * lib/scan/completeness.js — produce warnings telling the user when vigievuln
3
3
  * has gone as far as it can without running the real build tool.
4
4
  *
5
5
  * The two big "you need a real scan" cases: