Incident Response
Skill Profile
(Select at least one profile to enable specific modules)
Overview
Incident response is a systematic approach to handling security breaches and incidents to minimize damage, reduce recovery time, and prevent future occurrences. Effective incident response includes preparation, detection, containment, eradication, recovery, and lessons learned. This skill covers the complete incident response lifecycle, team roles, tools, communication strategies, and compliance requirements for organizations handling security incidents.
Why This Matters
- Faster Containment: Reduce damage from hours to minutes with proper procedures
- Evidence Preservation: Enable root cause analysis and legal proceedings
- Compliance: Meet SOC2, ISO 27001, GDPR, PCI DSS requirements
- Customer Trust: Professional handling builds confidence during incidents
- Cost Reduction: Faster recovery equals less downtime cost and business impact
Core Concepts & Rules
1. Core Principles
- Follow established patterns and conventions
- Maintain consistency across codebase
- Document decisions and trade-offs
2. Implementation Guidelines
- Start with the simplest viable solution
- Iterate based on feedback and requirements
- Test thoroughly before deployment
Inputs / Outputs / Contracts
- Inputs:
- Security alerts and notifications
- System logs and monitoring data
- Threat intelligence feeds
- Incident reports from users or systems
- Legal and compliance requirements
- Entry Conditions:
- Incident response plan documented
- Incident response team identified and trained
- Security monitoring tools deployed (SIEM, IDS/IPS, WAF)
- Communication channels established
- Outputs:
- Incident reports (executive summary, technical details, root cause analysis)
- Timeline of incident and response actions
- Lessons learned and improvement recommendations
- Updated incident response procedures
- Evidence collected and preserved
- Artifacts Required (Deliverables):
- Incident report with executive summary and technical details
- Root cause analysis document
- Timeline of events and actions
- Evidence collection log
- Lessons learned document with action items
- Updated incident response plan
- Acceptance Evidence:
- Incident contained within SLA (based on severity)
- Services restored and verified
- Evidence properly preserved and documented
- Stakeholders notified appropriately
- Root cause identified and documented
- Lessons learned documented and action items assigned
- Success Criteria:
- Incident response time meets SLA targets
- Services restored with integrity verified
- Evidence preserved for investigation
- Stakeholders communicated transparently
- Lessons learned documented and improvements implemented
Skill Composition
- Depends on: vulnerability-management, security-audit, secrets-management
- Compatible with: secure-coding, penetration-testing, monitoring-observability
- Conflicts with: None
- Related Skills: owasp-top-10, compliance-governance
Quick Start
Assumptions / Constraints / Non-goals
- Assumptions:
- Development environment is properly configured
- Required dependencies are available
- Team has basic understanding of domain
- Constraints:
- Must follow existing codebase conventions
- Time and resource limitations
- Compatibility requirements
- Non-goals:
- This skill does not cover edge cases outside scope
- Not a replacement for formal training
Compatibility & Prerequisites
- Supported Versions:
- Python 3.8+
- Node.js 16+
- Modern browsers (Chrome, Firefox, Safari, Edge)
- Required AI Tools:
- Code editor (VS Code recommended)
- Testing framework appropriate for language
- Version control (Git)
- Dependencies:
- Language-specific package manager
- Build tools
- Testing libraries
- Environment Setup:
.env.example keys: API_KEY, DATABASE_URL (no values)
Test Scenario Matrix (QA Strategy)
| Type |
Focus Area |
Required Scenarios / Mocks |
| Unit |
Core Logic |
Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |
| Integration |
DB / API |
All external API calls or database connections must be mocked during unit tests |
| E2E |
User Journey |
Critical user flows to test |
| Performance |
Latency / Load |
Benchmark requirements |
| Security |
Vuln / Auth |
SAST/DAST or dependency audit |
| Frontend |
UX / A11y |
Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |
Technical Guardrails & Security Threat Model
1. Security & Privacy (Threat Model)
- Top Threats: Injection attacks, authentication bypass, data exposure
2. Performance & Resources
3. Architecture & Scalability
4. Observability & Reliability
Agent Directives & Error Recovery
(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)
- Thinking Process: Analyze root cause before fixing. Do not brute-force.
- Fallback Strategy: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.
- Self-Review: Check against Guardrails & Anti-patterns before finalizing.
- Output Constraints: Output ONLY the modified code block. Do not explain unless asked.
Definition of Done (DoD) Checklist
Anti-patterns
Reference Links & Examples
- Internal documentation and examples
- Official documentation and best practices
- Community resources and discussions
Versioning & Changelog
- Version: 1.0.0
- Changelog:
- 2026-02-22: Initial version with complete template structure
Converted and distributed by TomeVault — claim your Tome and manage your conversions.
1---2name: incident-response-23description: Incident response is a systematic approach to handling security breaches Use when this capability is needed.4---56# Incident Response78## Skill Profile9*(Select at least one profile to enable specific modules)*10- [ ] **DevOps**11- [x] **Backend**12- [ ] **Frontend**13- [ ] **AI-RAG**14- [ ] **Security Critical**1516## Overview17Incident response is a systematic approach to handling security breaches and incidents to minimize damage, reduce recovery time, and prevent future occurrences. Effective incident response includes preparation, detection, containment, eradication, recovery, and lessons learned. This skill covers the complete incident response lifecycle, team roles, tools, communication strategies, and compliance requirements for organizations handling security incidents.1819## Why This Matters20- **Faster Containment**: Reduce damage from hours to minutes with proper procedures21- **Evidence Preservation**: Enable root cause analysis and legal proceedings22- **Compliance**: Meet SOC2, ISO 27001, GDPR, PCI DSS requirements23- **Customer Trust**: Professional handling builds confidence during incidents24- **Cost Reduction**: Faster recovery equals less downtime cost and business impact2526---2728## Core Concepts & Rules2930### 1. Core Principles31- Follow established patterns and conventions32- Maintain consistency across codebase33- Document decisions and trade-offs3435### 2. Implementation Guidelines36- Start with the simplest viable solution37- Iterate based on feedback and requirements38- Test thoroughly before deployment394041## Inputs / Outputs / Contracts42* **Inputs**:43 - Security alerts and notifications44 - System logs and monitoring data45 - Threat intelligence feeds46 - Incident reports from users or systems47 - Legal and compliance requirements48* **Entry Conditions**:49 - Incident response plan documented50 - Incident response team identified and trained51 - Security monitoring tools deployed (SIEM, IDS/IPS, WAF)52 - Communication channels established53* **Outputs**:54 - Incident reports (executive summary, technical details, root cause analysis)55 - Timeline of incident and response actions56 - Lessons learned and improvement recommendations57 - Updated incident response procedures58 - Evidence collected and preserved59* **Artifacts Required (Deliverables)**:60 - Incident report with executive summary and technical details61 - Root cause analysis document62 - Timeline of events and actions63 - Evidence collection log64 - Lessons learned document with action items65 - Updated incident response plan66* **Acceptance Evidence**:67 - Incident contained within SLA (based on severity)68 - Services restored and verified69 - Evidence properly preserved and documented70 - Stakeholders notified appropriately71 - Root cause identified and documented72 - Lessons learned documented and action items assigned73* **Success Criteria**:74 - Incident response time meets SLA targets75 - Services restored with integrity verified76 - Evidence preserved for investigation77 - Stakeholders communicated transparently78 - Lessons learned documented and improvements implemented7980## Skill Composition81* **Depends on**: [vulnerability-management](file://24-security-practices/vulnerability-management/), [security-audit](file://24-security-practices/security-audit/), [secrets-management](file://24-security-practices/secrets-management/)82* **Compatible with**: [secure-coding](file://24-security-practices/secure-coding/), [penetration-testing](file://24-security-practices/penetration-testing/), [monitoring-observability](file://14-monitoring-observability/)83* **Conflicts with**: None84* **Related Skills**: [owasp-top-10](file://24-security-practices/owasp-top-10/), [compliance-governance](file://12-compliance-governance/)8586---8788## Quick Start89#9091## Assumptions / Constraints / Non-goals9293* **Assumptions**:94 - Development environment is properly configured95 - Required dependencies are available96 - Team has basic understanding of domain97* **Constraints**:98 - Must follow existing codebase conventions99 - Time and resource limitations100 - Compatibility requirements101* **Non-goals**:102 - This skill does not cover edge cases outside scope103 - Not a replacement for formal training104105106## Compatibility & Prerequisites107108* **Supported Versions**:109 - Python 3.8+110 - Node.js 16+111 - Modern browsers (Chrome, Firefox, Safari, Edge)112* **Required AI Tools**:113 - Code editor (VS Code recommended)114 - Testing framework appropriate for language115 - Version control (Git)116* **Dependencies**:117 - Language-specific package manager118 - Build tools119 - Testing libraries120* **Environment Setup**:121 - `.env.example` keys: `API_KEY`, `DATABASE_URL` (no values)122123124## Test Scenario Matrix (QA Strategy)125126| Type | Focus Area | Required Scenarios / Mocks |127| :--- | :--- | :--- |128| **Unit** | Core Logic | Must cover primary logic and at least 3 edge/error cases. Target minimum 80% coverage |129| **Integration** | DB / API | All external API calls or database connections must be mocked during unit tests |130| **E2E** | User Journey | Critical user flows to test |131| **Performance** | Latency / Load | Benchmark requirements |132| **Security** | Vuln / Auth | SAST/DAST or dependency audit |133| **Frontend** | UX / A11y | Accessibility checklist (WCAG), Performance Budget (Lighthouse score) |134135136## Technical Guardrails & Security Threat Model137138### 1. Security & Privacy (Threat Model)139* **Top Threats**: Injection attacks, authentication bypass, data exposure140- [ ] **Data Handling**: Sanitize all user inputs to prevent Injection attacks. Never log raw PII141- [ ] **Secrets Management**: No hardcoded API keys. Use Env Vars/Secrets Manager142- [ ] **Authorization**: Validate user permissions before state changes143144### 2. Performance & Resources145- [ ] **Execution Efficiency**: Consider time complexity for algorithms146- [ ] **Memory Management**: Use streams/pagination for large data147- [ ] **Resource Cleanup**: Close DB connections/file handlers in finally blocks148149### 3. Architecture & Scalability150- [ ] **Design Pattern**: Follow SOLID principles, use Dependency Injection151- [ ] **Modularity**: Decouple logic from UI/Frameworks152153### 4. Observability & Reliability154- [ ] **Logging Standards**: Structured JSON, include trace IDs `request_id`155- [ ] **Metrics**: Track `error_rate`, `latency`, `queue_depth`156- [ ] **Error Handling**: Standardized error codes, no bare except157- [ ] **Observability Artifacts**:158 - **Log Fields**: timestamp, level, message, request_id159 - **Metrics**: request_count, error_count, response_time160 - **Dashboards/Alerts**: High Error Rate > 5%161162163## Agent Directives & Error Recovery164*(ข้อกำหนดสำหรับ AI Agent ในการคิดและแก้ปัญหาเมื่อเกิดข้อผิดพลาด)*165166- **Thinking Process**: Analyze root cause before fixing. Do not brute-force.167- **Fallback Strategy**: Stop after 3 failed test attempts. Output root cause and ask for human intervention/clarification.168- **Self-Review**: Check against Guardrails & Anti-patterns before finalizing.169- **Output Constraints**: Output ONLY the modified code block. Do not explain unless asked.170171172## Definition of Done (DoD) Checklist173174- [ ] Tests passed + coverage met175- [ ] Lint/Typecheck passed176- [ ] Logging/Metrics/Trace implemented177- [ ] Security checks passed178- [ ] Documentation/Changelog updated179- [ ] Accessibility/Performance requirements met (if frontend)180181182## Anti-patterns183#184185## Reference Links & Examples186187* Internal documentation and examples188* Official documentation and best practices189* Community resources and discussions190191192## Versioning & Changelog193194* **Version**: 1.0.0195* **Changelog**:196 - 2026-02-22: Initial version with complete template structure197198---199> Converted and distributed by [TomeVault](https://tomevault.io/claim/amnadtaowsoam) — claim your Tome and manage your conversions.200<!-- tomevault:4.0:skill_md:2026-04-13 -->