Skip to content
responding-to-security-incidents logo

Responding To Security Incidents

responding-to-security-incidents

Analyze and guide security incident response, investigation, and remediation

SKILL.md

Full skill instructions

Responding To Security Incidents

Overview

Guide the full NIST SP 800-61 incident response lifecycle: detection, containment, eradication, recovery, and post-incident analysis. Classify incidents by type (ransomware, data breach, DDoS, credential compromise, insider threat) and severity, then coordinate evidence preservation, threat containment, and root-cause investigation.

Prerequisites

  • System and application logs accessible in ${CLAUDE_SKILL_DIR}/​logs/ (auth logs, web server logs, database access logs)
  • Network traffic captures (PCAP) or SIEM alert exports available
  • Incident response team contact information and escalation paths documented
  • Backup systems operational and recovery procedures tested
  • Write permissions for incident documentation in ${CLAUDE_SKILL_DIR}/​incidents/
  • Forensic tools available: Volatility (memory), Autopsy/​FTK Imager (disk), tcpdump/​Wireshark (network)

Instructions

  1. Classify the incident: determine type (ransomware, data breach, DDoS, phishing, insider threat), assign severity (Critical/​High/​Medium/​Low), and record initial detection timestamp and method.
  2. Scope affected systems: identify all compromised hosts, user accounts, data stores, and network segments. Map the blast radius.
  3. Preserve evidence before any changes: capture memory dumps (volatility -f memdump.raw imageinfo), create disk images, export running process lists (ps auxf), and snapshot network connection state (ss -tulnp).
  4. Collect log evidence: gather authentication logs (successful and failed), application error logs, firewall/​IDS alerts, DNS query logs, and proxy server logs. Store originals in ${CLAUDE_SKILL_DIR}/​incidents/​evidence/.
  5. Contain the threat: isolate affected systems from the network, disable compromised accounts, block malicious IPs at the firewall, and revoke compromised API keys or tokens.
  6. Investigate and reconstruct timeline: identify initial access vector, map lateral movement, determine data exfiltration scope, locate persistence mechanisms (cron jobs, startup scripts, web shells), and document all IOCs (IPs, hashes, domains, file paths).
  7. Eradicate the threat: remove malware and backdoors, patch exploited vulnerabilities, reset all potentially compromised credentials, and update firewall rules.
  8. Recover operations: restore from verified clean backups, rebuild compromised systems from hardened images, validate system integrity, and monitor for reinfection with heightened alerting.
  9. Document the incident: produce a comprehensive report at ${CLAUDE_SKILL_DIR}/​incidents/​incident-YYYYMMDD-HHMM.md containing executive summary, detailed timeline, root cause analysis, IOC list, and lessons learned.
  10. Create remediation backlog: list all follow-up actions (patch gaps, monitoring improvements, policy changes) with owners and deadlines.

See ${CLAUDE_SKILL_DIR}/​references/​implementation.md for the seven-phase implementation workflow.

Output

  • Incident Report: ${CLAUDE_SKILL_DIR}/​incidents/​incident-YYYYMMDD-HHMM.md with timeline, root cause, IOCs, and impact assessment
  • IOC List: machine-readable indicators (IP addresses, file hashes, domains, YARA rules)
  • After-Action Review: lessons learned, process gaps, and recommended improvements
  • Remediation Backlog: prioritized follow-up tasks with owners and deadlines

Error Handling

ErrorCauseSolution
Critical logs missing from ${CLAUDE_SKILL_DIR}/​logs/Log rotation, deletion, or attacker tamperingWork with available data; note gaps; improve logging retention for future incidents
System state modified before evidence collectionFirst responder made changes before forensic captureDocument contamination; collect remaining evidence; prioritize network and SIEM logs
Attacker still has active access during investigationOngoing compromise detectedPrioritize containment over investigation; implement emergency network isolation
Permission denied accessing system memoryInsufficient forensic tool privilegesEscalate to obtain root/​admin access; fall back to available log and network data
Backups encrypted or corrupted by ransomwareAttacker targeted backup infrastructureIdentify offline/​air-gapped backups; assess rebuild-from-scratch feasibility

Examples

  • "Credential stuffing detected. Use logs in ${CLAUDE_SKILL_DIR}/​logs/ to triage the incident, scope affected accounts, and propose containment steps."
  • "Create an incident response plan for a suspected data breach: list evidence to collect, containment actions, and notification requirements."
  • "Investigate a web shell found at /​var/​www/​html/​uploads/​cmd.php. Trace the initial access vector, identify persistence mechanisms, and produce an IOC list."

Resources

More Security skills

supabase logo
Security

supabase

Handles the full Supabase workflow from schema changes to deployment, with built-in security guardrails that catch common traps like RLS...

2.7K 308.9K
View

Comprehensive guides and best practices for Neon Serverless Postgres, covering setup, connection methods, authentication, and platform APIs.

98 216.2K
View

Guide for setting up and using Firebase Authentication. Use this skill when the user's app requires user sign-in, user management, or secure data access using auth rules.

462 163.8K
View

A skill to evaluate how secure Firestore security rules are. Use this when Firestore security rules are updated to ensure that the generated rules are extremely secure and robust.

462 127.7K
View

Official skill for integrating Firebase AI Logic (Gemini API) into web applications. Covers setup, multimodal inference, structured output, and security.

462 125.1K
View

Complete Better Auth server and client setup with database adapters, session management, plugins, and security configuration.

222 118.2K
View

Deploy and manage projects on Vercel using token-based authentication. Use when working with Vercel CLI using access tokens rather than interactive login — e.g. "deploy to vercel", "set up vercel", "add environment variables to vercel".

31.9K 116.1K
View
cloudflare logo
Security

cloudflare

Complete Cloudflare platform integration with decision trees for compute, storage, AI, networking, security, and infrastructure-as-code.

3K 110.7K
View

Run Azure compliance and security audits with azqr plus Key Vault expiration checks. Covers best-practice assessment, resource review, policy/compliance validation, and security posture checks. WHEN: compliance scan, security audit, BEFORE running azqr (compliance cli tool), Azure best practices, Key Vault expiration check, expired certificates, expiring secrets, orphaned resources, compliance assessment.

253 103K
View
gws-gmail logo
Security

gws-gmail

Send, read, and manage Gmail messages, drafts, labels, and account settings.

31.2K 78.9K
View

Comprehensive website auditing across 230+ rules in 21 categories including SEO, performance, security, and accessibility.

94 72.3K
View
gws-shared logo
Security

gws-shared

Shared authentication, CLI syntax, and output formatting patterns for gws Google Workspace commands.

31.2K 63.4K
View

Security AI tools

StarByFace logo
Security

StarByFace

Discover your celebrity doppelgänger with StarByFace!

Free
View
GeoSpy logo
Security

GeoSpy

GeoSpy: Pricing, Features, FAQs, and Alternatives for AI Teams

Free
View

Detect AI-generated voices to protect against audio fraud.

Paid
View

Ensure Your Content's Originality with AI Plagiarism Checker

Freemium
View
Img Upscaler logo
Security

Img Upscaler

Upscale images by 400% without quality loss

Freemium
View
AICheatCheck logo
Security

AICheatCheck

Accurately Detect AI-Generated Content with TheChecker.AI

Free
View
D
Security

Detect GPT

Chrome extension that detects and flags AI-generated content

Free
View