Agent skill

Difesa Attacchi

by ccplugins in ccplugins/awesome-claude-code-plugins

Aggiunge a un sito/app un agente di difesa che rileva e blocca richieste malevole (SQL injection, XSS, path traversal, brute force, bot) con rate limiting, blocklist IP e modalità lockdown che…

Apache-2.0Auto-check passedSecurity

Install Difesa Attacchi

skills CLI
$ npx skills add ccplugins/awesome-claude-code-plugins --skill difesa-attacchi -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ccplugins/awesome-claude-code-plugins difesa-attacchi --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ccplugins/awesome-claude-code-plugins.git skills-src && mkdir -p .claude/skills && cp -r skills-src/plugins/web-security-guard/skills/difesa-attacchi .claude/skills/difesa-attacchi && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
difesa-attacchi
GitHub stars
968
Token cost
~781 tokens
SKILL.md length
309 words
Files
2 (incl. references)
Skills in repo
66
Repo updated
First seen
Licence
Apache-2.0

At a glance

Aggiunge a un sito/app un agente di difesa che rileva e blocca richieste malevole (SQL injection, XSS, path traversal, brute force, bot) con rate limiting, blocklist IP e modalità lockdown che…

  • Works in 5 steps: Rilevamento pattern malevoli su URL,… → Rate limiting per IP (generale + più… → Blocklist automatica: un IP che supera… → …
  • - blocca attacchi
  • SKILL.md covers Cosa fa il guardian, Come integrarlo (Express), Regole di implementazione and Risposta agli incidenti
  • Runs JavaScript scripts from its folder

What it does

Difesa Attacchi is an agent skill from ccplugins/awesome-claude-code-plugins. Aggiunge a un sito/app un agente di difesa che rileva e blocca richieste malevole (SQL injection, XSS, path traversal, brute force, bot) con rate limiting, blocklist IP e modalità lockdown che chiude il sistema preservando i dati. Trigger - "blocca attacchi", "anti-attacco", "firewall", "WAF", "lockdown", "difendi il sito", "rate limiting", "sotto attacco".

Its SKILL.md is about 780 tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files, including reference files (for example `references/guardian-express.js`).

It sits in Security, covering Web application vulnerabilities and Rate limiting. The repository describes itself as: Awesome Claude Code plugins — a curated list of slash commands, subagents, MCP servers, and hooks for Claude Code. The licence is Apache-2.0.

When your agent uses it

  • - blocca attacchi
  • Difendi il sito

Example prompts

  • “blocca attacchi”
  • “anti-attacco”
  • “firewall”
  • “/difesa-attacchi”

Requirements

  • Node.js

Workflow steps

5 steps, taken from the first numbered list in SKILL.md.

  1. Rilevamento pattern malevoli su URL, query, body e header: SQL injection, XSS, path traversal, command injection, scanner noti.
  2. Rate limiting per IP (generale + più severo su login/pagamenti).
  3. Blocklist automatica: un IP che supera la soglia di richieste malevole viene bloccato temporaneamente, con escalation se recidivo.
  4. Modalità lockdown: se gli eventi malevoli superano la soglia globale, il sito entra in stato di chiusura controllata — risponde 503 con…
  5. Logging strutturato di ogni evento in security-events.log per analisi successiva.

What it can do on your machine

Read from SKILL.md and the folder at commit 5bd4f16. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (JavaScript), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Difesa Attacchi loads about 781 tokens when it runs, and up to ~2.4k if it reads all its reference files. Until then it costs about 94 tokens; SKILL.md has 309 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~94
When it runs · the whole SKILL.md, loaded when a task matches
~781
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.4k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ccplugins/awesome-claude-code-plugins at commit 5bd4f16, republished under its Apache-2.0 licence (© ccplugins). 309 words, ~781 tokens.

Download SKILL.mdSave it as .claude/skills/difesa-attacchi/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
difesa-attacchi
description
Aggiunge a un sito/app un agente di difesa che rileva e blocca richieste malevole (SQL injection, XSS, path traversal, brute force, bot) con rate limiting, blocklist IP e modalità lockdown che chiude il sistema preservando i dati. Trigger - "blocca attacchi", "anti-attacco", "firewall", "WAF", "lockdown", "difendi il sito", "rate limiting", "sotto attacco".

Difesa Attacchi (agente guardian)

Quando l'utente vuole protezione attiva dagli attacchi, integrare nel progetto il middleware "guardian". Il codice pronto è in references/guardian-express.js (Node/Express); per altri stack (Flask/Django, PHP) adattare la stessa logica.

Cosa fa il guardian

  1. Rilevamento pattern malevoli su URL, query, body e header: SQL injection, XSS, path traversal, command injection, scanner noti.
  2. Rate limiting per IP (generale + più severo su login/pagamenti).
  3. Blocklist automatica: un IP che supera la soglia di richieste malevole viene bloccato temporaneamente, con escalation se recidivo.
  4. Modalità lockdown: se gli eventi malevoli superano la soglia globale, il sito entra in stato di chiusura controllata — risponde 503 con pagina di manutenzione, blocca ogni scrittura, mantiene i dati intatti e (se configurato) esegue un backup e invia un alert.
  5. Logging strutturato di ogni evento in security-events.log per analisi successiva.

Come integrarlo (Express)

js
const { guardian } = require('./security/guardian');
app.use(guardian({
  rateLimit: { windowMs: 60000, max: 120 },
  strictPaths: ['/login', '/api/auth', '/api/pay'],   // limite 10/min
  lockdown: { threshold: 50, windowMs: 300000, unlockAfterMs: 900000 },
  onAlert: async (evento) => { /* email/webhook all'amministratore */ },
  onLockdown: async () => { /* backup DB, notifica */ }
}));

Montarlo PRIMA delle route. Copiare references/guardian-express.js in security/guardian.js nel progetto e adattare le soglie.

Regole di implementazione

  • Il guardian è una difesa in profondità, NON sostituisce query parametrizzate, validazione e hardening (skill hardening-siti): applicare comunque quelle regole.
  • Dietro proxy/CDN ricavare l'IP reale da X-Forwarded-For solo se il proxy è fidato (app.set('trust proxy', 1)).
  • Il lockdown NON deve mai cancellare dati: solo bloccare l'accesso in scrittura e servire la pagina di manutenzione. Lo sblocco è automatico dopo il timeout o manuale (file flag LOCKDOWN rimovibile / variabile env).
  • Escludere dai controlli i webhook di pagamento verificati con firma (altrimenti payload legittimi possono sembrare sospetti) — la sicurezza lì è la firma (skill privacy-pagamenti).
  • Consigliare SEMPRE anche una protezione a livello di piattaforma (Cloudflare/WAF dell'hosting): il middleware difende l'applicazione, non assorbe DDoS volumetrici.

Risposta agli incidenti

In caso di attacco rilevato suggerire all'utente: 1) esaminare security-events.log, 2) ruotare le chiavi/segreti se c'è sospetto di compromissione, 3) verificare integrità dati con il backup, 4) mantenere il lockdown finché la falla non è chiusa.

© ccplugins, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file (references) in plugins/web-security-guard/skills/difesa-attacchi of ccplugins/awesome-claude-code-plugins.

  • SKILL.md
  • references/guardian-express.js

Open the folder on GitHubat commit 5bd4f16

Compare with similar skills

Difesa Attacchi next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Difesa Attacchi compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Difesa Attacchi this skillccplugins/awesome-claude-code-plugins968—~781Automated safety check: PassApache-2.0
API Security Checklistrevfactory/harness-1001.3k—~1.7kAutomated safety check: PassApache-2.0
Secure Code GuardianJeffallan/claude-skills12k—~1.8kAutomated safety check: PassMIT
API Security ReviewOWASP/secure-agent-playbook187—~744Automated safety check: PassCC-BY-4.0
Security Reviewaffaan-m/ECC275k1 repos~3.2kAutomated safety check: NotesMIT
Moai Ref Secopsmodu-ai/moai-adk1.2k—~2.6kAutomated safety check: PassApache-2.0

Similar skills

  • API Security Checklist

    revfactory/harness-100

    Walks a backend-dev agent through OWASP API Top 10 checks, authentication and authorization patterns, and defense code during API design.

    1.3k GitHub stars~1.7k tokensUpdated 6 mo ago
    SecurityAuto-check passed
  • Secure Code Guardian

    Jeffallan/claude-skills

    Guides secure implementation of authentication, authorization, input validation and security headers, with password hashing, parameterized queries and OWASP Top 10 checks.

    12k GitHub stars~1.8k tokensUpdated 5 days ago
    SecurityAuto-check passed
  • API Security Review

    OWASP/secure-agent-playbook

    Comprehensive API security review against OWASP API Security Top 10 (2023).

    187 GitHub stars~744 tokensUpdated 13 days ago
    SecurityAuto-check passed
  • Security Review

    affaan-m/ECC

    Kimlik doğrulama eklerken, kullanıcı girdisi işlerken, secret'larla çalışırken, API endpoint'leri oluştururken veya ödeme/hassas özellikler uygularken bu skill'i kullanın.

    275k GitHub starsUsed in 1 repo~3.2k tokens
    SecurityAuto-check: notes
  • Moai Ref Secops

    modu-ai/moai-adk

    DevSecOps, container, and API operational defensive security reference: CI/CD pipeline hardening, secret scanning, IaC misconfiguration detection, SAST/DAST integration, container image scanning…

    1.2k GitHub stars~2.6k tokensUpdated today
    SecurityAuto-check passed
  • Azure Waf

    vinayaklatthe/microsoft-security-skills

    Guidance for Azure Web Application Firewall — deployed on Azure Front Door (global, edge-tier) or Azure Application Gateway (regional, integrated with backend pools).

    175 GitHub stars~2.2k tokensUpdated 3 mo ago
    SecurityAuto-check passed

More from ccplugins/awesome-claude-code-plugins

All 66 skills in this repo
  • AI Meeting

    ccplugins/awesome-claude-code-plugins

    Run structured AI meetings for plans, product ideas, technical designs, business decisions, feature proposals, and strategy choices.

    968 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check: notes
  • Fastapi App

    ccplugins/awesome-claude-code-plugins

    Bootstrap a new FastAPI backend with async SQLAlchemy 2.0, asyncpg, Alembic, Pydantic v2, and no deprecated APIs.

    968 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check: notes
  • Flutter App

    ccplugins/awesome-claude-code-plugins

    Bootstrap a new Flutter mobile app with clean architecture, Riverpod, FVM-pinned SDK, current packages, and no deprecated APIs.

    968 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check: notes
  • Nextjs App

    ccplugins/awesome-claude-code-plugins

    Bootstrap a new Next.js (App Router, TypeScript) web app with current packages and no deprecated APIs.

    968 GitHub stars~1.1k tokensUpdated 1 mo ago
    Auto-check: notes
  • Dev Report

    ccplugins/awesome-claude-code-plugins

    Write up a coding session for a non-technical stakeholder — the context, what was built, and the engineering reasoning behind it — the way a senior engineer briefs a product manager who does not…

    968 GitHub stars~3.1k tokensUpdated 1 mo ago
    Auto-check passed
  • Audit

    ccplugins/awesome-claude-code-plugins

    A skill your agent uses when the user asks for a code review, "review this change", "review my PR", "review the diff", or wants quality/spec/security/perf feedback on recent changes.

    968 GitHub stars~719 tokensUpdated 1 mo ago
    Auto-check passed

Questions about Difesa Attacchi

What does Difesa Attacchi do?

Aggiunge a un sito/app un agente di difesa che rileva e blocca richieste malevole (SQL injection, XSS, path traversal, brute force, bot) con rate limiting, blocklist IP e modalità lockdown che…. Difesa Attacchi is an agent skill from ccplugins/awesome-claude-code-plugins. Aggiunge a un sito/app un agente di difesa che rileva e blocca richieste malevole (SQL injection, XSS, path traversal, brute force, bot) con rate limiting, blocklist IP e modalità lockdown che chiude il sistema preservando i dati.

When should I use Difesa Attacchi?

Difesa Attacchi fits situations like: - blocca attacchi; difendi il sito.

How do I install Difesa Attacchi in Claude Code?

Run `npx skills add ccplugins/awesome-claude-code-plugins --skill difesa-attacchi -a claude-code`. Or copy the skill folder (plugins/web-security-guard/skills/difesa-attacchi in ccplugins/awesome-claude-code-plugins) into .claude/skills/difesa-attacchi in your project. Claude Code loads it when a task matches its description.

How do I install Difesa Attacchi in Codex?

Run `npx skills add ccplugins/awesome-claude-code-plugins --skill difesa-attacchi -a codex`. Or copy the skill folder (plugins/web-security-guard/skills/difesa-attacchi in ccplugins/awesome-claude-code-plugins) into .agents/skills/difesa-attacchi in your project. Codex loads it when a task matches its description.

Can I use Difesa Attacchi in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ccplugins/awesome-claude-code-plugins --skill difesa-attacchi -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/difesa-attacchi, .gemini/skills/difesa-attacchi, .github/skills/difesa-attacchi and .opencode/skills/difesa-attacchi in your project.

What does Difesa Attacchi need to run?

Going by SKILL.md and its folder, Difesa Attacchi needs JavaScript for the scripts in its folder. Our summary lists: Node.js.

Does Difesa Attacchi access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Difesa Attacchi safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Difesa Attacchi use?

Difesa Attacchi is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Difesa Attacchi use?

About 781 tokens (SKILL.md is roughly 3.1k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.6k tokens, read only when the agent opens those files.

What are the alternatives to Difesa Attacchi?

Skills that share tags, products or a category with Difesa Attacchi: API Security Checklist (revfactory/harness-100, 1.3k stars), Secure Code Guardian (Jeffallan/claude-skills, 12k stars), API Security Review (OWASP/secure-agent-playbook, 187 stars) and Security Review (affaan-m/ECC, 275k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Difesa Attacchi?

ccplugins (a GitHub organization) maintains it in ccplugins/awesome-claude-code-plugins, which has 968 GitHub stars. The repository holds 66 skills in this directory. The repository was last updated on August 12, 2026.

Source: ccplugins/awesome-claude-code-plugins on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.