Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ccplugins/difesa-attacchi
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".
Passed 21 of 23 test cases with the skill, and 11 of 23 without it.
and 16 more in the full report
11 fixed10 passed either way1 still failing1 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 11 test cases the skill fixed. Same model, same prompt, with and without the skill.
In un progetto Node.js pulito, da quale file di riferimento va estratto il codice del middleware e in quale percorso interno al progetto deve essere copiato per poi importarlo con require?
| Checked | Without skill | With skill |
|---|---|---|
| Specifies copying from references/guardian-express.js. | Missed | Passed |
| Directs saving the code file to security/guardian.js. | Missed | Passed |
The instructions your model reads when the skill loads.
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.
security-events.log per analisi successiva.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.
X-Forwarded-For solo se il proxy è fidato (app.set('trust proxy', 1)).LOCKDOWN rimovibile / variabile env).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.
test cases passed, vs 11 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.