Skip to content

feat: static security scanner (#234) - #240

Merged
ajianaz merged 2 commits into
developfrom
feat/234-static-security-scanner
Jun 10, 2026
Merged

ajianaz merged 2 commits into
developfrom
feat/234-static-security-scanner

Conversation

@ajianaz

@ajianaz ajianaz commented Jun 10, 2026

Copy link
Copy Markdown
Collaborator

Adds deterministic security pattern scanner that runs before LLM review.

New

  • src/engine/security_scanner.rs — 11 detection patterns
  • Integrated into review pipeline alongside secrets scanner

Patterns

Category Detection Severity
Crypto MD5/SHA1 for passwords, hardcoded secrets Critical/Major
Injection SQL concat, eval(), exec() Critical
Auth Hardcoded role checks Major
Config Debug=True, CORS wildcard Minor/Major
TLS SSL verify disabled Critical

Tests

  • 10 new unit tests
  • 429 total tests pass
  • Clippy clean

ajianaz added 2 commits June 10, 2026 08:18
…#234)

Deterministic pre-scan before LLM review catches:
- Weak crypto (MD5/SHA1 for passwords, hardcoded secrets)
- SQL injection via string concat
- Code injection (eval/exec with dynamic input)
- Auth issues (hardcoded roles)
- Debug config enabled
- CORS wildcard
- SSL verify disabled

11 patterns, test files auto-skipped, merged into review pipeline.
10 unit tests, all passing.
@ajianaz
ajianaz merged commit f9be42c into develop Jun 10, 2026
10 checks passed
@ajianaz
ajianaz deleted the feat/234-static-security-scanner branch June 11, 2026 07:27
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