Commit b03f24e
feat(detector): detect Seal Security patched library packages (#2596)
* feat(detector): detect Seal Security patched library packages
Trivy v0.71.0 introduced vendor-specific advisory detection for
libraries (aquasecurity/trivy#10297), which routes packages patched by
Seal Security (e.g. @seal-security/ejs, seal-django) to dedicated
advisory buckets such as "seal npm::" in trivy-db.
The vendor matchers are registered via a side-effect import of
pkg/detector/library/all, which trivy itself does in pkg/scan/langpkg.
Import it in detector so that library.NewDriver picks up the vendor
routing and vuls report can detect CVEs for Seal-patched packages found
in lockfiles.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* test(scanner): add Seal Security lockfile fixtures to golden test and make diff
Add the seal/* lockfiles introduced in vulsio/integration#42 to the
AnalyzeLibrary golden test and to the LIBS servers used by make diff /
diff-redis / diff-rdb-redis (server entries seal-npm/seal-pip/seal-gomod
were added to int-config.toml in the same integration PR).
The CI integration checkout is pinned to the integration PR head for
now; re-pin to the vulsio/integration main SHA once #42 is merged,
together with the submodule pointer bump.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore: bump integration submodule to the seal lockfiles commit
The test workflow checks out vulsio/integration at the SHA pinned in
test.yml, so the committed submodule gitlink must match that pin or
"go mod tidy && git diff --exit-code" fails on the dirty submodule.
Point both at the vulsio/integration#42 head; re-pin both to the
merged main SHA once that PR lands.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* chore: re-pin integration test data to the merged vulsio/integration main
vulsio/integration#42 is merged; point both the CI checkout pin and the
submodule gitlink at the squash-merged main commit instead of the PR
head.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
* docs(detector): clarify the vendor registration import comment
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>1 parent 77a2bfc commit b03f24e
8 files changed
Lines changed: 77 additions & 3 deletions
File tree
- .github/workflows
- detector
- scanner
- testdata/golden
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
29 | | - | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
20 | 26 | | |
21 | 27 | | |
22 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
91 | 98 | | |
92 | 99 | | |
93 | 100 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
0 commit comments