AIPM
Theme

AIPM package

Security Audit

@squirrelscan/security-audit@1.0.0

Run squirrelscan's security and integrity audit rules (squirrel CLI or hosted squirrelscan MCP server) in Claude Code, GitHub Copilot, Codex, Cursor and othe…

Scanned · flagged · Nov 27, 2026

GitHub stars: ★ 110

LinkedInPost

Install Skill

Pins this version in aipm.package.json and aipm-lock.json.

aipm add @squirrelscan/security-audit@1.0.0

Without project tracking

Writes the skill files only. Add --no-init to skip aipm.package.json and the lockfile.

aipm add @squirrelscan/security-audit@1.0.0 --no-init

How to use

Install the skill above, then run this in your AI tool:

/security-audit <your description>

About

Find what a site exposes to visitors and attackers: leaked secrets, open files and endpoints, weak headers and cookies, mixed content, and signs of compromise. Then fix it in the order that limits damage.

Source

What gets added to your project

Preview every file this package writes on install before you run the command above.

Summary

Run squirrelscan's security and integrity audit rules (squirrel CLI or hosted squirrelscan MCP server) in Claude Code, GitHub Copilot, Codex, Cursor and other coding agents to find leaked secrets, exposed files and endpoints, weak header...

Skill instructions

Security Audit

Find what a site exposes to visitors and attackers: leaked secrets, open files and endpoints, weak headers and cookies, mixed content, and signs of compromise. Then fix it in the order that limits damage.

This is not a penetration test. squirrelscan reports what it can see and prove from outside; a clean run means these checks found nothing, not that the site is secure.

Before the first audit

Run squirrel --version. If it fails, install the CLI from squirrelscan.com/download (the squirrelscan skill has references/install.md). Then run squirrel auth status:

  • Signed out, or --offline: the audit runs on this machine, is free, and nothing is published.
  • Signed in: the audit is billed in credits (50 plus 2 per audited page, plus 1 per distinct external link the cloud verifies), adds the site to the user's dashboard, can turn on recurring audits and publishes an unlisted report. Tell the user the cost (squirrel credits) and get a yes. Offer --offline or --no-publish. For a site the user does not own, add --ephemeral: nothing is added to the dashboard, scheduled or published.

Every flag below is checked against the squirrel CLI docs (https://docs.squirrelscan.com/cli/audit). Rule docs: https://docs.squirrelscan.com/rules/{category}/{rule_id}.

Who owns the site decides the probe level

squirrelscan can send probes beyond the crawl (see --probe). Ask first: "Do you own this site, or are you authorized to test it?"

SituationCommand
Not the user's site, or unknownsquirrel audit <url> --rule-include security,integrity --passive --ephemeral --format llm
The user's own site, normal checksquirrel audit <url> --rule-include security,integrity --level surface --format llm (probing defaults to active: a handful of requests that look like normal traffic)
The user's own site, deep checkOnly after the user says in this conversation that they own it or may test it: squirrel audit <url> --rule-include security,integrity --level full --aggressive --probe-budget 2m --format llm

Never add --aggressive or --pentest on your own. Aggressive probing makes many requests and many 404s, requests paths that robots.txt disallows on purpose, can trip a WAF, and is what runs security/exposed-files and security/supabase-rls. An aggressive run also asks for /actuator/heapdump, which makes an exposed Spring server write a dump to disk.

--offline does not make probing passive: add --passive for that. A hosted (cloud) audit of a site whose ownership is not confirmed stays passive, so the probing rules are not checked there; do not report them as clean.

Reading the findings

  1. Export the full list: squirrel audit <url> --rule-include security,integrity --format json -o security.json (the llm format samples 5 pages and 5 items per rule).
  2. Read skippedChecks, summary.skipped and the Not checked: line. A probe rule that was skipped (probing-passive, probing-not-aggressive, external-requests-off) is not clean: say which checks did not run and what would run them.
  3. Re-render later without recrawling: squirrel report <audit-id> --group security --severity error --format llm.
  4. Never paste a leaked secret into chat, a commit or a PR. Name the rule, the file or URL and the key type only.

Fix order

  1. integrity/* findings first (injected pages, cloaking, phishing kits, obfuscated scripts, integrity/known-malicious-url). These can mean the site is compromised. Tell the user before changing anything; do not just delete files, since the entry point (a plugin, a CI token, a stolen login) is still open. Hand off to their host or incident process.
  2. Leaked secrets (security/leaked-secrets, security/token-storage): removing the key from the code is not enough. Rotate it at the provider, then remove it, then check git history. A key that shipped to browsers was read.
  3. Exposed files and endpoints (security/exposed-files, security/exposed-actuator, security/graphql-introspection, security/graphql-get-mutations, security/unauthenticated-api, security/json-sensitive-fields, security/auth-endpoint-disclosure, security/client-side-authz): block at the server or the edge, or add authentication. Hiding a link does not fix an open endpoint.
  4. Supabase tables (security/supabase-rls): use the supabase-security-audit skill.
  5. Transport (security/https, security/http-to-https, security/tls-certificate, security/mixed-content, security/hsts, security/form-https, security/password-form-get).
  6. Headers (security/csp, security/x-frame-options, security/x-content-type, security/referrer-policy, security/permissions-policy): use the security-headers skill for the config.
  7. Cookies and third parties (security/cookie-flags, security/third-party-cookies, security/sri, security/open-redirect, security/new-tab, security/version-disclosure, security/security-txt).

Where the fix usually lives

StackLook here
Next.jsnext.config.* headers(), middleware.ts, route handlers under app/api/, NEXT_PUBLIC_* env vars (anything with that prefix ships to the browser)
WordPresswp-config.php, .htaccess or the server block, plugin updates, removing unused plugins and themes, backup and debug files in the web root
Shopifytheme code (theme.liquid, *.liquid), installed apps that inject scripts; Shopify controls headers and TLS itself, so those are usually not fixable by the merchant
WebflowSite settings, custom code (head and body), the hosting settings; headers are limited to what Webflow exposes
CloudflareRules, then Transform Rules (modify response headers); SSL/TLS, Always Use HTTPS, WAF custom rules for blocking paths
Vercelvercel.json headers, redirects, environment variables, deployment protection
Netlify_headers, netlify.toml, redirects, environment variables
SupabaseRow Level Security policies, the API keys page, Edge Functions; see supabase-security-audit

Stop condition

Stop when a re-audit with the same command and --refresh shows no error-severity findings in security and integrity, every probe rule that applies was checked (not skipped), exposed secrets are rotated (ask the user to confirm), and anything left is a documented decision. A finding that is intentional (a public file listed in security/exposed-files, a table public by design) is waived with an [[ignore]] entry that has a reason, not by disabling the rule. See references/configuration.md in the squirrelscan skill.

Hand off

  • Supabase app: supabase-security-audit. Header and CSP config: security-headers.
  • Findings outside security (SEO, links, performance): audit-website.
  • Gate it in CI: website-ci-gate.

Loading package files…

Share this package

Add an Install with AIPM badge

Add this badge to a GitHub README so readers can open the package page and install the same version.

Install with AIPM
[![Install with AIPM](https://www.aipm-registry.com/install-with-aipm.svg)](https://www.aipm-registry.com/skills/squirrelscan/security-audit/1.0.0?utm_source=github&utm_medium=readme&utm_campaign=package_badge)

Publisher

squirrelscan

This imported publisher has not claimed its AIPM account. A connected account confirms account control, but it does not guarantee that a package is safe.

AI assistant context

What this skill is for

@squirrelscan/security-audit@1.0.0 is an AIPM skill package for All tools. Use it when a project needs the reusable AI behavior described as: Run squirrelscan's security and integrity audit rules (squirrel CLI or hosted squirrelscan MCP server) in Claude Code, GitHub Copilot, Codex, Cursor and other coding agents to find leaked secrets, exposed files and endpoints, weak header...

Install
aipm add @squirrelscan/security-audit@1.0.0
Use after install
/security-audit <your description>

Tool targets

Install command by target

Add --no-init to any of these when you want the skill files without aipm.package.json or aipm-lock.json.

cursor

Run this variant when you want to install the package into cursor.

aipm add @squirrelscan/security-audit@1.0.0 --target cursor --ci

claude

Run this variant when you want to install the package into claude.

aipm add @squirrelscan/security-audit@1.0.0 --target claude --ci

Discussion

Comments (0)

Loading comments…

Keep exploring

squirrelscan/performance-audit

Diagnose slow page loads with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking the largest image, render-blocking resources,...

Published by squirrelscan

skillScanned · flagged★ 110Imported · UnverifiedAll toolsNov 27, 2026, 12:21 AM8.03 KBMIT

squirrelscan/agent-experience-audit

Evaluate your site's agent experience with squirrelscan audit rules via the squirrel CLI or hosted squirrelscan MCP server in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents, checking robots.txt bot access, content pr...

Published by squirrelscan

skillScanned · flagged★ 110Imported · UnverifiedAll toolsNov 27, 2026, 12:21 AM8.00 KBMIT

squirrelscan/website-ci-gate

Add a squirrelscan CI check using the squirrel CLI in Claude Code, GitHub Copilot, Codex, Cursor, and other coding agents for GitHub Actions, GitLab, and preview deploys. It picks thresholds from a baseline run of squirrelscan audit rule...

Published by squirrelscan

skillScanned · flagged★ 110Imported · UnverifiedAll toolsNov 27, 2026, 12:21 AM8.26 KBMIT

Package FAQ

Install and compatibility

How to install
Run aipm add @squirrelscan/security-audit@1.0.0 in a project that has AIPM initialized.
Supported tools
@squirrelscan/security-audit@1.0.0 supports All tools.

Before installing

AIPM skills can add files to your project. Review the package name, target, description, license, and publisher before installing. Use a clean branch when trying a new skill.