proteggi-sito

proteggi-sito is a command for Claude Code from ayalaphiscan/web-security-guard. It costs 53 tokens per session (572 once invoked), scanned A, original, MIT.

A command that adds several security protections to the current web project, including attack defenses, security headers, GitHub checks, and hardening.

In plain words
What is it for?
Use it to secure Node, Python, PHP, or static sites, including projects with login or payments.
Why use it?
It addresses common weaknesses in application configuration, dependencies, cookies, cross-origin access, and error handling.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Part of the web-security-guard plugin — 6 skills, 2 commands shipped together

Good fit Use it to secure Node, Python, PHP, or static sites, including projects with login or payments.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/ayalaphiscan/web-security-guard/proteggi-sito
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 6 skills, 2 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 proteggi-sito

README.md
[![agentmods](https://agentmods.dev/badge/commands/ayalaphiscan/web-security-guard/proteggi-sito/github.svg)](https://agentmods.dev/commands/ayalaphiscan/web-security-guard/proteggi-sito)
Your own site
<a href="https://agentmods.dev/commands/ayalaphiscan/web-security-guard/proteggi-sito"><img src="https://agentmods.dev/badge/commands/ayalaphiscan/web-security-guard/proteggi-sito/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 proteggi-sito

Your own site · 80×15
<a href="https://agentmods.dev/commands/ayalaphiscan/web-security-guard/proteggi-sito"><img src="https://agentmods.dev/badge/commands/ayalaphiscan/web-security-guard/proteggi-sito.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 572 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.00053 $0.00572
Opus 5 $0.00026 $0.00286
Sonnet 5 $0.00011 $0.00114
Haiku 4.5 $0.00005 $0.00057

Measured 9d ago against content hash adb155bd335a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

proteggi-sito 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 9d 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/proteggi-sito.md · 21 lines

What it actually says

Installa le protezioni di sicurezza nel progetto della cartella di lavoro corrente (se non c'è una cartella connessa, chiedila con request_cowork_directory). Prima rileva lo stack (Node/Express, Python, PHP, sito statico) guardando i file del progetto. Rispondi nella lingua dell'utente.

Applica nell'ordine:

  1. Agente anti-attacco (skill difesa-attacchi): copia e adatta guardian-express.js in security/guardian.js e integralo nell'entry point dell'app. Per stack non-Node, riscrivi la stessa logica nel linguaggio del progetto. Configura skipPaths per eventuali webhook di pagamento.
  2. Security headers e hardening (skill hardening-siti): aggiungi helmet/headers, correggi cookie, CORS e gestione errori dove necessario.
  3. File GitHub (skill sicurezza-github): crea .github/workflows/security.yml e .github/dependabot.yml adattati al linguaggio del progetto; verifica .gitignore.
  4. Verifiche pagamenti e autenticazione: se il progetto gestisce pagamenti o login, controlla i punti critici delle skill privacy-pagamenti e autenticazione-sicura e correggi ciò che è automatizzabile; segnala il resto.

Non rimuovere funzionalità esistenti; se una modifica rischia di rompere qualcosa, chiedi prima conferma all'utente con AskUserQuestion.

Alla fine presenta un riepilogo: cosa è stato installato, cosa deve fare l'utente sul suo hosting/GitHub (attivare secret scanning, push protection, WAF/CDN), e come si attiva/disattiva manualmente il lockdown (file flag LOCKDOWN).


English: install the security protections in the current working folder's project (detect the stack first, reply in the user's language). Apply in order: 1) guardian anti-attack middleware (difesa-attacchi skill), 2) security headers and hardening (hardening-siti skill), 3) GitHub security files (sicurezza-github skill), 4) payments/authentication checks (privacy-pagamenti, autenticazione-sicura skills). Never remove existing functionality; ask before risky changes. End with a summary of what was installed, what the user must enable on their hosting/GitHub, and how to toggle the LOCKDOWN flag file.

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. 9d ago First seen · 21 lines · 53 tokens per session scan A adb155bd335a

Subscribe to this mod's changes

proteggi-sito is a command published in the GitHub repository ayalaphiscan/web-security-guard (4 stars, last pushed 2mo ago), licensed MIT. It adds 53 tokens to every session and 572 once invoked, about $0.0003 per session on Opus 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.