Skip to content

Commit 0a8ddbf

Browse files
committed
feat(heuristics): add whitespace, fake email, and similar project checks with tests
Implemented three new heuristics: Whitespace Check for suspicious spacing, Fake Emails for invalid maintainer addresses, and Similar Projects for duplicate structures. Added unit tests for all. Signed-off-by: Amine <[email protected]>
1 parent 95b3286 commit 0a8ddbf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/slsa_analyzer/checks/test_detect_malicious_metadata_check.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
# heuristic, a false negative has been introduced. Note that if the unit test were allowed to access the OSV
3030
# knowledge base, it would report the package as malware. However, we intentionally block unit tests
3131
# from reaching the network.
32-
("pkg:pypi/zlibxjson", CheckResultType.PASSED),
32+
("pkg:pypi/zlibxjson", CheckResultType.UNKNOWN),
3333
("pkg:pypi/test", CheckResultType.UNKNOWN),
3434
("pkg:maven:test/test", CheckResultType.UNKNOWN),
3535
],

0 commit comments

Comments
 (0)