security-audit

security-audit is a command for Claude Code from ayalaphiscan/web-security-guard. It costs 41 tokens per session (1,252 once invoked), scanned A, original, MIT.

A command that checks a project for security problems and produces a report with findings and suggested corrections.

In plain words
What is it for?
Use it to inspect source code, configuration, stored secrets, authentication, payment handling, security settings, and third-party packages.
Why use it?
It helps reveal issues that are easy to miss, including exposed secrets, unsafe input handling, weak sign-in protection, payment mistakes, risky settings, and vulnerable dependencies.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the web-security-guard plugin — 15 skills, 4 commands shipped together

Good fit Use it to inspect source code, configuration, stored secrets, authentication, payment handling, security settings, and third-party packages.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ayalaphiscan/web-security-guard/security-audit
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/ayalaphiscan/web-security-guard

Made for: Claude Code.

Or install web-security-guard, the plugin that ships this one along with the rest of its 15 skills, 4 commands.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for security-audit

README.md
[![agentmods](https://agentmods.dev/badge/commands/ayalaphiscan/web-security-guard/security-audit/github.svg)](https://agentmods.dev/commands/ayalaphiscan/web-security-guard/security-audit)
Your own site
<a href="https://agentmods.dev/commands/ayalaphiscan/web-security-guard/security-audit"><img src="https://agentmods.dev/badge/commands/ayalaphiscan/web-security-guard/security-audit/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for security-audit

Your own site · 80×15
<a href="https://agentmods.dev/commands/ayalaphiscan/web-security-guard/security-audit"><img src="https://agentmods.dev/badge/commands/ayalaphiscan/web-security-guard/security-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,252 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00041 $0.01252
Opus 5.5 $0.00016 $0.00501
Sonnet 5.5 $0.00008 $0.00250
Haiku 4.5 $0.00004 $0.00125

Measured 1mo ago against content hash 7ec0ef57f7f0, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

security-audit scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/security-audit.md · 31 lines

How it starts

The opening of the file, as written. The whole thing — 31 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Esegui un audit di sicurezza del progetto nella cartella di lavoro corrente (se non c'è una cartella connessa, chiedila con request_cowork_directory; in Claude Code lavora nella cartella corrente). Rispondi nella lingua dell'utente.

Analizza il codice cercando, in ordine di gravità:

  1. Segreti nel codice: API key, password, token, chiavi private hardcoded o in file committati (controlla anche che .env sia in .gitignore).
  2. Injection: query SQL costruite con concatenazione, input utente in comandi shell, eval, percorsi file da input.
  3. XSS e frontend: input utente inserito in HTML senza escaping (innerHTML, dangerouslySetInnerHTML, popup delle mappe con setHTML, template senza autoescape), link costruiti da dati degli utenti (javascript:), CSP con unsafe-inline o domini jolly, segreti nel bundle e nelle variabili VITE_*, source map pubbliche (skill frontend-spa).
  4. Autenticazione: password non hashate o con hash deboli (MD5/SHA1), assenza di rate limiting sul login, sessioni/cookie senza flag di sicurezza, mancanza di verifica email o 2FA dove appropriato (confronta con la skill autenticazione-sicura).
  5. Pagamenti: dati carta salvati o loggati, webhook senza verifica firma, prezzi presi dal client (confronta con la skill privacy-pagamenti).
  6. Configurazione: security headers mancanti, CORS aperto, errori che espongono stack trace, HTTP senza redirect a HTTPS (confronta con la skill hardening-siti).
  7. Dipendenze: esegui npm audit o pip-audit se disponibili nel sandbox.
  8. Runtime: versione di PHP/Node/Python in Dockerfile (FROM), .node-version/.nvmrc, composer.json, workflow CI e configurazione dell'hosting. Confrontala con gli ultimi rilasci di sicurezza (skill aggiornamenti-runtime). Un ramo fuori supporto (Node 20, PHP 8.1 o precedenti) o una versione senza le ultime correzioni è Alta; se è esposto a internet ed esiste un avviso critico, Critica.
  9. Backend-as-a-service (Supabase, Firebase): RLS su ogni tabella, permessi espliciti, funzioni SECURITY DEFINER, policy dello storage, Realtime, chiavi nel frontend (skill supabase-sicuro; per un audit completo del database usa /audit-supabase).
  10. API: accesso agli oggetti di altri utenti con un secondo token, campi privilegiati scrivibili, RPC senza controllo di chi chiama, limiti di frequenza (skill api-sicura).
  11. Posizione e dati sensibili: posizioni esatte salvate o restituite, distanze precise, GPS nelle foto, dati dell'art. 9 senza consenso esplicito o visibili agli sconosciuti, conteggi che rivelano chi è chi (skill privacy-posizione).
  12. Sicurezza social (se l'app mette in contatto persone): blocchi applicati nel database, segnalazioni, limiti anti-spam lato server, enumerazione degli utenti (skill sicurezza-social).
  13. Dominio ed email: SPF, DKIM, DMARC, CAA, sottodomini che puntano a servizi rimossi (skill email-dominio; per il DNS proponi i record, non cambiarli).
  14. Repo GitHub e account: workflow di sicurezza, Dependabot, action bloccate al commit, 2FA e accessi dei fornitori (skill sicurezza-github, account-fornitori).

Produci un report con: riepilogo (numero problemi per gravità Critica/Alta/Media/Bassa), per ogni problema il file e la riga, perché è pericoloso (in linguaggio semplice), e la correzione concreta. Salva il report come security-audit.md negli outputs e presentalo con present_files.

Alla fine chiedi all'utente se vuole che applichi subito le correzioni (in tal caso applica le skill di questo plugin).


English: run a security audit of the current working folder's project (reply in the user's language). Scan in order of severity: hardcoded secrets, injection (SQL/shell/eval/paths), XSS, authentication weaknesses, payment-data handling, front-end/SPA (XSS sinks incl. map popups, unsafe links, CSP, secrets in the bundle, source maps), configuration (headers, CORS, stack traces, HTTPS), vulnerable dependencies (npm audit/pip-audit), runtime versions (PHP/Node/Python in Dockerfile, .node-version, CI, hosting) against the latest security releases, backend-as-a-service rules (Supabase RLS, grants, storage, Realtime, keys; /audit-supabase for a full database audit), API authorization and rate limits, location and art. 9 data, social safety (blocks, reports, anti-spam, enumeration), domain and email (SPF/DKIM/DMARC/CAA), GitHub workflows and provider accounts. Produce a report (counts by Critical/High/Medium/Low, file and line per finding, plain-language risk and concrete fix), save it as security-audit.md in outputs and present it. Finally ask the user whether to apply the fixes right away using this plugin's skills.

Read the full file on GitHub · 31 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago Changed · +6 lines 7ec0ef57f7f0
  2. 3mo ago First seen · 25 lines · 41 tokens per session scan A 474695166559

Subscribe to this mod's changes

security-audit is a command published in the GitHub repository ayalaphiscan/web-security-guard (4 stars, last pushed 1mo ago), licensed MIT. It adds 41 tokens to every session and 1,252 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

security-audit compared with commands from other repositories

security-audit next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-auditayalaphiscan/web-security-guardCommand41mo agoMITA41Claude Code
learnReflexioAI/claude-smartCommand798yesterdayApache-2.0A14Claude Code
prototypegrainulation/grainulatorCommand872d agoMITA0Claude Code
genshijin-compressInterfaceX-co-jp/genshijinCommand3365d agoMITA17Claude Code
dispatcherKanevry/session-orchestratorCommand539d agoMITA185Claude Code, Cursor
check-devpunt-labs/z-specCommand5todayMITA7Claude Code
responsive-design-specialistimsaif/design-with-claudeCommand11yesterdayMITA36Claude Code