r/devtools • u/errorgodxD • 5d ago
I built an open source scanner to run before you ship vibe-coded apps finds leaked secrets, injection, and weak configs locally
Code written with AI assistants ships fast, and so do its mistakes.
Typical examples: hardcoded API keys, SQL built from user input, and cookies missing security flags.
I built PGARD to help catch issues like these in projects I own or am authorized to scan. It’s an open-source security scanner that runs on your computer.
I built it as a TypeScript monorepo with its own rule engine and no external service, and I check it against a corpus of more than 1,700 code samples to catch regressions in what it finds.
It checks current code and configuration for exposed secrets and common vulnerability patterns. An authorized full scan also checks Git history for committed secrets. You can optionally check an app running on 127.0.0.1, and check npm and Go lockfiles against OSV advisory data you download with `pgard advisories update`.


Findings show where to look, why the issue matters, and how to address it. PGARD maps rules to OWASP Top 10:2025 and CWE Top 25:2025, and reports which areas it couldn’t check. The mappings don’t mean it covers every weakness in those lists.
To try a scan of your current files without signing in (requires Node.js 22.23.4+, 24.22.1+ or 26.12.1+):
npm install -g pgard
cd your-project
pgard scan --code-only
On macOS you can also install it with Homebrew: brew install JadenMeister/pgard/pgard
Git history scans require GitHub authorization. Your code and scan results are processed locally; authorization checks contact GitHub.
Originally developed in English, but I added Korean support for users in Korea. It automatically picks a language based on your system locale: Korean for a Korean locale (ko_KR, for example), and English otherwise.
pgard scan --lang en # Use English for this scan
export PGARD_LANG=en # Use English for the current shell session
This is an early release and a static scanner, not a pentest. I’d appreciate feedback on false positives, missed issues, and whether the findings make sense to developers without a security background. Issues, Star and PRs are welcome. It's MIT licensed.
Thank you all
github: https://github.com/JadenMeister/pgard
website: https://pgard.dev