Commit dcdf340
feature: Malicious packages scanner [TAROT-3600] (#175)
* openssf malicious packages integration
* updated test to match new live CVE
* revised malicious package detection to prebuild an index nightly so as to accelerate scanning.
* fixed build - tool wasn't scanning for package.json -- added test for package-lock.json also
* merged main, added Dockerfile
* resolved codacy warnings
* fixed codacy cyclo issue
* fixed AI nonsense
* fixed CICD -- necessary file wasn't being copied
* fixed another CICD issue
* bugfix in tool.go to live with nil PURLs and fixed absent line number reporting in openssf scanner
* stopped copying unnecessary files
* fixed test data
* test fixes
* ignored codacy config
* review comments tackled
* fixed stupid ai shit - npm ref in gradle file
* fixed missing vuln
* Delete .codacy/cli.sh
* Delete .codacy/codacy.yaml
* clean: Assorted cleanup after rebase
* clean: Improve build process for OpenSSF malicious packages index
* clean: Simplify and correct malicious packages scanner implementation
* clean: Ensure proper dependency injection for testable code
* clean: Address codacy comments
* tests: Add unit tests and fix faulty implementations
* ci: Serialize steps to avoid problems when saving to workspace
* tests: Fix integration tests
* clean: Log when failing to open file when building index
* clean: Address AI review comments
* feat: Support the `last_affected` field in range events
---------
Co-authored-by: André Meira <[email protected]>1 parent c408754 commit dcdf340
File tree
23 files changed
+1203
-24
lines changed- .circleci
- cmd/tool
- docs
- description
- multiple-tests
- all-patterns
- src
- gradle
- javascript
- pattern-malicious-packages
- src/javascript
- pattern-vulnerability-critical
- pattern-vulnerability-high
- pattern-vulnerability-medium
- internal
- docgen
- tool
- scripts
23 files changed
+1203
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
16 | 23 | | |
17 | 24 | | |
18 | 25 | | |
| |||
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
42 | 54 | | |
43 | | - | |
| 55 | + | |
44 | 56 | | |
45 | 57 | | |
46 | 58 | | |
| |||
84 | 96 | | |
85 | 97 | | |
86 | 98 | | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
87 | 104 | | |
88 | 105 | | |
89 | 106 | | |
90 | 107 | | |
91 | | - | |
| 108 | + | |
92 | 109 | | |
93 | 110 | | |
94 | 111 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
19 | | - | |
| 20 | + | |
20 | 21 | | |
21 | 22 | | |
22 | | - | |
23 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
12 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
13 | 19 | | |
14 | 20 | | |
15 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
| 5 | + | |
Lines changed: 22 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments