Incident Response Lifecycle
Incident response is the systematic process of handling security breaches from detection to recovery. The NIST incident response lifecycle consists of four phases:
- Preparation: Establishing policies, playbooks, and training your team
- Detection & Analysis: Identifying and investigating incidents
- Containment, Eradication & Recovery: Stopping the threat and restoring systems
- Post-Incident Activity: Lessons learned and improving defenses
In Pakistan, SBP guidelines require banks to report major cybersecurity incidents within 24 hours. NADRA has specific protocols for identity breach incidents. The NCCIA 1799 helpline can assist coordination with law enforcement.
Building Incident Response Playbooks
Playbooks provide step-by-step guidance for specific incident types. Each playbook should include:
- Trigger conditions: What activates this playbook
- Escalation path: Who to contact and when
- Technical steps: Investigation, containment, eradication procedures
- Evidence preservation: Chain of custody requirements
- Communication templates: Internal and external notifications
Sample Playbook: Ransomware Incident
Trigger: EDR alert or user report of encrypted files
Immediate Steps:
- Isolate affected systems from the network immediately
- Identify ransomware variant and C2 communications
- Preserve memory dumps before rebooting
- Notify security leadership and legal team
Containment:
- Block C2 domains at DNS level
- Disable compromised accounts
- Reset credentials for privileged accounts
Recovery:
- Restore from clean backups (verify backup integrity first)
- Patch exploited vulnerabilities
- Monitor for reinfection indicators
TheHive Case Management
TheHive is an open source Security Incident Response Platform (SIRP) widely used in SOCs. It integrates with MISP, allows case tracking, and supports analyst collaboration.
Key TheHive Features:
- Cases: Create incidents with severity, TTP mapping, and observables
- Observables: IP addresses, domains, file hashes, and other IOCs
- Tasks: Assign investigation steps to team members
- Timelines: Track all activities chronologically
- MISP Integration: Import threat intel directly into cases
Creating a Case in TheHive:
1. Navigate to Cases β Create Case
2. Enter case title, severity (P1-P4), and description
3. Map to MITRE ATT&CK tactics using TTP tags
4. Add observables from your investigation
5. Create tasks for investigation steps
6. Assign tasks to team members with deadlines
Evidence Preservation & Chain of Custody
Proper evidence handling is critical for legal proceedings and compliance.
Best Practices:
- Image affected systems before making changes
- Hash all evidence (MD5, SHA256) and document
- Use write blockers when acquiring forensic images
- Maintain detailed logs of all access to evidence
- Store evidence in secure, access-controlled locations
Do:
- Document everything in TheHive from the first alert
- Use standardized evidence collection procedures
- Involve legal counsel early for major breaches
Don't:
- Power off systems before memory acquisition (volatile data loss)
- Modify or delete suspicious files before analysis
- Delay evidence preservation for non-critical systems
Reporting Requirements
Pakistan-Specific Reporting:
- SBP: Major incidents in banking/financial sector
- PTA: telecom security incidents
- NCCIA 1799: Cybercrime coordination and law enforcement liaison
- PDMA: Where applicable for critical infrastructure
Takeaway Today: Create a draft playbook template in TheHive for one incident type relevant to your organization, then share it with your team for review.
