Skip to content

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
mainfrom
feat/security-detectors-wave-a
Open

remigiusz-antczak wants to merge 1 commit into
mainfrom
feat/security-detectors-wave-a

Conversation

@remigiusz-antczak

Copy link
Copy Markdown
Collaborator

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

Area Classes Files
Logging OWASP A09, CWE-532, CWE-117 templates/semgrep-taint/logging.yml
Upload CWE-434 templates/semgrep-taint/upload.yml
Input and exposure CWE-20, CWE-200 templates/semgrep-taint/input-exposure.yml
Inventory OWASP API9 templates/semgrep-taint/inventory.yml
LLM OWASP LLM03, LLM04, LLM05 llm-supply.yml, llm-output.yml
Precision raw-SQL false positive on allow-listed helpers raw-SQL rules
Seeds per-class vuln, clean twin, mutant scripts/ci-tests.d/test_class_seeds.sh
Hub secret exposure triage, OpenSSF Scorecard, Slither review_checks.sh

Docs and schema surfaces in the inventory pack are INFO (low); live management surfaces are WARNING.

Tests

9/9 scripts/ci-tests.d scripts pass on the merged tree with live Semgrep. bash -n install.sh passes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01B4dfwdDQiF3RQMUqYBqefc

…, 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant