vigievuln 1.3.3 → 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 (293) hide show
  1. package/CHANGELOG.md +57 -0
  2. package/README.md +34 -19
  3. package/completions/vigievuln.bash +14 -3
  4. package/completions/vigievuln.zsh +11 -8
  5. package/lib/README.md +51 -0
  6. package/lib/{coverage-diagnostics.js → advisories/coverage-diagnostics.js} +1 -1
  7. package/lib/{cve-match.js → advisories/cve-match.js} +17 -12
  8. package/lib/{advisory-fixes.js → advisories/fixes.js} +1 -1
  9. package/lib/{advisory-freshness.js → advisories/freshness.js} +5 -1
  10. package/lib/{gap-adjudicate.js → advisories/gap-adjudicate.js} +3 -3
  11. package/lib/{native-package-match.js → advisories/native-package-match.js} +20 -11
  12. package/lib/{native-source-prepare.js → advisories/native-source-prepare.js} +15 -12
  13. package/lib/{native-advisories.js → advisories/native.js} +15 -13
  14. package/lib/{advisory-store-sqlite.js → advisories/store-sqlite.js} +5 -5
  15. package/lib/{advisory-store.js → advisories/store.js} +2 -2
  16. package/lib/{application-exports.js → applications/exports.js} +1 -1
  17. package/lib/{application-inventory.js → applications/inventory.js} +3 -1
  18. package/lib/applications/layout.js +199 -0
  19. package/lib/{application-providers → applications}/live-snapshot.js +10 -10
  20. package/lib/{application-plugins → applications/plugins}/drupal.js +2 -2
  21. package/lib/applications/plugins/ghost.js +36 -0
  22. package/lib/{application-plugins → applications/plugins}/index.js +1 -1
  23. package/lib/{application-plugins → applications/plugins}/prestashop.js +73 -15
  24. package/lib/applications/plugins/redmine.js +24 -0
  25. package/lib/{application-plugins → applications/plugins}/runner.js +89 -59
  26. package/lib/{application-plugins → applications/plugins}/spip.js +4 -4
  27. package/lib/{application-plugins → applications/plugins}/symfony.js +1 -1
  28. package/lib/{application-plugins → applications/plugins}/typo3.js +2 -2
  29. package/lib/{application-plugins → applications/plugins}/wave2-common.js +1 -1
  30. package/lib/{application-plugins → applications/plugins}/wordpress.js +52 -18
  31. package/lib/{application-providers → applications}/snapshot-cache.js +1 -1
  32. package/lib/{cms-snapshot-warm.js → applications/snapshot-warm.js} +21 -8
  33. package/lib/artifacts/access-warnings.js +24 -0
  34. package/lib/artifacts/applications.js +39 -8
  35. package/lib/artifacts/component-scope.js +11 -2
  36. package/lib/artifacts/cve-view.js +8 -5
  37. package/lib/artifacts/disk-wasm.mjs +3 -0
  38. package/lib/artifacts/disk.js +188 -0
  39. package/lib/artifacts/enrichment.js +31 -17
  40. package/lib/artifacts/go-main-identity.js +135 -36
  41. package/lib/artifacts/go-publisher-advisories.js +4 -3
  42. package/lib/artifacts/image-products.js +5 -4
  43. package/lib/artifacts/index.js +36 -13
  44. package/lib/artifacts/inventory-scope.js +53 -3
  45. package/lib/artifacts/product-advisories.js +51 -46
  46. package/lib/artifacts/product-catalog.js +6 -1
  47. package/lib/artifacts/release-catalogues.js +149 -0
  48. package/lib/artifacts/release-versions.js +101 -0
  49. package/lib/artifacts/remediation-report.js +1 -1
  50. package/lib/artifacts/report-inventory.js +15 -2
  51. package/lib/artifacts/report-path.js +29 -0
  52. package/lib/artifacts/report.js +66 -36
  53. package/lib/artifacts/retire.js +3 -3
  54. package/lib/artifacts/risk-report.js +12 -8
  55. package/lib/artifacts/sbom.js +33 -4
  56. package/lib/artifacts/scan.js +295 -67
  57. package/lib/artifacts/system-apps.js +98 -0
  58. package/lib/artifacts/system-maintenance.js +101 -0
  59. package/lib/artifacts/system-module-updates.js +104 -0
  60. package/lib/artifacts/system-report.js +232 -0
  61. package/lib/{airgap-project.js → cache/airgap-project.js} +25 -10
  62. package/lib/{cache-archive-sqlite.js → cache/archive.js} +6 -5
  63. package/lib/{cache-db.js → cache/db.js} +1 -1
  64. package/lib/{dump-format.js → cache/dump-format.js} +2 -2
  65. package/lib/{json-cache.js → cache/json.js} +1 -1
  66. package/lib/{proxy-cache.js → cache/proxy-cache.js} +9 -9
  67. package/lib/{proxy-scope.js → cache/proxy-scope.js} +1 -1
  68. package/lib/{record-freshness.js → cache/record-freshness.js} +1 -1
  69. package/lib/{cache-repository.js → cache/repository.js} +1 -1
  70. package/lib/{resource-cache → cache/resource}/engine.js +20 -14
  71. package/lib/{resource-cache → cache/resource}/fs-store.js +2 -2
  72. package/lib/{resource-cache → cache/resource}/sqlite-store.js +3 -3
  73. package/lib/{resource-cache → cache/resource}/validate.js +20 -6
  74. package/lib/{sqlite-driver.js → cache/sqlite-driver.js} +7 -5
  75. package/lib/certs/scan.js +17 -11
  76. package/lib/cli-collect.js +262 -0
  77. package/lib/cli-command-routing.js +30 -13
  78. package/lib/cli-groups.js +1 -1
  79. package/lib/cli-image.js +157 -46
  80. package/lib/cli-project-commands.js +10 -10
  81. package/lib/cli-setup.js +8 -8
  82. package/lib/cli-watch.js +3 -3
  83. package/lib/codecs/binary/scan.js +11 -3
  84. package/lib/codecs/binary.codec.js +1 -1
  85. package/lib/codecs/composer/platform.js +2 -2
  86. package/lib/codecs/composer/registry.js +12 -18
  87. package/lib/codecs/composer.codec.js +6 -5
  88. package/lib/codecs/go/parse.js +1 -1
  89. package/lib/codecs/go/registry.js +7 -7
  90. package/lib/codecs/go.codec.js +2 -2
  91. package/lib/codecs/gradle/parse.js +1 -1
  92. package/lib/codecs/gradle/versionless.js +2 -2
  93. package/lib/codecs/gradle.codec.js +7 -7
  94. package/lib/codecs/index.js +1 -1
  95. package/lib/{maven-airgap.js → codecs/maven/airgap.js} +4 -4
  96. package/lib/{maven-bom.js → codecs/maven/bom.js} +3 -3
  97. package/lib/codecs/maven/jar-scan.js +4 -4
  98. package/lib/{maven-license.js → codecs/maven/license.js} +2 -2
  99. package/lib/{core.js → codecs/maven/pom.js} +22 -11
  100. package/lib/{maven-reactor.js → codecs/maven/reactor.js} +18 -12
  101. package/lib/{transitive.js → codecs/maven/transitive.js} +79 -34
  102. package/lib/{maven-version.js → codecs/maven/version.js} +1 -1
  103. package/lib/codecs/maven.codec.js +18 -14
  104. package/lib/codecs/npm/collect.js +55 -8
  105. package/lib/codecs/npm/manifest-kind.js +16 -0
  106. package/lib/codecs/npm/parse.js +23 -7
  107. package/lib/codecs/npm/registry.js +28 -14
  108. package/lib/codecs/npm.codec.js +5 -5
  109. package/lib/codecs/nuget/registry.js +7 -7
  110. package/lib/codecs/nuget.codec.js +4 -4
  111. package/lib/codecs/pypi/registry.js +7 -7
  112. package/lib/codecs/pypi.codec.js +4 -4
  113. package/lib/codecs/recipes.js +2 -2
  114. package/lib/codecs/ruby/registry.js +7 -7
  115. package/lib/codecs/ruby.codec.js +2 -2
  116. package/lib/config.js +1 -1
  117. package/lib/{attribution.js → findings/attribution.js} +3 -3
  118. package/lib/findings/cve-descriptions.js +144 -0
  119. package/lib/{cve-record-coverage.js → findings/cve-record-coverage.js} +46 -41
  120. package/lib/{diff.js → findings/diff.js} +0 -0
  121. package/lib/{finding-enrichment.js → findings/enrichment.js} +45 -32
  122. package/lib/{eu-refs.js → findings/eu-refs.js} +3 -3
  123. package/lib/{gate.js → findings/gate.js} +1 -1
  124. package/lib/{malware.js → findings/malware.js} +30 -7
  125. package/lib/{merge-sources.js → findings/merge.js} +57 -9
  126. package/lib/{priority.js → findings/priority.js} +3 -3
  127. package/lib/findings/risk-evidence.js +24 -0
  128. package/lib/findings/severity.js +16 -0
  129. package/lib/{finding-summary.js → findings/summary.js} +5 -2
  130. package/lib/{suppress.js → findings/suppress.js} +2 -2
  131. package/lib/images/local-docker.js +72 -0
  132. package/lib/{image-network.js → images/network.js} +26 -16
  133. package/lib/{image-references.js → images/references.js} +29 -11
  134. package/lib/{image-registry.js → images/registry.js} +18 -9
  135. package/lib/{source-image-scan.js → images/source-scan.js} +3 -3
  136. package/lib/images/temp-roots.js +23 -0
  137. package/lib/{image-update.js → images/update.js} +3 -3
  138. package/lib/{dep-record.js → inventory/dep-record.js} +2 -2
  139. package/lib/{deps-descriptor.js → inventory/deps-descriptor.js} +3 -3
  140. package/lib/{descriptor-refs.js → inventory/descriptor-refs.js} +1 -1
  141. package/lib/{embedded.js → inventory/embedded.js} +4 -3
  142. package/lib/{license-policy.js → inventory/license-policy.js} +2 -2
  143. package/lib/{manifest-copy.js → inventory/manifest-copy.js} +2 -2
  144. package/lib/{module-names.js → inventory/module-names.js} +1 -1
  145. package/lib/{package-versions.js → inventory/package-versions.js} +2 -2
  146. package/lib/{parallel-walk.js → inventory/parallel-walk.js} +1 -1
  147. package/lib/{path-filter.js → inventory/path-filter.js} +1 -1
  148. package/lib/{private-deps.js → inventory/private-deps.js} +1 -1
  149. package/lib/{project-descriptor.js → inventory/project-descriptor.js} +3 -0
  150. package/lib/{purl.js → inventory/purl.js} +2 -2
  151. package/lib/{unmanaged.js → inventory/unmanaged.js} +6 -3
  152. package/lib/{commercial-support.js → maintenance/commercial-support.js} +5 -5
  153. package/lib/{outdated.js → maintenance/outdated.js} +20 -20
  154. package/lib/options-env.js +1 -1
  155. package/lib/{system-inventory/alpine-tracker.js → providers/alpine/tracker.js} +27 -7
  156. package/lib/{certfr.js → providers/certfr/enrich.js} +9 -9
  157. package/lib/{cve-download.js → providers/cveproject/download.js} +56 -36
  158. package/lib/{cve-legacy-ranges.js → providers/cveproject/legacy-ranges.js} +1 -1
  159. package/lib/{cve-npm-proxy.js → providers/cveproject/npm-proxy.js} +5 -5
  160. package/lib/{cve-packages-proxy.js → providers/cveproject/packages-proxy.js} +6 -6
  161. package/lib/{cve-version-verdict.js → providers/cveproject/version-verdict.js} +2 -2
  162. package/lib/{system-inventory/current-debian.js → providers/debian/current.js} +6 -6
  163. package/lib/{system-inventory/historical-debian.js → providers/debian/historical.js} +6 -6
  164. package/lib/providers/{debian.js → debian/index.js} +1 -0
  165. package/lib/{application-providers/drupal-advisories.js → providers/drupal/advisories.js} +13 -36
  166. package/lib/providers/{drupal.js → drupal/index.js} +4 -0
  167. package/lib/providers/{eol.js → eol/index.js} +1 -1
  168. package/lib/{epss.js → providers/epss/enrich.js} +16 -13
  169. package/lib/providers/{epss.js → epss/index.js} +2 -2
  170. package/lib/{euvd.js → providers/euvd/enrich.js} +13 -13
  171. package/lib/{system-inventory/freexian-ela.js → providers/freexian/ela.js} +6 -6
  172. package/lib/providers/{freexian.js → freexian/index.js} +3 -3
  173. package/lib/{system-inventory/freexian-release-evidence.js → providers/freexian/release-evidence.js} +8 -5
  174. package/lib/{system-inventory/freexian-tracker.js → providers/freexian/tracker.js} +33 -9
  175. package/lib/{gcve-feed.js → providers/gcve/feed.js} +4 -4
  176. package/lib/{gcve.js → providers/gcve/id.js} +1 -1
  177. package/lib/{gcve-index.js → providers/gcve/local-index.js} +4 -4
  178. package/lib/{application-providers/github-advisories.js → providers/github/advisories.js} +6 -2
  179. package/lib/providers/{github.js → github/index.js} +3 -1
  180. package/lib/{github-publisher-maven.js → providers/github/publisher-maven.js} +1 -1
  181. package/lib/providers/{go.js → go/index.js} +1 -1
  182. package/lib/{hash-id.js → providers/hashid/identify.js} +7 -7
  183. package/lib/providers/{hashid.js → hashid/index.js} +1 -1
  184. package/lib/providers/index.js +18 -13
  185. package/lib/{kev.js → providers/kev/enrich.js} +12 -9
  186. package/lib/{maven-cache.js → providers/maven/cache.js} +3 -3
  187. package/lib/providers/{maven.js → maven/index.js} +5 -3
  188. package/lib/{maven-presence.js → providers/maven/presence.js} +5 -5
  189. package/lib/{maven-repo.js → providers/maven/repo.js} +38 -21
  190. package/lib/providers/mit-kerberos/index.js +6 -0
  191. package/lib/{system-inventory/nginx-advisories.js → providers/nginx/advisories.js} +3 -3
  192. package/lib/providers/{npm.js → npm/index.js} +1 -1
  193. package/lib/providers/{nuget.js → nuget/index.js} +1 -1
  194. package/lib/{cpe.js → providers/nvd/cpe.js} +35 -47
  195. package/lib/{nvd.js → providers/nvd/enrich.js} +41 -40
  196. package/lib/providers/{nvd.js → nvd/index.js} +3 -3
  197. package/lib/{nvd-package-ranges.js → providers/nvd/package-ranges.js} +38 -22
  198. package/lib/{osv-db.js → providers/osv/db.js} +18 -16
  199. package/lib/providers/{osv.js → osv/index.js} +1 -1
  200. package/lib/{osv.js → providers/osv/query.js} +150 -80
  201. package/lib/providers/package-releases/index.js +26 -0
  202. package/lib/{packagist-audit.js → providers/packagist/audit.js} +31 -11
  203. package/lib/providers/{packagist.js → packagist/index.js} +1 -1
  204. package/lib/{proxy-throttle.js → providers/proxy-throttle.js} +17 -9
  205. package/lib/providers/{pypi.js → pypi/index.js} +1 -1
  206. package/lib/providers/redhat/bzip2.js +167 -0
  207. package/lib/providers/redhat/errata.js +75 -0
  208. package/lib/providers/redhat/index.js +10 -0
  209. package/lib/providers/redhat/oval.js +70 -0
  210. package/lib/providers/redhat/unfixed.js +127 -0
  211. package/lib/{registries.js → providers/registries.js} +4 -4
  212. package/lib/{retire.js → providers/retire/scan.js} +18 -18
  213. package/lib/providers/{ruby.js → ruby/index.js} +1 -1
  214. package/lib/providers/rubysec/advisories.js +177 -0
  215. package/lib/providers/rubysec/index.js +9 -0
  216. package/lib/{snyk.js → providers/snyk/client.js} +2 -2
  217. package/lib/{application-providers/spip-advisories.js → providers/spip/advisories.js} +5 -13
  218. package/lib/{vigievuln-advisories.js → providers/vigievuln/advisories.js} +4 -4
  219. package/lib/providers/wolfi/index.js +10 -0
  220. package/lib/providers/wolfi/secdb.js +47 -0
  221. package/lib/{application-providers/wordfence-client.js → providers/wordfence/client.js} +4 -4
  222. package/lib/providers/{wordfence.js → wordfence/index.js} +1 -1
  223. package/lib/{application-providers/wordfence-projection.js → providers/wordfence/projection.js} +14 -5
  224. package/lib/{resource-cache/wordfence.js → providers/wordfence/resource-cache.js} +2 -2
  225. package/lib/{application-providers/wordfence-v3.js → providers/wordfence/v3.js} +4 -5
  226. package/lib/providers/{wordpress.js → wordpress/index.js} +5 -0
  227. package/lib/providers/wpvulnerability/assess.js +181 -0
  228. package/lib/providers/wpvulnerability/index.js +12 -0
  229. package/lib/{charts.js → reports/charts.js} +25 -18
  230. package/lib/{csaf-export.js → reports/csaf-export.js} +16 -11
  231. package/lib/{cve-report.js → reports/cve-report.js} +453 -228
  232. package/lib/reports/detail.js +55 -0
  233. package/lib/{i18n.js → reports/i18n.js} +38 -2
  234. package/lib/{report-integrity.js → reports/integrity.js} +1 -1
  235. package/lib/{json-export.js → reports/json-export.js} +95 -24
  236. package/lib/{report-notices.js → reports/notices.js} +11 -6
  237. package/lib/{sarif-export.js → reports/sarif-export.js} +15 -10
  238. package/lib/{sbom-export.js → reports/sbom-export.js} +16 -11
  239. package/lib/{scan-completeness.js → scan/completeness.js} +1 -1
  240. package/lib/scan/coverage.js +114 -0
  241. package/lib/{provenance.js → scan/provenance.js} +12 -5
  242. package/lib/scan/reliability.js +157 -0
  243. package/lib/{source-health.js → scan/source-health.js} +52 -20
  244. package/lib/{source-profile.js → scan/source-profile.js} +3 -3
  245. package/lib/{hosted-proxy.js → service/hosted-proxy.js} +3 -3
  246. package/lib/{project-client.js → service/project-client.js} +20 -2
  247. package/lib/source-input.js +58 -0
  248. package/lib/system-inventory/advisories.js +89 -16
  249. package/lib/system-inventory/collect.js +33 -10
  250. package/lib/system-inventory/distribution-sources.js +32 -15
  251. package/lib/system-inventory/package-applicability.js +51 -0
  252. package/lib/system-inventory/targeted.js +8 -5
  253. package/lib/ui.js +11 -0
  254. package/package.json +49 -2
  255. package/vigievuln.js +483 -352
  256. package/lib/cache-archive.js +0 -676
  257. package/lib/osv-legacy.js +0 -57
  258. package/lib/risk-evidence.js +0 -18
  259. package/lib/scan-coverage.js +0 -61
  260. /package/lib/{application-plugins → applications/plugins}/joomla.js +0 -0
  261. /package/lib/{application-plugins → applications/plugins}/laravel.js +0 -0
  262. /package/lib/{application-plugins → applications/plugins}/magento.js +0 -0
  263. /package/lib/{application-plugins → applications/plugins}/plugin.interface.js +0 -0
  264. /package/lib/{application-plugins → applications/plugins}/select.js +0 -0
  265. /package/lib/{advisory-compression.js → cache/advisory-compression.js} +0 -0
  266. /package/lib/{compression-dictionary.js → cache/compression-dictionary.js} +0 -0
  267. /package/lib/{cache-directory.js → cache/directory.js} +0 -0
  268. /package/lib/{cache-policy.js → cache/policy.js} +0 -0
  269. /package/lib/{resource-cache → cache/resource}/snapshot-projection.js +0 -0
  270. /package/lib/{cache-startup.js → cache/startup.js} +0 -0
  271. /package/lib/{ruby-version.js → codecs/ruby/version.js} +0 -0
  272. /package/lib/{applicability-evidence.js → findings/applicability-evidence.js} +0 -0
  273. /package/lib/{line-stream.js → inventory/line-stream.js} +0 -0
  274. /package/lib/{package-metadata.js → inventory/package-metadata.js} +0 -0
  275. /package/lib/providers/{alpine.js → alpine/index.js} +0 -0
  276. /package/lib/providers/{certfr.js → certfr/index.js} +0 -0
  277. /package/lib/{native-cna-identities.js → providers/cveproject/cna-identities.js} +0 -0
  278. /package/lib/providers/{euvd.js → euvd/index.js} +0 -0
  279. /package/lib/providers/{gcve.js → gcve/index.js} +0 -0
  280. /package/lib/providers/{kev.js → kev/index.js} +0 -0
  281. /package/lib/providers/{nginx.js → nginx/index.js} +0 -0
  282. /package/lib/{nvd-bulk.js → providers/nvd/bulk.js} +0 -0
  283. /package/lib/providers/{osvdb.js → osvdb/index.js} +0 -0
  284. /package/lib/{request-failure.js → providers/request-failure.js} +0 -0
  285. /package/lib/providers/{retire.js → retire/index.js} +0 -0
  286. /package/lib/providers/{vigievuln.js → vigievuln/index.js} +0 -0
  287. /package/lib/{application-providers/wp-checksums.js → providers/wordpress/checksums.js} +0 -0
  288. /package/lib/{report-time.js → reports/time.js} +0 -0
  289. /package/lib/{xlsx-export.js → reports/xlsx-export.js} +0 -0
  290. /package/lib/{diagnostics.js → scan/diagnostics.js} +0 -0
  291. /package/lib/{account-client.js → service/account-client.js} +0 -0
  292. /package/lib/{account-session.js → service/account-session.js} +0 -0
  293. /package/lib/{account-terms.js → service/account-terms.js} +0 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,62 @@
1
1
  # Release notes — VigieVuln
2
2
 
3
+ ## Unreleased
4
+
5
+ - Close every HTML and Word report on a disclaimer, in the report language, and carry it in `findings.json` (`disclaimer`): an automated aid built from public data that may be incomplete or wrong, provided as is, without liability.
6
+ - Scan only the container images a project declares with `vigievuln scan <path> --images-only`: the report goes to `./vigievuln-report-images`, apart from the dependency report of a scan without the option.
7
+ - Acquire images whose index states the image config type as `artifactType` (cgr.dev: Wolfi, Chainguard); they were refused as "no runnable images".
8
+ - Ask a relay for one release of the Freexian tracker: the complete record of a kernel package exceeded the relay's answer limit, so a proxied scan of a Debian system lost that source.
9
+ - Stop requiring a second advisory source for components owned by an OS package: a proxied system scan reported them unassessed.
10
+ - Follow Maven dependencies whose version comes from `dependencyManagement`, a parent or a BOM in hosted project monitoring: `watch` exported them with an unknown relation, which excluded them (4 of 93 Maven dependencies of a multi-module project were followed, 54 now).
11
+ - Show why the service refused a project (`project request failed (HTTP 403): direct dependency limit exceeded (263/100 distinct coordinates)`) instead of the status alone.
12
+ - Count the reviewed VigieVuln advisories as a consulted source when OSV is disabled: a proxied scan run with `--no-osv` was cancelled as unassessed although they had answered.
13
+ - Treat a consultation made during the run as current under `--advisory-query-ttl 0`: the reviewed advisories just fetched were reported stale and not counted.
14
+ - Correct the `watch` help and the usage guide, which still named the removed `-s` option.
15
+
16
+ ## [1.4.0] — 2026-11-28
17
+
18
+ - Assess Wolfi and Chainguard OS systems from the security database of their package repositories.
19
+ - Assess Red Hat Enterprise Linux and UBI, CentOS Linux, Oracle Linux, SUSE Linux Enterprise, openSUSE Leap and Tumbleweed, Azure Linux and CBL-Mariner, Mageia and openEuler systems from their `os-release` identity, without any advisory configuration. On a Red Hat UBI 8.6 image every fixed advisory reported by Trivy (567) and Grype (587) is found.
20
+ - Report the vulnerabilities Red Hat states are present without a fix (affected, fix deferred, will not fix, out of support scope), from its OVAL data, for Red Hat Enterprise Linux 6 to 9 and the distributions rebuilt from it; one finding per source package names the packages concerned. Use Red Hat errata as a second source for AlmaLinux and Rocky Linux, whose own errata miss updates: on a Rocky Linux 8.6 image, 2 700 of the 2 705 fixed advisories reported by Grype are found (1 910 before) and 4 539 of its 4 593 unfixed ones.
21
+ - Match RubyGems dependencies, in projects and in images, against the Ruby advisory database (rubysec/ruby-advisory-db, the data `bundler-audit` reads), on by default: it carries advisories OSV does not have for gems. On Mastodon v4.0.2 it adds 27 advisories (net-ssh, puma, doorkeeper, sanitize…) and every finding of Trivy is now covered (526 of 526).
22
+ - Reorganise `lib/`: only command entry points and configuration remain at its root; each data source has its folder under `lib/providers/<name>/` holding its requests and its own code, and the other modules are grouped by theme (`cache`, `advisories`, `findings`, `scan`, `inventory`, `reports`, `images`, `applications`, `maintenance`, `service`). `lib/README.md` describes the layout. The `exports` map of `package.json` keeps the module paths used by the server working.
23
+ - Group system-scan advisories by project or CMS instance, with direct and transitive findings and their source paths.
24
+ - Keep CMS modules and themes under their instance. Group extension advisories by owner, give private extensions their own dependency breakdown, and collapse component inventories by default.
25
+ - Give the host its own inventory and findings for interpreters, services and system dependencies. Show the container images chapter when local image inspection was requested.
26
+
27
+ - Recognise Ghost and Redmine through the shared application plugins, read multi-document pnpm lockfiles, and attribute direct, indirect and development dependencies to the owning application.
28
+ - Report unique advisory identifiers alongside active occurrences, show distribution urgency beside CVSS, and distinguish security maintenance from end of life. Supply verified remediation versions for RubyGems, PyPI and stable Composer releases where the advisory establishes a safe boundary.
29
+ - Compare upstream language advisories for distribution-owned components and retain uncertain downstream applicability with its evidence. Identify the PrestaShop Docker installation template separately from the deployed tree.
30
+
31
+ - Run system work with `vigievuln system collect` and `vigievuln system scan`; they replace the `collect`, `analyse` and `image` commands. Scan a project with `vigievuln scan <path>`; the `-s`, `--src` and `--source` flags are rejected.
32
+ - Publish the reports of a scan with coverage gaps, marked incomplete: a banner and chapter 0 list each gap, `summary.scanReliable` is `false`, and the terminal names the checks that did not complete. A scan is cancelled only without any inventory or any assessing advisory source. `--fail-on-incomplete` restores cancellation for the listed capabilities.
33
+ - Scan images and systems that contain systemd: backslashes in file names are accepted on POSIX hosts. Clamp symbolic links that climb above the root, keep a symlink target when an opaque whiteout replaces the link, and read the dpkg `status.d` directory of distroless images.
34
+ - Treat the members of pnpm, npm and Yarn workspaces as covered by the root lockfile, and stop warning about manifests that declare no dependency. Report a Maven type or classifier variant only when it resolves to another version, and name the coordinates.
35
+ - Read every OSV severity entry, so a CVSS v4 vector listed first no longer hides a scorable v3 vector or the distribution rating. Take severity, score and vector from one source when merging, the highest rating first. Honour OSV `versions` lists beside ranges for system packages and Composer pre-release rules for Drupal advisories.
36
+ - Assess signed Debian and Ubuntu kernel images under the `linux` source. Match RPM errata for packages with an epoch, and apply a module-stream erratum only to packages of that stream. Version a Go application built from a checkout from its own linker flag (`-X main.Version=…`) or an unprefixed version label, once the Go module proxy records the same revision: the 80 advisories of Gitea 1.23.8 reported by other scanners are now found. Name Go applications whose main module still has no verifiable version.
37
+ - Record each package's CVEProject consultation in a project cache archive, so an air-gapped scan of a prepared project is no longer reported as lacking a second advisory source. Keep `cache prepare` free of finding gates.
38
+ - Assess WordPress plugins and themes by default, under their header or directory slug, and read plugin headers as WordPress does (Akismet was not inventoried). List private CMS extensions, including those the public catalogue does not know, with the private packages of the other ecosystems instead of marking the report incomplete.
39
+ - Consult the publisher advisories of a detected Drupal, PrestaShop, TYPO3 or SPIP installation in every online scan; the `--…-advisories-live` options are no longer needed.
40
+ - Let `--fail-on-incomplete` pass on a complete project that contains no CMS application. Stop warning about Composer, PyPI and NuGet manifests that declare no dependency.
41
+ - Report a distribution CVE once instead of once per advisory lane (`DEBIAN-CVE-x` and `CVE-x`), and fold a DSA or DLA announcement into the CVEs it covers. Detail an advisory once for all the packages built from one source package, naming the others in its row, and keep full detail for the 100 highest-priority advisories of each source or component; the others are counted in the HTML report and kept as compact entries in the JSON, SBOM, SARIF and CSAF exports. On a Debian 12 system with a kernel package the HTML report goes from 195 MB to 10 MB and `findings.json` from 278 MB to 39 MB.
42
+ - Read large batches of CVE records from the NVD mirror first, even with an API key, and request ENISA EUVD records only for detailed findings and CVEs still lacking a rating or a description: an online scan of a system with a kernel package goes from 92 minutes to 8 with an empty cache. Record the duration of each system-scan stage and report a stage or a collection that runs for more than 30 seconds on stderr.
43
+ - Read the source package and the epoch a CycloneDX or SPDX producer declares for a system package (package URL `upstream` and `epoch` qualifiers, VigieVuln, Trivy and Syft properties): a scanned SBOM of an Alpine image reported nothing, and a Trivy SBOM of Debian 12 now gives the same 242 findings as the image. Keep a distribution source that returns several hundred thousand assessments on a large host instead of losing it to a stack overflow.
44
+ - Keep the Freexian tracker data of every Debian system assessed on a cache: scanning or preparing a second system of the same release no longer left the first one with partial coverage when replayed offline.
45
+ - Report the unreadable paths of a collection run without root as one notice with their count, instead of one warning per path.
46
+ - Inventory single-file WordPress plugins placed directly in `plugins/` and assess them under the slug of their official `Plugin URI`.
47
+ - On AlmaLinux and Rocky Linux: no longer count an imported RPM signing key (`gpg-pubkey`) as a package without advisory coverage, state in the report that packages are assessed against published errata only, and report a CVE identifier that the record sources definitively do not hold as not published yet instead of marking the scan incomplete.
48
+ - Leave kernel, virtual, network and FUSE filesystems out of a live system collection, and add `--exclude-path` to `system collect` and `system scan`.
49
+ - Bind registry credentials to one host with `registry` in the `--registry-auth` file or `VIGIEVULN_REGISTRY_HOST`; bound credentials are never sent to another registry.
50
+ - Do not apply a malicious-package advisory to a same-named dependency that the lockfile resolves from a Git forge or a local path.
51
+ - Fail a project scan on a known-malicious package without `--fail-on`, as system scans do. Keep `cache import --force` a merge unless `--replace` is given. Warn that the advisory tracker of an end-of-life distribution is frozen.
52
+
53
+ ## [1.3.4] — 2026-11-25
54
+
55
+ - Collect Linux filesystems, local container images and supported VM disks offline with `vigievuln collect`. Replay the portable inventory and generate reports on the auditor machine with `vigievuln analyse`.
56
+ - Identify CMS and framework instances, keep their evidence paths, and report installed libraries and other system dependencies separately. Add local Docker image selection from project declarations.
57
+ - Include a Linux x86_64 musl archive for Alpine alongside the glibc release.
58
+ - Show progress while processing CVEProject records during advisory preparation.
59
+
3
60
  ## [1.3.3] — 2026-11-22
4
61
 
5
62
  - Identify interpreters, embedded runtimes and network services in container images with 75 product fingerprints. Extract versions from supported ELF binaries, Windows resources and installation metadata.
package/README.md CHANGED
@@ -10,9 +10,9 @@
10
10
  [![CI](https://github.com/9pings/VigieVuln/actions/workflows/ci.yml/badge.svg)](https://github.com/9pings/VigieVuln/actions/workflows/ci.yml)
11
11
 
12
12
 
13
- **VigieVuln 1.3.3** is a polyglot dependency auditor for code audits.
13
+ **VigieVuln 1.4.0** is a polyglot dependency auditor for code audits.
14
14
 
15
- It scans dependencies and **9 CMS/frameworks** in one pass without build tools, supports **air-gapped** workflows, detects private packages, binaries and certificates, and produces HTML, JSON and other reports.
15
+ It scans dependencies of **10 ecosystems + 11 CMS/frameworks + systems/dockers images** in one pass without build tools, supports **air-gapped** workflows, detects private packages, binaries and certificates, and produces HTML, JSON and other reports.
16
16
 
17
17
 
18
18
  🌐 **[Project site & docs →](https://9pings.github.io/VigieVuln/)**
@@ -25,15 +25,14 @@ It scans dependencies and **9 CMS/frameworks** in one pass without build tools,
25
25
 
26
26
  - **Multiple ecosystems in one pass**: Maven and Gradle, npm/Yarn/pnpm, Composer, PyPI, NuGet, Go and Ruby — plus **vendored JS**, committed **native binaries** and **embedded JARs**.
27
27
  - **No build tools**; No `mvn`/`gradle`/`npm`/`pip`/`dotnet`/`go`, no `node_modules/` → [how](docs/COMPARISON.md#how-its-autonomous-no-build-tools)
28
- - **CVE from multiple sources, merged & prioritised**; CVEProject + OSV.dev + Packagist security advisories + NVD, ranked **CISA KEV → EPSS → CVSS**.
28
+ - **CVE from multiple sources, merged & prioritised**; CVEProject + OSV.dev + Packagist security advisories + Ruby advisory database + NVD, ranked **CISA KEV → EPSS → CVSS**.
29
29
  - **European vulnerability references**: ENISA **EUVD** id + ENISA's exploited flag, **GCVE** id, and the **CERT-FR** advisories citing it. Hosted proxy lookups send relevant CVE identifiers to the proxy.
30
30
  - **Beyond CVEs**; Report **EOL and out-of-active-support** frameworks, deprecated/abandoned/yanked, outdated, SPDX **licenses**, and **private/internal packages**
31
31
  - **CMS & frameworks audited as instances**; Symfony, Laravel, WordPress, Drupal, Joomla, PrestaShop, TYPO3, Magento/Adobe Commerce and SPIP with per-instance inventory (core, plugins, themes, bundles, components) → [the dedicated guide](docs/CMS-FRAMEWORKS.md)
32
32
  - **Crypto material**; committed **certificates**, **private vs public keys** across PEM/OpenSSH/PuTTY/PGP and JKS/PKCS#12 keystores.
33
33
  - **Air-gapped flow**; **zero network under `--offline`** → [Benchmark](docs/BENCHMARK.md) · [Air-gapped](#air-gapped-audits)
34
- - **Native image audits**; Docker/OCI archives, registries and rootfs inventories without Docker; Linux packages, ELF/Go metadata and publisher SBOMs, with explicit coverage. Image analysis in source scans is off by default; use `--images` or the separate `vigievuln image` command → [image guide](docs/IMAGES.md)
35
- - **Hosted proxy with a verified account**; `--set-proxy-cache vigievuln` → [hosted proxy](docs/USAGE.md#hosted-vigievuln-proxy)
36
- - **Project monitoring**; `vigievuln watch ./project --name 'My Project'` — one free project with up to **100 distinct direct dependency coordinates** → [monitoring guide](docs/USAGE.md#project-monitoring)
34
+ - **Native image and system audits**; Docker/OCI archives, registries, root filesystems, VM disks and live-system inventories without Docker; Linux packages of [a dozen distribution families](docs/IMAGES.md#supported-distributions), ELF/Go metadata and publisher SBOMs, with explicit coverage. Image analysis in source scans is off by default; use `--images` or the separate `vigievuln system scan` command → [image guide](docs/IMAGES.md)
35
+ - **Hosted proxy/cache with a verified account**; `--set-proxy-cache vigievuln` → [hosted proxy](docs/USAGE.md#hosted-vigievuln-proxy)
37
36
  - **Shared cache for a scanner fleet**; `vigievuln serve-cache` + `--proxy-cache` → [cache usage](docs/USAGE.md#shared-proxy-cache-server-serve-cache----proxy-cache)
38
37
  - **Supply-chain risk**; known-**malicious** advisories and suspected **typosquats** (`--typosquat`).
39
38
  - **Audit-grade**; every report carries a **provenance manifest** and a **Methodology & limitations** chapter; a `SHA256SUMS`;
@@ -45,7 +44,7 @@ It scans dependencies and **9 CMS/frameworks** in one pass without build tools,
45
44
  📖 **[Usage & all flags](docs/USAGE.md)** · **[Architecture](docs/ARCHITECTURE.md)** · **[Comparison vs other tools](docs/COMPARISON.md)** · **[Data sources](docs/DATA-SOURCES.md)**
46
45
 
47
46
  > [!IMPORTANT]
48
- > **Although VigieVuln is an excellent tool—comprehensive, rigorously tested, and regularly updated—it is still relatively new, and like any other scanner, it may occasionally produce errors.
47
+ > **Although VigieVuln is an excellent tool—comprehensive, rigorously tested, and regularly updated; it is still relatively new, and like any other scanner, it may occasionally produce errors.
49
48
  > Whenever possible, cross-check important findings with another analysis tool — though, among the tools we compared, none offers reports as comprehensive as VigieVuln.**
50
49
 
51
50
  ## Quick start
@@ -77,10 +76,26 @@ Add `--images` to scan supported container images referenced by the project alon
77
76
 
78
77
  ```bash
79
78
  vigievuln scan ./code --images
79
+ vigievuln scan ./code --images-only # the images alone → ./vigievuln-report-images
80
80
  ```
81
81
 
82
+ Images often bring far more findings than the dependencies: `--images-only` keeps them in a report of their own, next to the dependency report of a scan without the option.
83
+
82
84
  The report keeps source and image findings in separate summaries and charts, highlighting vulnerable images and their most critical CVEs. [Image inputs, options and coverage](docs/IMAGES.md).
83
85
 
86
+ ### Scan container / system images
87
+
88
+ `vigievuln system scan` audits an image, an archive, a root filesystem, a VM disk or a publisher SBOM without Docker: distribution packages, installed applications and binaries.
89
+
90
+ ```bash
91
+ vigievuln system scan nginx:1.25 # image from the local Docker engine or a registry
92
+ vigievuln system scan ./rootfs # directory, docker save archive, VM disk or SBOM
93
+ sudo vigievuln system collect / --output server.json # on the server: inventory only, no network
94
+ vigievuln system scan server.json # on the auditor machine
95
+ ```
96
+
97
+ Debian, Ubuntu, Alpine, the Red Hat family, SUSE, Azure Linux, Wolfi and others are assessed from their own advisories; what could not be assessed is stated in the report. [Inputs, supported distributions and limits](docs/IMAGES.md#supported-distributions).
98
+
84
99
  ## Why use vigievuln ?
85
100
 
86
101
  An author-maintained comparison of audit workflows; see [`docs/COMPARISON.md`](docs/COMPARISON.md)
@@ -100,7 +115,7 @@ for versions, sources and limitations. `⚠️` indicates partial or conditional
100
115
  | **Send a report, not a JSON dump** | ✅ HTML + `.doc` | ⚠️ HTML list | ⚠️ template | ❌ | ⚠️ HTML list | ⚠️ `snyk-to-html` |
101
116
  | **Charts, per-CVE drill-down and a pasteable Word copy** | ✅ | ❌ | ❌ | ❌ | ❌ | ❌ |
102
117
  | **Make delta reports showing only what changed** | ✅ `--baseline` | ❌ | ❌ | ❌ | ❌ | ⚠️ cloud |
103
- | **Audit CMS/framework instances as such** — plugins, themes, publisher advisories | ✅ 9 products | ❌ | ❌ | ❌ | ❌ | ❌ |
118
+ | **Audit CMS/framework instances as such** — plugins, themes, publisher advisories | ✅ 11 products | ❌ | ❌ | ❌ | ❌ | ❌ |
104
119
  | **Share one cache across the fleet**, API keys server-side | ✅ `serve-cache` | ❌ | ⚠️ local DB | ⚠️ local DB | ⚠️ local DB | ⚠️ cloud |
105
120
 
106
121
 
@@ -109,16 +124,16 @@ for versions, sources and limitations. `⚠️` indicates partial or conditional
109
124
  ## More examples
110
125
 
111
126
  ```bash
112
- vigievuln -s ./proj -e "^com\.acme\." # exclude private libs (coord regex)
113
- vigievuln -s ./proj -t ../clean -e "^com\.acme\." # extract only: normalised descriptors, private modules flagged
114
- vigievuln -s ./proj -t ../clean -e "^com\.acme\." -a snyk # same extraction + scan + merge Snyk
115
- vigievuln -s ./proj --offline # fully offline (zero network, needs a warmed cache)
116
- vigievuln -s ./proj -a osv-db,typosquat # OSV advisory matching + typosquat
117
- vigievuln -s ./proj -a licenses --fail-on high # license chapter + CI gate
118
- vigievuln -s ./proj --report-json --baseline last.json --fail-on-new # differential audit: fail CI on NEW findings
127
+ vigievuln scan ./proj -e "^com\.acme\." # exclude private libs (coord regex)
128
+ vigievuln scan ./proj -t ../clean -e "^com\.acme\." # extract only: normalised descriptors, private modules flagged
129
+ vigievuln scan ./proj -t ../clean -e "^com\.acme\." -a snyk # same extraction + scan + merge Snyk
130
+ vigievuln scan ./proj --offline # fully offline (zero network, needs a warmed cache)
131
+ vigievuln scan ./proj -a osv-db,typosquat # OSV advisory matching + typosquat
132
+ vigievuln scan ./proj -a licenses --fail-on high # license chapter + CI gate
133
+ vigievuln scan ./proj --report-json --baseline last.json --fail-on-new # differential audit: fail CI on NEW findings
119
134
  vigievuln diff last.json this.json # standalone diff of two findings JSONs
120
- vigievuln -s ./proj -r html,json,xlsx # include the Excel workbook
121
- vigievuln -s ./site --app-plugins wordpress --private-component wp-content/plugins/acme --offline
135
+ vigievuln scan ./proj -r html,json,xlsx # include the Excel workbook
136
+ vigievuln scan ./site --app-plugins wordpress --private-component wp-content/plugins/acme --offline
122
137
  ```
123
138
 
124
139
  > [!IMPORTANT]
@@ -153,14 +168,14 @@ Scan a confidential or disconnected project by preparing its advisory and depend
153
168
 
154
169
  ```bash
155
170
  # Offline: export coordinates, excluding internal packages; review before transfer
156
- vigievuln -s ./proj -e "^(client|internal)\." --export-anonymized deps.json
171
+ vigievuln scan ./proj -e "^(client|internal)\." --export-anonymized deps.json
157
172
 
158
173
  # Online: prepare a project-specific cache from the reviewed descriptor
159
174
  vigievuln cache prepare deps.json --output vigievuln-cache.tar.gz
160
175
 
161
176
  # Offline: import the cache and generate the report locally
162
177
  vigievuln --import-cache vigievuln-cache.tar.gz
163
- vigievuln -s ./proj --offline
178
+ vigievuln scan ./proj --offline
164
179
  ```
165
180
 
166
181
  Review the descriptor before sharing and the report's coverage and freshness information after scanning. An incomplete or outdated cache can limit results. [Offline workflow and cache options](docs/USAGE.md).
@@ -6,16 +6,27 @@ _fad_check_complete() {
6
6
  COMPREPLY=()
7
7
  cur="${COMP_WORDS[COMP_CWORD]}"
8
8
  prev="${COMP_WORDS[COMP_CWORD-1]}"
9
- opts="--vigievuln-proxy --proxy-cache --proxy-cache-token --src --target --exclude --verbose --force-update --no-report --no-transitive --no-all-libs --no-osv --no-nvd --no-epss --no-kev --licenses --no-retire --retire-refresh --report-output --report-html --report-doc --report-xlsx --report-sbom --report-csaf --report-json --report-sarif --fail-on --fail-on-new --baseline --no-checksums --ignore --vex --ignore-test --cve-refresh --cve-offline --snyk --transitive-depth --offline --ecosystem --no-maven --no-npm --no-yarn --no-nuget --no-composer --no-pypi --no-go --no-ruby --no-jars --no-binaries --no-certs --cert-expiry-days --retries --no-nvd-mirror --eol-support --no-eol --no-js --set-nvd-key --show-config --completion --help --version --disable --activate --report --help-all -s -t -e -h -v -d -a -r -o"
9
+ opts="--activate --add-repo --advisory-config --advisory-query-ttl --allow-insecure-http --app-plugins --auth --baseline --cache-dir --cert-expiry-days --completion --config --cve-offline --cve-refresh --definitions --disable --distribution --docker --docker-socket --drupal-advisories --drupal-advisories-live --ecosystem --enrich --eol-support --exclude --exclude-path --expected-digest --export --export-anonymized --export-cache --export-inventory --fail-on --fail-on-incomplete --fail-on-new --force --force-update --gcve-offline --help --help-all --id --ignore --ignore-test --image --image-platform --image-retire --images --import-advisories --import-anonymized --import-cache --include-config --insecure --inventory --lang --licenses --limits --list-app-plugins --list-repos --max-advisory-age --name --no-all-libs --no-binaries --no-certfr --no-certs --no-checksums --no-composer --no-default-excludes --no-distro-advisories --no-eol --no-eol-support --no-epss --no-euvd --no-gcve --no-go --no-gradle --no-image-retire --no-images --no-jars --no-js --no-kev --no-maven --no-npm --no-nuget --no-nvd --no-nvd-mirror --no-osv --no-osv-db --no-packagist-audit --no-ruby-advisories --no-publisher-advisories --no-pypi --no-report --no-retire --no-reuse-stable-advisories --no-ruby --no-transitive --no-vendored-js-inventory --no-yarn --nvd-cpe-match --offline --osv-db --osv-db-refresh --output --platform --prefer-sbom --prepare-cache --prepare-offline --prepare-project --prestashop-advisories --prestashop-advisories-live --private-component --projects --proxy --proxy-cache --proxy-cache-token --proxy-rate-limit-wait-ms --public-component --registry --registry-auth --remove-repo --replace --repo --report --report-csaf --report-doc --report-html --report-json --report-output --report-sarif --report-sbom --report-xlsx --reports --retire-refresh --retries --reuse-stable-advisories --sbom --scan-context --set-nvd-key --set-proxy-cache --set-proxy-cache-token --show-config --snapshot-complete --snyk --source-profile --spip-advisories --spip-advisories-live --src --stable-advisory-age-days --sync-advisories --target --token --transitive-depth --typo3-advisories --typo3-advisories-live --typosquat --unset-proxy-cache --unset-proxy-cache-token --verbose --version --vex --vigievuln-proxy --wordfence-api-key --wordfence-feed --wordfence-feed-url --wordfence-live --wp-checksums --wp-checksums-live --wp-checksums-locale"
10
+ if [[ "$COMP_CWORD" -eq 1 ]]; then
11
+ COMPREPLY=( $(compgen -W "scan system watch login logout whoami setup config cache diff serve-cache" -- "$cur") )
12
+ return 0
13
+ fi
14
+ if [[ "${COMP_WORDS[1]}" == system && "$COMP_CWORD" -eq 2 ]]; then
15
+ COMPREPLY=( $(compgen -W "collect scan" -- "$cur") )
16
+ return 0
17
+ fi
10
18
  case "$prev" in
11
- --src|-s|--target|-t|--report-output|-o)
19
+ scan|collect)
20
+ COMPREPLY=( $(compgen -f -- "$cur") )
21
+ return 0 ;;
22
+ --target|-t|--report-output|-o)
12
23
  COMPREPLY=( $(compgen -d -- "$cur") )
13
24
  return 0 ;;
14
25
  --vigievuln-proxy)
15
26
  COMPREPLY=( $(compgen -W "fr com" -- "$cur") )
16
27
  return 0 ;;
17
28
  --ecosystem)
18
- COMPREPLY=( $(compgen -W "auto all maven npm yarn nuget composer pypi" -- "$cur") )
29
+ COMPREPLY=( $(compgen -W "auto all maven gradle npm yarn nuget composer pypi go ruby binary" -- "$cur") )
19
30
  return 0 ;;
20
31
  --completion)
21
32
  COMPREPLY=( $(compgen -W "bash zsh" -- "$cur") )
@@ -1,24 +1,27 @@
1
1
  #compdef vigievuln fad-checker fad
2
2
  # Zsh completion for vigievuln (VigieVuln — autonomous dependency auditor)
3
3
  _fad_check() {
4
+ if (( CURRENT == 2 )); then
5
+ compadd scan system watch login logout whoami setup config cache diff serve-cache
6
+ return
7
+ fi
8
+ if [[ ${words[2]} == system && $CURRENT == 3 ]]; then
9
+ compadd collect scan
10
+ return
11
+ fi
4
12
  local -a opts
5
13
  opts=(
6
14
  '--vigievuln-proxy[Use the hosted proxy]::domain:(fr com)'
7
15
  '--proxy-cache[Shared proxy URL]:url:'
8
16
  '--proxy-cache-token[Proxy authentication key]:token:'
9
- '-s[root directory containing pom.xml files]:directory:_directories'
10
- '--src[root directory containing pom.xml files]:directory:_directories'
11
17
  '-t[output directory]:directory:_directories'
12
18
  '--target[output directory]:directory:_directories'
13
19
  '-e[regex of groupId to exclude]:regex:'
14
20
  '--exclude[regex of groupId to exclude]:regex:'
15
- '-a[query Maven Central]'
16
- '--allLibs[query Maven Central]'
17
- '-v[verbose]'
21
+ '-v[print the version]'
18
22
  '--verbose[verbose]'
19
23
  '--force-update[revalidate online sources]'
20
- '--test[read-only]'
21
- '--report[generate CVE/EOL/obsolete report]'
24
+ '(-r --report)'{-r,--report}'[outputs to write: html,doc,xlsx,sbom,csaf,json,sarif]:list:'
22
25
  '--report-output[base dir for default-named outputs]:directory:_directories'
23
26
  '--report-html[write HTML report]::file:_files'
24
27
  '--report-doc[write Word .doc report]::file:_files'
@@ -53,7 +56,7 @@ _fad_check() {
53
56
  '--cve-refresh[force CVE re-download]'
54
57
  '--cve-offline[use cached CVE only]'
55
58
  '--snyk[run snyk and merge]'
56
- '--ecosystem[codecs to run]:list:(auto all maven npm yarn nuget composer pypi)'
59
+ '--ecosystem[codecs to run]:list:(auto all maven gradle npm yarn nuget composer pypi go ruby binary)'
57
60
  '--no-maven[skip the Maven codec]'
58
61
  '--no-npm[skip the npm codec]'
59
62
  '--no-yarn[skip the Yarn codec]'
package/lib/README.md ADDED
@@ -0,0 +1,51 @@
1
+ # How the code is organised
2
+
3
+ `vigievuln.js` at the repository root is the executable. It routes each command to one of
4
+ the entry points below, and runs the project scan (`scan <path>`) itself.
5
+
6
+ ## Where it starts: the files at the root of `lib/`
7
+
8
+ | File | What starts there |
9
+ |---|---|
10
+ | `cli-command-routing.js` | maps the command line (`scan`, `system`, `cache`, `account`…) to an entry point |
11
+ | `cli-image.js` | `system scan`: images, archives, root filesystems, inventories, SBOMs |
12
+ | `cli-collect.js` | `system collect`: inventory of a live system or a root filesystem |
13
+ | `cli-project-commands.js` | account and hosted-project commands |
14
+ | `cli-setup.js` | `setup`: interactive configuration |
15
+ | `cli-watch.js` | `watch`: rescan on change |
16
+ | `cli-groups.js` | option groups and report formats (`-r html,json…`) |
17
+ | `options-env.js` | how an option is resolved: command line, environment, configuration file |
18
+ | `config.js` | the user configuration file (`~/.vigie-vuln/config.json`) |
19
+ | `source-input.js` | the scanned source: a directory or an archive |
20
+ | `ui.js` | terminal output: banner, sections, colours |
21
+
22
+ Nothing else lives at the root of `lib/`. A new module goes in the folder of its theme.
23
+
24
+ ## Folders
25
+
26
+ | Folder | Content |
27
+ |---|---|
28
+ | `providers/` | One folder per data source. `providers/index.js` is the single entry point for every network lookup (cache, proxy or direct request). `providers/<name>/index.js` describes the source's requests; the other files of the folder are everything specific to that source: parsing, enrichment, matching rules. |
29
+ | `codecs/` | One codec per ecosystem (Maven, Gradle, npm, Yarn, PyPI, Composer, Go, NuGet, Ruby, binaries): manifests, lockfiles, registry metadata, version ordering. `codecs/maven/` holds the POM model, reactor, BOMs and transitive resolution. |
30
+ | `inventory/` | The dependency model shared by every codec (`dep-record.js`), descriptors, package URLs, private and unmanaged components, directory walking. |
31
+ | `advisories/` | The advisory store and the matching of native CVE records against packages. |
32
+ | `findings/` | What happens to a match once found: merging sources, severity, priority, enrichment, evidence, attribution, suppression, CI gate, differential audit. |
33
+ | `scan/` | Facts about a run: coverage, reliability and the publication policy, diagnostics, source health, provenance. |
34
+ | `reports/` | HTML and Word report, JSON, CycloneDX, SARIF, CSAF and Excel exports, charts, localisation. |
35
+ | `cache/` | SQLite cache, cache archives for air-gapped use, the proxy cache, the pull-through resource cache (`cache/resource/`). |
36
+ | `images/` | Image references in source trees, registry client, local Docker engine, extraction roots. |
37
+ | `artifacts/` | Acquisition and assessment of system targets: layers, disks, installed applications, binaries, SBOM input. |
38
+ | `system-inventory/` | Installed packages of a system and their assessment against distribution advisories. |
39
+ | `applications/` | CMS and framework instances: inventory, layout, exports; `applications/plugins/` has one plugin per application type. |
40
+ | `maintenance/` | End of life, obsolete and outdated components, commercial support. |
41
+ | `certs/` | Certificates and keys found in a tree. |
42
+ | `service/` | Client of the hosted account and project service. |
43
+
44
+ ## Rules
45
+
46
+ - Code specific to one data source goes in `providers/<name>/`, next to that source's
47
+ request descriptor. A folder that serves several sources stays generic.
48
+ - Code specific to one ecosystem goes in `codecs/<ecosystem>/`.
49
+ - The server repository loads some of these modules by path (`vigievuln/lib/<name>`). The
50
+ `exports` map of `package.json` keeps the paths it knows working when a file moves. After
51
+ moving or removing a module, run `node scripts/check-server-modules.js ../server`.
@@ -16,7 +16,7 @@ function needsMavenReview(candidate, store, {ttlMs} = {}) {
16
16
  return !r.withdrawnAt && !d?.withdrawn && [d?.id,...(d?.aliases || [])].includes(id);
17
17
  });
18
18
  if(!records.length) return true;
19
- const {vulnVerdict}=require('./osv-db');
19
+ const {vulnVerdict}=require('../providers/osv/db');
20
20
  const verdicts=records.map(({document})=>{
21
21
  const affected=(document.affected || []).filter(a=>a?.package?.ecosystem==='Maven' && a.package.name===name);
22
22
  return affected.length ? vulnVerdict(version,{...document,affected},'Maven') : null;
@@ -1,15 +1,15 @@
1
1
  /**
2
- * lib/cve-match.js — collect resolved deps from the parsed POM tree and
3
- * match them against a CVE index built by lib/cve-download.js.
2
+ * lib/advisories/cve-match.js — collect resolved deps from the parsed POM tree and
3
+ * match them against a CVE index built by lib/providers/cveproject/download.js.
4
4
  *
5
5
  * @author: N.BRAUN
6
6
  * @email: pp9ping@gmail.com
7
7
  */
8
- const { coord } = require("./core");
9
- const { compareMavenVersions, isVersionAffected, normalizeHardPin, branchFixFromRanges } = require("./maven-version");
10
- const { resolveTransitiveDeps } = require("./transitive");
11
- const { makeDepRecord } = require("./dep-record");
12
- const { affectedVerdict, rangeMembership, comparator } = require('./cve-version-verdict');
8
+ const { coord } = require("../codecs/maven/pom");
9
+ const { compareMavenVersions, isVersionAffected, normalizeHardPin, branchFixFromRanges } = require("../codecs/maven/version");
10
+ const { resolveTransitiveDeps } = require("../codecs/maven/transitive");
11
+ const { makeDepRecord } = require("../inventory/dep-record");
12
+ const { affectedVerdict, rangeMembership, comparator } = require('../providers/cveproject/version-verdict');
13
13
 
14
14
  const SEVERITY_RANK = { CRITICAL: 4, HIGH: 3, MEDIUM: 2, LOW: 1, NONE: 0, UNKNOWN: 0 };
15
15
 
@@ -116,6 +116,10 @@ function collectResolvedDeps(allPomMetadata, allPropsByPom, opts = {}) {
116
116
  const rec = out.get(key);
117
117
  (rec.versionRelations || (rec.versionRelations = {}))[concrete] = "direct";
118
118
  }
119
+ // Declared in <dependencies> without a version of its own: the version comes from
120
+ // dependencyManagement, a parent or a BOM. The declaration is direct all the same;
121
+ // the project descriptor binds it to the version once exactly one is resolved.
122
+ if (!fromMgmt) out.get(key).declaredDirect = true;
119
123
  // The <exclusions> that apply to THIS declaration: its own plus the ones its pom's
120
124
  // effective <dependencyManagement> attaches to the coord (Maven merges them). One
121
125
  // set per declaration — expandWithTransitives keeps only what EVERY declaration
@@ -136,7 +140,7 @@ function collectResolvedDeps(allPomMetadata, allPropsByPom, opts = {}) {
136
140
  // Remember WHICH pom declares THIS version. The record is coord-wide, so
137
141
  // this is the only link back from a scanned version to its manifest —
138
142
  // without it a match on one version is reported against every pom that
139
- // declares the coord at any version (lib/attribution.js consumes this).
143
+ // declares the coord at any version (lib/findings/attribution.js consumes this).
140
144
  if (concrete) {
141
145
  const rec = out.get(key);
142
146
  if (!rec.versionPaths) rec.versionPaths = {};
@@ -224,7 +228,7 @@ async function expandWithTransitives(resolvedDeps, opts = {}) {
224
228
  // Gradle allows a direct declaration to omit its version when another request
225
229
  // on the same classpath supplies it. Resolve these before seeding the graph:
226
230
  // they remain DIRECT dependencies, with their own scopes and exclusions.
227
- await require("./codecs/gradle/versionless").recoverVersionlessGradle(resolvedDeps, opts);
231
+ await require("../codecs/gradle/versionless").recoverVersionlessGradle(resolvedDeps, opts);
228
232
  // Root depMgmt: every dep in the Map that has a concrete version becomes a
229
233
  // version override for transitive resolution. This catches cases where the
230
234
  // project pins a transitive's version via <dependencyManagement>.
@@ -241,7 +245,7 @@ async function expandWithTransitives(resolvedDeps, opts = {}) {
241
245
  rootDepMgmt.set(`${dep.groupId}:${dep.artifactId}`, { version: dep.version, exclusions: commonExclusions(dep.mgmtExclusionSets), ...(dep.pinMinimum ? { minimum: true } : {}) });
242
246
  }
243
247
  }
244
- // External import BOMs / <parent> managed tables (lib/maven-bom.js, resolved by the BOM
248
+ // External import BOMs / <parent> managed tables (lib/codecs/maven/bom.js, resolved by the BOM
245
249
  // step): Maven applies them to TRANSITIVE versions too, not only to versionless
246
250
  // declarations. Without them a project aligning netty through netty-bom had its
247
251
  // transitives resolved at whatever reactor-netty declares — the wrong version,
@@ -293,6 +297,7 @@ async function expandWithTransitives(resolvedDeps, opts = {}) {
293
297
 
294
298
  const transitives = await resolveTransitiveDeps(directs, {
295
299
  ...opts,
300
+ gradleComponents: directs.length > 0 && directs.every(d=>d.ecosystemType==='gradle'),
296
301
  ...(includedScopes ? { includedScopes } : {}),
297
302
  rootDepMgmt,
298
303
  });
@@ -336,7 +341,7 @@ async function expandWithTransitives(resolvedDeps, opts = {}) {
336
341
  * Turn a `managedOnly` record into the transitive it really is. In place: the record is
337
342
  * the Map's own entry, nothing else holds it yet. The pom that pins it is kept as
338
343
  * `managedIn` (where to bump the version), NOT as manifestPaths — it does not declare a
339
- * dependency, and lib/attribution.js would otherwise file the finding there as direct.
344
+ * dependency, and lib/findings/attribution.js would otherwise file the finding there as direct.
340
345
  */
341
346
  function promoteManagedToTransitive(rec, t, rootEcoType) {
342
347
  const managedIn = [...(rec.manifestPaths || [])];
@@ -436,7 +441,7 @@ function matchOne(dep, entries, confidence, onUnknown) {
436
441
  const evidence = [...providers.values()];
437
442
  const evaluatedRanges = effectiveRanges(e);
438
443
  const verdictFor = version => {
439
- const states = evidence.map(item => item.platforms?.some(p => typeof p !== 'string' || p.trim().toLowerCase() !== 'java') ? null : affectedVerdict(String(version), item.ranges, item.defaultStatus === undefined ? 'unaffected' : item.defaultStatus));
444
+ const states = evidence.map(item => affectedVerdict(String(version), item.ranges, item.defaultStatus === undefined ? 'unaffected' : item.defaultStatus));
440
445
  if (states.some(state => state === null)) return null;
441
446
  return states.every(state => state === true) ? true : states.every(state => state === false) ? false : null;
442
447
  };
@@ -14,7 +14,7 @@ function mergeAdvisoryFixes(left, right) {
14
14
  if (fixVersion && [left, right].some(c => c.fixVersion === fixVersion && c.fixEvidence === 'explicit-unaffected-version')) result.fixEvidence = 'explicit-unaffected-version';
15
15
  if (unknown) result.fixEvaluation = 'unknown';
16
16
  else if (left.fixEvaluation === 'verified' || right.fixEvaluation === 'verified') result.fixEvaluation = 'verified';
17
- if (left.branchFix || right.branchFix) result.branchFix = require('./maven-version').stricterBranchFix(left.branchFix, right.branchFix);
17
+ if (left.branchFix || right.branchFix) result.branchFix = require('../codecs/maven/version').stricterBranchFix(left.branchFix, right.branchFix);
18
18
  return result;
19
19
  }
20
20
 
@@ -5,6 +5,10 @@
5
5
  */
6
6
  const UNITS = { s: 1000, m: 60 * 1000, h: 3600 * 1000, d: 24 * 3600 * 1000 };
7
7
 
8
+ // A consultation made during this run is current whatever the TTL: `--advisory-query-ttl 0`
9
+ // asks for a new consultation, it does not declare that new consultation out of date.
10
+ function runTtl(ttlMs) { return Math.max(Number(ttlMs) || 0, Math.ceil(process.uptime() * 1000) + 1000); }
11
+
8
12
  function parseMaxAge(value) {
9
13
  const match = /^(\d+)(s|m|h|d)$/.exec(String(value || "").trim());
10
14
  if (!match || Number(match[1]) < 1) throw new Error(`invalid --max-advisory-age duration: ${value}`);
@@ -34,4 +38,4 @@ function assertFresh(snapshot, label, maxAgeMs, nowMs = Date.now()) {
34
38
  return { collectedAt: collectedAt.toISOString() };
35
39
  }
36
40
 
37
- module.exports = { parseMaxAge, declaredCollectedAt, assertFresh };
41
+ module.exports = { parseMaxAge, declaredCollectedAt, assertFresh, runTtl };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * lib/gap-adjudicate.js — adjudicate a claimed false negative against the public record.
2
+ * lib/advisories/gap-adjudicate.js — adjudicate a claimed false negative against the public record.
3
3
  *
4
4
  * Context. A comparative benchmark produces pairs another scanner found and vigievuln
5
5
  * did not. It is tempting to treat that list as a recall backlog and start widening the
@@ -8,7 +8,7 @@
8
8
  * vulnerability to that coordinate AND that version.
9
9
  *
10
10
  * This module answers, per pair, which of those it is — using the SAME range evaluation
11
- * the scanner itself uses (`lib/osv-db`.vulnAffectsVersion), so a verdict of
11
+ * the scanner itself uses (`lib/providers/osv/db`.vulnAffectsVersion), so a verdict of
12
12
  * CONFIRMED_MISS means "fad had the data and still didn't report it", never "the two
13
13
  * implementations disagree".
14
14
  *
@@ -23,7 +23,7 @@
23
23
  * @author: N.BRAUN
24
24
  * @email: pp9ping@gmail.com
25
25
  */
26
- const { vulnAffectsVersion } = require("./osv-db");
26
+ const { vulnAffectsVersion } = require("../providers/osv/db");
27
27
 
28
28
  const VERDICT = {
29
29
  // OSV has no such advisory. Usually a vendor-proprietary id, but NOT a claim that no
@@ -1,10 +1,10 @@
1
1
  'use strict';
2
2
  // Shared native-record package matching. A typed PURL is required; neither
3
3
  // product names nor advisory identifiers establish a package identity.
4
- const {explicitPackage,identity}=require('./gcve-index');
5
- const {osvEcosystemFor,osvPkgName}=require('./osv');
6
- const {packageName}=require('./advisory-store');
7
- const nativeVersions=require('./system-inventory/versions');
4
+ const {explicitPackage,identity}=require('../providers/gcve/local-index');
5
+ const {osvEcosystemFor,osvPkgName}=require('../providers/osv/query');
6
+ const {packageName}=require('./store');
7
+ const nativeVersions=require('../system-inventory/versions');
8
8
  function systemPackage(a){
9
9
  const raw=typeof a?.packageURL==='string'?a.packageURL:typeof a?.purl==='string'?a.purl:null;
10
10
  if(!raw){
@@ -26,7 +26,7 @@ function systemPackage(a){
26
26
  return {ecosystem:`system:${type}:${namespace}:${release}`,name,manager:type,distribution:namespace,release,arch};
27
27
  }catch{return null;}
28
28
  }
29
- function explicitNativePackage(a,context){return systemPackage(a)||require('./native-cna-identities').cnaSystemPackage(a,context,context?.cnaIdentities)||explicitPackage(a)||require('./native-advisories').explicitNpmPackage(a);}
29
+ function explicitNativePackage(a,context){return systemPackage(a)||require('../providers/cveproject/cna-identities').cnaSystemPackage(a,context,context?.cnaIdentities)||explicitPackage(a)||require('./native').explicitNpmPackage(a);}
30
30
  function depIdentity(dep){
31
31
  if(dep.ecosystem==='system'){
32
32
  const manager=({dpkg:'deb',deb:'deb',apk:'apk',rpm:'rpm'})[dep.manager||dep.packageType],d=dep.distribution;
@@ -41,8 +41,8 @@ function typeComparator(type,ecosystem){
41
41
  const manager=ecosystem.split(':')[1],valid={deb:['deb','debian','dpkg'],apk:['apk','alpine'],rpm:['rpm']}[manager];
42
42
  return valid?.includes(type)?nativeVersions[manager==='deb'?'debian':manager]:null;
43
43
  }
44
- if(type==='maven'&&ecosystem==='Maven')return require('./cve-version-verdict').comparator('maven');
45
- if(type==='semver')return require('./osv-db').compareSemver;
44
+ if(type==='maven'&&ecosystem==='Maven')return require('../providers/cveproject/version-verdict').comparator('maven');
45
+ if(type==='semver')return require('../providers/osv/db').compareSemver;
46
46
  return null;
47
47
  }
48
48
  function versionVerdict(version,a,ecosystem){
@@ -89,7 +89,16 @@ function sourceReferences(record,source){
89
89
  }
90
90
  return {references,relatedAdvisories:[...new Map(relatedAdvisories.map(item=>[item.url,item])).values()]};
91
91
  }
92
- function metric(cs){for(const c of cs)for(const m of c.metrics||[])for(const k of ['cvssV4_0','cvssV3_1','cvssV3_0','cvssV2_0']){const v=m?.[k],n=v?.baseScore;if(typeof n==='number'&&Number.isFinite(n)&&n>=0&&n<=10)return {score:n,severity:String(v.baseSeverity||(n>=9?'CRITICAL':n>=7?'HIGH':n>=4?'MEDIUM':n>0?'LOW':'NONE')).toUpperCase(),cvssVector:v.vectorString||null};}return {score:null,severity:'UNKNOWN'};}
92
+ function metric(containers) {
93
+ for(const c of containers)for(const m of c.metrics || [])for(const k of ['cvssV4_0','cvssV3_1','cvssV3_0','cvssV2_0']){
94
+ const v=m?.[k],score=v?.baseScore;
95
+ if(!Number.isFinite(score) || score<0 || score>10)continue;
96
+ const severity=v.baseSeverity || (k==='cvssV2_0' ? (score>=7?'HIGH':score>=4?'MEDIUM':'LOW') :
97
+ score>=9?'CRITICAL':score>=7?'HIGH':score>=4?'MEDIUM':score>0?'LOW':'NONE');
98
+ return {score,severity:String(severity).toUpperCase(),cvssVector:v.vectorString||null,cvssVersion:'CVSS:'+k.slice(5).replace('_','.')};
99
+ }
100
+ return {score:null,severity:'UNKNOWN'};
101
+ }
93
102
  function loadRecords(store,sources){
94
103
  if(!store?.db?.prepare || typeof store.getRecord!=='function')return [];
95
104
  const sql=`SELECT source,id FROM advisory_records WHERE source IN (${sources.map(()=>'?').join(',')}) ORDER BY source,id`;
@@ -110,6 +119,7 @@ function matchNativePackages(deps,store,opts={}){
110
119
  }
111
120
  for(const rec of records()){
112
121
  const recordKey=rec.source+'\0'+rec.id;if(seenRecords.has(recordKey))continue;seenRecords.add(recordKey);
122
+ if (seenRecords.size % 5000 === 0) opts.onProgress?.(seenRecords.size);
113
123
  const raw=rec.document;if(raw?.cveMetadata?.state!=='PUBLISHED')continue;
114
124
  let gcve=null;if(rec.source==='gcve'){
115
125
  try{gcve=identity(raw,rec.provenance?.gna);if(gcve.recordType!=='advisory')continue;}catch{continue;}
@@ -139,7 +149,6 @@ function matchNativePackages(deps,store,opts={}){
139
149
  if(p.manager && p.arch==='source'){
140
150
  if(!dep.sourceName||dep.sourceName!==p.name||!dep.sourceVersion)reason='source identity or version unavailable';else version=dep.sourceVersion;
141
151
  } else if(p.manager && !dep.architecture)reason='architecture unavailable';
142
- if(a.platforms?.length)reason='platform constraints unsupported';
143
152
  const result=reason?null:versionVerdict(version,a,p.ecosystem);
144
153
  entry.verdicts.push(result);if(result===null)entry.reason=reason||'version semantics unknown';
145
154
  }
@@ -151,9 +160,9 @@ function matchNativePackages(deps,store,opts={}){
151
160
  if(!values.includes(true))continue;
152
161
  const aliases=gcve?.aliases||[],cveId=aliases.find(id=>/^CVE-\d{4}-\d{4,}$/i.test(id))||rec.id;
153
162
  const dep=entry.installedVersion===entry.dep.version?entry.dep:{...entry.dep,version:entry.installedVersion};
154
- matches.push({dep,source:rec.source==='gcve'?`GCVE:GNA-${gcve.gna}`:'CVEProject',confidence:'exact',cve:{id:cveId,...metric(cs),...sourceReferences(raw,rec.source),description:String(description),published:raw.cveMetadata.datePublished||null,modified:raw.cveMetadata.dateUpdated||null,fixVersion:null,...(gcve?{gcve:gcve.id,gcveSource:rec.provenance?.sourceUrl||null,gcveRecordType:gcve.recordType,gcveRelationships:gcve.relationships,aliases}: {})}});
163
+ matches.push({dep,source:rec.source==='gcve'?`GCVE:GNA-${gcve.gna}`:'CVEProject',confidence:'exact',cve:{id:cveId,sourceAdvisoryId:rec.id,...metric(cs),...sourceReferences(raw,rec.source),description:String(description),published:raw.cveMetadata.datePublished||null,modified:raw.cveMetadata.dateUpdated||null,fixVersion:null,...(gcve?{gcve:gcve.id,gcveSource:rec.provenance?.sourceUrl||null,gcveRecordType:gcve.recordType,gcveRelationships:gcve.relationships,aliases}: {})}});
155
164
  }
156
165
  }
157
166
  return {matches,unknown,coverage:{status:unknown.length?'incomplete':'partial',sources,reason:unknown.length?'native comparisons undecidable':'native source completeness must be evaluated separately'}};
158
167
  }
159
- module.exports={systemPackage,explicitNativePackage,depIdentity,versionVerdict,matchNativePackages};
168
+ module.exports={metric,systemPackage,explicitNativePackage,depIdentity,versionVerdict,matchNativePackages};