OWASP Incident Response
Every organization faces a security incident sooner or later. Preparation decides whether the event becomes a short disruption or a headline. Incident response is the planned way a team detects, contains, fixes, and learns from a security event.
The Fire Drill Comparison
Buildings run fire drills so that nobody invents a plan while smoke fills the hallway. Everyone knows the exits, the meeting point, and the person in charge. An incident response plan gives a technical team the same calm structure.
The Six Phases
1. Prepare → 2. Detect → 3. Contain → 4. Eradicate → 5. Recover → 6. Learn
↑ |
+———————————————— improvements feed the next cycle ————————————————————+
Phase Details
1. Prepare
Build the team, tools, and contact lists before trouble starts. Write playbooks for common events such as stolen credentials, malware, and data leaks. Practice with tabletop exercises where the team talks through a made-up incident.
2. Detect and Analyze
Alerts from logs, monitoring tools, users, and partners start the process. Analysts confirm whether the event is real, decide its severity, and record the timeline.
3. Contain
Containment stops the spread. Short-term actions include isolating a server, disabling an account, or blocking an address. Long-term actions include network changes that keep the attacker out while teams investigate.
4. Eradicate
The team removes the cause: deletes malware, closes the weakness, resets exposed credentials, and patches systems.
5. Recover
Systems return to normal service from clean backups or rebuilt images. Teams watch closely for signs that the problem returns.
6. Learn
A review meeting, held without blame, asks what happened, what worked, and what failed. The group records fixes and updates the playbooks.
Roles in the Response Team
| Role | Responsibility |
|---|---|
| Incident commander | Leads decisions and keeps the team coordinated |
| Technical analyst | Investigates systems and logs |
| Communications lead | Informs executives, customers, and regulators |
| Legal or compliance contact | Advises on notification duties |
| Scribe | Records every action and time |
Severity Levels
| Level | Example | Response Speed |
|---|---|---|
| Low | Single failed phishing attempt | Routine handling |
| Medium | One compromised employee account | Same day |
| High | Customer data exposure | Immediate, all hands |
Evidence Handling
Investigators preserve logs, disk images, and memory captures before they clean systems. Careless cleanup destroys clues that explain how the attacker entered. Keep a written chain of custody that shows who handled each item and when.
Communication Tips
- Use an out-of-band channel, such as a phone bridge, when attackers may read email.
- Share facts, not guesses, with executives and customers.
- Follow legal deadlines for breach notification in your region.
- Assign one spokesperson to avoid conflicting messages.
Application-Specific Actions
Web application incidents often need extra steps: rotate API keys and signing secrets, invalidate active sessions, force password resets for affected users, review recent code changes, and add detection rules for the attack pattern.
Measuring Response Quality
Teams track simple numbers to see progress: time to detect, time to contain, and time to recover. Falling numbers show that the plan and the practice work. Rising numbers point to gaps in tools, training, or staffing. Review the metrics after every incident and every exercise.
Key Takeaways
- Planning before an incident shortens every later step.
- Six phases give the team a clear path.
- Defined roles prevent confusion under pressure.
- Blameless reviews turn each incident into stronger defense.
