Repository navigation
Security detectors wave A: logging, upload, input exposure, inventory, LLM rules, seeds, triage, Scorecard, Slither - #2420
Open
remigiusz-antczak wants to merge 1 commit into
Open
remigiusz-antczak wants to merge 1 commit into
remigiusz-antczak wants to merge 1 commit into
Conversation
…, LLM rules, class seeds, triage, Scorecard and Slither Adds bundled Semgrep rule packs and hub wiring that close unmapped vulnerability classes in the coverage matrix, each with a seeded positive case, a clean twin and a mutated variant: - logging.yml (OWASP A09, CWE-532/CWE-117): sensitive values and unsanitized request input reaching log calls (JS, Python, Go). - upload.yml (CWE-434): unrestricted upload of a dangerous file type (multer, express-fileupload, Werkzeug, Go multipart, Ruby). - input-exposure.yml (CWE-20, CWE-200): unvalidated size or quantity values, exceptions and secret fields returned in HTTP responses. - inventory.yml (OWASP API9): ungated Swagger, GraphQL introspection, status monitors, debug toolbars, FastAPI docs and Spring actuator exposure. Docs and schema surfaces are INFO; live surfaces WARNING. - llm-supply.yml and llm-output.yml (OWASP LLM03/LLM04/LLM05): unpinned model downloads, unsafe deserialization, and model output reaching eval, HTML, shell and SQL sinks. - raw-SQL allow-list fix: perun.js.raw-sql-concat and perun.py.raw-sql-format no longer report values proven allow-listed by an UPPER_SNAKE constant guard or lookup helper. - Class seed harness (test_class_seeds.sh): per-class vulnerable case, clean twin and unseen mutant. - Secret exposure triage and OpenSSF Scorecard plus Slither wiring in review_checks.sh, each degrading to NOT CHECKED when the tool or its prerequisites are absent. Tests: 9/9 (scripts/ci-tests.d for the new rule packs, class seeds, triage and the Scorecard/Slither hub probes, run on the merged tree). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01B4dfwdDQiF3RQMUqYBqefc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds bundled Semgrep rule packs and hub wiring that close unmapped vulnerability classes in the security coverage matrix. Every rule has a seeded positive case, a clean twin, and a mutated variant asserted by tests.
What changes
templates/semgrep-taint/logging.ymltemplates/semgrep-taint/upload.ymltemplates/semgrep-taint/input-exposure.ymltemplates/semgrep-taint/inventory.ymlllm-supply.yml,llm-output.ymlscripts/ci-tests.d/test_class_seeds.shreview_checks.shDocs and schema surfaces in the inventory pack are INFO (low); live management surfaces are WARNING.
Tests
9/9
scripts/ci-tests.dscripts pass on the merged tree with live Semgrep.bash -n install.shpasses.🤖 Generated with Claude Code
https://claude.ai/code/session_01B4dfwdDQiF3RQMUqYBqefc