Inspiration

I wanted a way to review unfamiliar code locally and get findings I could act on. A useful security warning should show where the issue is, why it matters, and what to check next.

What it does

Security Reviewer is an open-source Python CLI that scans a local checkout for supported vulnerability patterns and potentially exposed secrets. It reports file locations, evidence, severity, and confidence, and redacts suspected secret values. An optional local AI model summarizes findings and suggests fixes.

How we built it

I used Claude Code to help build and test the CLI. The scanner uses Python’s standard library and reads source files without executing them. I kept detection, advisory matching, and AI reporting separate so the scanner can run offline on its own. For optional reporting, I tested Qwen3 4B through Ollama on CPU.

Challenges we ran into

An early test flagged a fake AWS key that was deliberately shaped like a credential. I tightened the rule and reran the benchmark to check that it still caught the expected positives. The local model also sometimes gave generic advice, so I kept the scanner’s findings authoritative and used AI to explain them.

Accomplishments that we're proud of

Security Reviewer flagged both known vulnerabilities in a benchmark using vulnerable and patched releases of Werkzeug and pip. It raised no vulnerability alerts on either patched release. The published commit also passed 236 tests on Linux.

A separate scan of historical snapshots from those same repositories flagged seven instances associated with known advisories.

What we learned

Testing the patched release matters as much as testing the vulnerable one. The pair shows whether a detector flags the issue and stops flagging it after the fix. The benchmark gave me a repeatable way to catch regressions. Testing on new repositories will tell me more about how well the rules generalize.

What's next for Security Reviewer

I want to test on repositories that weren’t used to develop the rules, add more detectors with vulnerable and patched test cases, improve native Windows support, and make the CLI easier to run in CI.

Built With

Share this project:

Updates

Submission history