Security audit skill for Claude Code, Codex and Cursor
The security-audit agent skill finds leaked secrets, exposed files, weak headers and signs of compromise, and fixes them in damage-limiting order.
security-audit is an Agent Skills SKILL.md from squirrelscan: a Claude Code security audit and leaked secrets scanner for websites. It runs squirrelscan’s security and integrity audit rules through the squirrel CLI or the hosted squirrelscan MCP server. It works in Claude Code, Codex, Cursor and other coding agents. It is not a penetration test: a clean run means these checks found nothing, not that the website is secure.
New to skills? Start with the skills overview.
What it does
- Finds leaked secrets, exposed files and endpoints, weak headers and cookies, mixed content and signs of compromise.
- Asks “Do you own this website, or are you authorized to test it?” before any probing beyond the crawl.
- Defaults to
--passive --ephemeralfor a website that is not yours, and never adds--aggressiveor--penteston its own. - Reads skipped probe rules as not checked, never as clean, and says which checks did not run.
- Fixes in an order that limits damage:
integrity/*issues first, then leaked secrets, exposed files and endpoints, Supabase tables, transport, headers, cookies and third parties. - Tells you before changing anything when
integrityissues suggest the website is compromised, and does not just delete files. - Rotates leaked keys at the provider before removing them from code, and never pastes a secret into chat, a commit or a PR.
- Waives intentional issues with an
[[ignore]]entry that has a reason, not by disabling the rule.
Questions it answers
- Check my website’s security
- Find leaked secrets
- Is there an API key in my website’s JavaScript bundle?
- Are there exposed files or endpoints on my website?
- Is my website compromised or serving injected pages?
- Is my website using HTTPS correctly, with no mixed content?
- Are my cookie flags and security headers set?
- Is it safe to audit a website I do not own?
Install
Works with any Agent Skills tool (Claude Code, Codex, Cursor, Gemini CLI, Amp and others):
npx skills add squirrelscan/skills --skill security-auditThe plugin installs all the skills and the hosted squirrelscan MCP server:
/plugin marketplace add squirrelscan/skills/plugin install squirrelscan@squirrelscannpx skills add puts the skill in .agents/skills/. To add the MCP server too, configure it in ~/.codex/config.toml. See squirrelscan for Codex.
Run npx skills add, then use the Cursor plugin from the skills repository or the one-click MCP link. See squirrelscan for Cursor.
Gemini CLI, GitHub Copilot, Amp and other Agent Skills tools: run npx skills add, then add the MCP server. See coding agents.
Requirements
The squirrel CLI installed and in your PATH, or the hosted squirrelscan MCP server connected (https://mcp.squirrelscan.com/mcp). Check the CLI with squirrel --version. Setup steps are in install and MCP clients.
Install the CLI on macOS or Linux:
curl -fsSL https://install.squirrelscan.com | bashExample prompts
Paste one of these into your coding agent:
Check my website's security: https://example.comFind leaked secrets in what my website ships to the browserRun a passive security audit on a competitor's website, ephemeralThe agent asks about ownership, picks the probe level that fits, exports the full list of issues and fixes them in damage-limiting order. It gives rotation steps for any exposed key.
How it works
- Check the CLI and login status, and confirm ownership to choose the probe level.
- Run
squirrel auditwith--rule-include security,integrity, passive for websites that are not yours. - Export the full list as JSON and read
skippedChecksand theNot checked:line. - Fix in order, handing off to
supabase-security-auditandsecurity-headerswhere they apply. - Re-audit with the same command and
--refresh. Stop when no error-severity issues remain insecurityandintegrity, applicable probes were checked and exposed secrets are rotated.
Related skills
supabase-security-audit: Supabase apps whose anon key may read tables.security-headers: CSP, HSTS and other header config.audit-website: findings outside security.website-ci-gate: gate security findings in CI.
Related rules and guides
Source on GitHub
skills/security-audit: the skill folder- README.md
- SKILL.md