1---2name: security-incident-response3enabled: true4description: |5 Use when performing security incident response — security-specific incident6 response playbook covering breach detection, compromised credentials response,7 data leak containment, evidence preservation, regulatory notification8 requirements, forensic investigation coordination, and communication9 protocols. Provides structured workflows for security incidents distinct from10 operational incidents.11required_connections:12 - prefix: slack13 label: "Slack (for secure incident coordination)"14config_fields:15 - key: incident_type16 label: "Security Incident Type"17 required: true18 placeholder: "e.g., data breach, compromised credentials, unauthorized access"19 - key: incident_description20 label: "Incident Description"21 required: true22 placeholder: "e.g., Suspicious API calls from unknown IP using valid credentials"23 - key: affected_systems24 label: "Affected Systems"25 required: false26 placeholder: "e.g., user database, API gateway, admin portal"27features:28 - INCIDENT29metadata:30 source: https://skillmd.com/skills/cloudthinker-ai/security-incident-response31---3233# Security Incident Response Playbook3435Type: **{{ incident_type }}**36Description: **{{ incident_description }}**37Affected Systems: **{{ affected_systems }}**3839## CRITICAL: Security Incident Differs from Operational Incident4041- **Preserve evidence** — do not destroy logs, do not reimage systems without forensic capture42- **Limit communication** — use secure channels, need-to-know basis only43- **Legal involvement** — notify legal counsel early for breach/data exposure events44- **Regulatory obligations** — data breaches may have mandatory notification timelines4546## Phase 1 — Detection and Triage (0-15 min)4748### Immediate Actions49- [ ] Confirm the security event is real (not a false positive)50- [ ] Classify the incident type:51 - [ ] Unauthorized access52 - [ ] Compromised credentials53 - [ ] Data exfiltration/exposure54 - [ ] Malware/ransomware55 - [ ] Insider threat56 - [ ] DDoS attack57 - [ ] Supply chain compromise58- [ ] Assign severity based on data sensitivity and blast radius59- [ ] Open a PRIVATE incident channel (not public)60- [ ] Notify Security team lead and CISO6162### Triage Questions631. What data or systems are potentially compromised?642. Is the attack still active or historical?653. What is the blast radius (users, data, systems)?664. Is there evidence of data exfiltration?675. Are any regulatory requirements triggered (PII, PHI, PCI)?6869## Phase 2 — Containment (15-60 min)7071### Short-Term Containment (stop the bleeding)72- [ ] Revoke compromised credentials/API keys/tokens73- [ ] Block malicious IP addresses or user accounts74- [ ] Isolate affected systems (network segmentation, not shutdown)75- [ ] Disable compromised integrations or webhooks76- [ ] Enable enhanced logging on affected systems7778### Evidence Preservation79- [ ] Capture system memory dumps before any changes80- [ ] Snapshot affected disk volumes81- [ ] Export relevant logs to secure, immutable storage82- [ ] Record network flow data83- [ ] Screenshot active sessions or dashboards84- [ ] Document chain of custody for all evidence8586**WARNING:** Do NOT reimage, wipe, or restart systems before evidence is captured.8788### Compromised Credentials Response89If credentials are compromised:90- [ ] Rotate ALL credentials for affected accounts immediately91- [ ] Rotate API keys, tokens, and secrets that may have been exposed92- [ ] Force password reset for affected user accounts93- [ ] Revoke all active sessions for compromised accounts94- [ ] Review access logs for unauthorized actions during exposure window95- [ ] Check if compromised credentials were used to access other systems9697## Phase 3 — Investigation9899### Forensic Investigation100- [ ] Establish timeline of attacker activity101- [ ] Identify initial access vector (how did they get in?)102- [ ] Map lateral movement (what else did they access?)103- [ ] Determine data accessed or exfiltrated104- [ ] Identify persistence mechanisms (backdoors, new accounts)105- [ ] Check for indicators of compromise (IoCs) across other systems106107### Key Log Sources to Review108| Source | What to Look For |109|--------|-----------------|110| Authentication logs | Failed/successful logins, unusual locations, impossible travel |111| API access logs | Unusual patterns, bulk data access, new API consumers |112| Cloud audit logs | IAM changes, new resources, policy modifications |113| Network logs | Data exfiltration patterns, C2 communication, unusual destinations |114| Application logs | SQL injection attempts, privilege escalation, unauthorized actions |115| VPN/SSH logs | Unauthorized remote access, unusual connection times |116117## Phase 4 — Eradication and Recovery118119### Eradication120- [ ] Remove attacker access (all identified access vectors)121- [ ] Remove any persistence mechanisms (backdoors, cron jobs, new accounts)122- [ ] Patch the vulnerability that allowed initial access123- [ ] Verify no remaining unauthorized access124- [ ] Scan for IoCs across the environment125126### Recovery127- [ ] Restore affected systems from known-good backups (if needed)128- [ ] Validate data integrity129- [ ] Re-enable services in a controlled manner130- [ ] Implement additional monitoring for the affected area131- [ ] Verify clean operation for 24-48 hours132133## Phase 5 — Notification and Reporting134135### Internal Notification136| Stakeholder | When to Notify | Method |137|------------|---------------|--------|138| CISO | Immediately | Phone + secure channel |139| Legal counsel | Within 1 hour for data breaches | Phone |140| Executive team | Within 4 hours for SEV1 security | Secure briefing |141| Engineering teams | As needed for containment | Private Slack |142143### Regulatory Notification (if applicable)144| Regulation | Data Type | Notification Deadline | Authority |145|-----------|-----------|----------------------|-----------|146| GDPR | EU personal data | 72 hours | Supervisory authority |147| HIPAA | Protected health info | 60 days | HHS |148| PCI DSS | Cardholder data | Immediately | Card brands + acquirer |149| State breach laws | PII (varies by state) | Varies (24h-60 days) | State AG |150151### Customer Notification152- [ ] Determine which customers are affected153- [ ] Draft notification with legal review154- [ ] Include: what happened, what data was affected, what we are doing, what they should do155- [ ] Provide identity monitoring if PII was exposed156157## Post-Incident158159- [ ] Conduct security post-incident review (separate from ops postmortem)160- [ ] Update threat model based on findings161- [ ] Implement additional security controls162- [ ] Update incident response playbook with lessons learned163- [ ] Schedule penetration test to validate fixes164- [ ] Review and update security monitoring rules165166## Counter-Rationalizations167168| Shortcut | Counter | Why |169|----------|---------|-----|170| "We can skip some steps for this case" | Adapt the workflow steps, don't skip them | Skipped steps are where incidents and oversights originate |171| "The user seems to already know what to do" | Complete all workflow phases with the user | The workflow catches blind spots that experience alone misses |172| "This is a minor case, full process is overkill" | Scale the process down, don't turn it off | Minor cases become major when unstructured; the process scales, not disappears |173| "I'll fill in the details later" | Complete each section before moving on | Deferred details are forgotten; real-time capture is more accurate |174| "The template output isn't necessary" | Always produce the structured output format | Structured output enables comparison, audit trails, and handoff to other teams |175