emergenza

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

A step-by-step guide for handling a security incident, such as a stolen key, compromised account, or data breach. It covers containment, evidence preservation, fixing the cause, recovery, and required notifications.

In plain words
What is it for?
Use it to assess what happened, block access, revoke sessions and keys, preserve records, restore services, and decide whether regulators or affected people must be notified.
Why use it?
It gives a calm order of operations when an attack may be active, while recording actions and avoiding the loss of useful evidence.

Command for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

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

Good fit Use it to assess what happened, block access, revoke sessions and keys, preserve records, restore services, and decide whether regulators or affected people must be notified.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/commands/ayalaphiscan/web-security-guard/emergenza"><img src="https://agentmods.dev/badge/commands/ayalaphiscan/web-security-guard/emergenza.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 93 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,085 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.00093 $0.01085
Opus 5.5 $0.00037 $0.00434
Sonnet 5.5 $0.00019 $0.00217
Haiku 4.5 $0.00009 $0.00109

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

Security

Grade A, and why

emergenza 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/emergenza.md · 41 lines

What it actually says

C'è (o potrebbe esserci) un incidente di sicurezza. Guida l'utente con calma, un passo alla volta, usando la skill risposta-incidenti. Rispondi nella lingua dell'utente. Annota ogni azione con l'ora in un file incidente-<data>.md negli outputs: servirà per il registro delle violazioni e per un'eventuale notifica.

  1. Capire in due minuti.

    • Cosa è successo e da quando?
    • Quali dati o sistemi sono coinvolti? Account, database, chiavi, sito, email.
    • L'attacco è in corso?

    Assegna una gravità con la tabella della skill.

  2. Contenere (prima di indagare a fondo), con le leve del progetto:

    • sito in manutenzione senza nuovo codice: interruttore, pagina di manutenzione o lockdown del guardian;
    • iscrizioni sospese dal fornitore di Auth;
    • account abusivi bloccati;
    • sessioni revocate e chiavi ruotate (publishable/secret, segreto JWT, token dei fornitori) se possono essere uscite. Prima di cancellare le sessioni copiane il contenuto (auth.sessions, auth.refresh_tokens): sono le prove migliori;
    • un permesso pericoloso tolto con una migrazione d'emergenza.

    Prima di ogni azione che cambia la produzione, chiedi conferma all'utente e spiega cosa smetterà di funzionare.

  3. Conservare le prove: esporta subito i log (database, Auth, hosting, CDN) prima che scadano. Fai uno snapshot o un backup dello stato attuale. Non cancellare file sospetti: spostali.

  4. Chiudere la falla: trova la causa (/security-audit, /audit-supabase), correggi, prova e rilascia. Ruota ogni segreto che può essere stato visto.

  5. Ripristinare: se dei dati sono stati alterati o cancellati, ripristina da backup o PITR in un ambiente separato, confronta, poi riporta in produzione. Riapri il sito solo quando la falla è chiusa.

  6. Avvisare: se sono coinvolti dati personali, valuta con l'utente la notifica all'autorità di controllo (in Italia il Garante privacy) entro 72 ore da quando si è venuti a conoscenza della violazione (GDPR art. 33, par. 1). Se il rischio per le persone è alto, avvisa anche loro (art. 34). Prepara le bozze di entrambe. In ogni caso registra la violazione nel registro interno (art. 33, par. 5).

  7. Dopo: scrivi un post-mortem senza colpe (cronologia, causa, cosa ha funzionato, azioni con responsabile e data) e aggiorna il runbook.

Se l'utente non ha accesso a una console o manca la 2FA, segnalalo come primo punto delle azioni successive (skill account-fornitori).


English: a security incident is (or may be) happening. Guide the user calmly, one step at a time, with the risposta-incidenti skill; reply in the user's language. Log every action with its time in incidente-<date>.md in outputs.

Steps:

  1. Two-minute triage: what happened, since when, which data or systems, is it ongoing, severity.
  2. Contain before deep investigation: maintenance without a deploy; pause sign-ups; block abusive accounts; revoke sessions (copy auth.sessions and auth.refresh_tokens first: they are the best evidence) and rotate keys that may have leaked; remove a dangerous grant with an emergency migration. Confirm every production change first.
  3. Preserve evidence: export logs before they expire, snapshot, move (don't delete) suspicious files.
  4. Fix the cause (/security-audit, /audit-supabase) and rotate exposed secrets.
  5. Restore altered data from backup or PITR via a separate environment; reopen only when fixed.
  6. Notify: GDPR art. 33 notification to the supervisory authority within 72 hours of becoming aware of it when personal data is involved; art. 34 to the people when the risk is high; the internal breach register (art. 33(5)) always. Draft both notices.
  7. Blameless post-mortem and runbook update. A missing console access or 2FA is the first follow-up (account-fornitori skill).
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 First seen · 41 lines · 93 tokens per session scan A a86e6322d598

Subscribe to this mod's changes

emergenza is a command published in the GitHub repository ayalaphiscan/web-security-guard (4 stars, last pushed 1mo ago), licensed MIT. It adds 93 tokens to every session and 1,085 once invoked, about $0.0004 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-10-24.

Related

emergenza compared with commands from other repositories

emergenza next to 6 commands from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
emergenzaayalaphiscan/web-security-guardCommand41mo agoMITA93Claude Code
review-epo-claimsRobThePCGuy/Claude-Patent-CreatorCommand2227d agoMITA26Claude Code
create-epo-patentRobThePCGuy/Claude-Patent-CreatorCommand2227d agoMITB15Claude Code
patent-checkillusionaireal/oh-my-patentCommand1241mo agoMITA0Claude Code
patent-reviewillusionaireal/oh-my-patentCommand1241mo agoMITA0Claude Code
patent-diagramillusionaireal/oh-my-patentCommand1241mo agoMITA17Claude Code
soa-generatorGRCEngClub/claude-grc-engineeringCommand4494d agononeA18Claude Code