Incident Triage — Security Incident Response
Guide rapid triage and initial response to security incidents. Follow NIST SP 800-61 methodology.
Priorities (in order)
- Preserve human safety
- Contain the incident to prevent further damage
- Preserve evidence for investigation
- Identify root cause and scope
- Document everything
Step 1: Classification
Determine incident type:
- Malware: ransomware, trojan, worm, cryptominer
- Unauthorized access: compromised credentials, exploitation
- Data exfiltration: data theft, insider threat
- Denial of service
- Web compromise: defacement, skimming, backdoor
- Phishing / social engineering
Determine severity:
- Critical: active data exfiltration, ransomware spreading, critical system compromise
- High: confirmed compromise, malware detected, unauthorized access
- Medium: suspicious activity, potential indicators, failed attacks
- Low: policy violation, reconnaissance detected, likely false positive
Step 2: Initial Containment
Based on type and severity:
- Network: block suspicious IPs/domains at firewall
- Host: isolate affected system (network disconnect, NOT power off — volatile memory is evidence)
- Account: disable compromised accounts, force password resets
- Application: disable affected service if safe to do so
Critical: Do NOT power off systems. Volatile memory contains evidence.
Step 3: Evidence Preservation
Capture in order of volatility (most volatile first):
# 1. Running processes
ps auxf # Linux
tasklist /v # Windows
# 2. Network connections
ss -tupn # Linux
netstat -anob # Windows
# 3. Logged-in users
who -a # Linux
query user # Windows
# 4. Open files
lsof -nP # Linux
# 5. System logs
journalctl --since "1 hour ago" # Linux/systemd
If memory forensics tools are available (LiME, WinPmem), capture a memory dump before anything else.
Step 4: Initial Analysis
For each suspicious indicator, document:
- What: describe the artifact
- When: timestamps in UTC
- Where: affected system(s)
- How: how it was detected
Common analysis:
- Process tree: look for unusual process names, paths, or parent-child relationships
- Network indicators: unusual outbound connections, DNS queries to suspicious domains, beaconing patterns (regular intervals)
- File indicators: recently modified files in unusual locations, hidden files, new executables
- Log analysis: authentication failures, privilege escalation, service changes, cleared logs
- Persistence: crontab, systemd units, registry Run keys, scheduled tasks, startup items
Step 5: IOC Extraction
Extract and document all indicators of compromise:
| Type |
Examples |
| IP addresses |
Source and destination IPs |
| Domains |
C2 domains, phishing domains |
| File hashes |
MD5 and SHA256 of suspicious files |
| File paths |
Malware locations, dropped files |
| Email addresses |
Phishing sender addresses |
| URLs |
Malicious URLs, C2 endpoints |
| User agents |
Unusual or known-malicious user agents |
Output Format
# Incident Triage Report
## Incident ID: [ID]
## Date/Time: [UTC]
## Severity: [Critical/High/Medium/Low]
## Classification: [incident type]
## Status: [Triage/Contained/Analyzing/Resolved]
### Summary
[2-3 sentence overview]
### Affected Systems
| Hostname | IP | Role | Status |
|----------|-----|------|--------|
### Timeline
| Time (UTC) | Event | Source | Notes |
|------------|-------|--------|-------|
### Indicators of Compromise
| Type | Value | Context | Confidence |
|------|-------|---------|------------|
### Containment Actions Taken
- [ ] [Action and result]
### Evidence Preserved
| Type | Location | Hash | Notes |
|------|----------|------|-------|
### Recommended Next Steps
1. [Immediate priority]
2. [Short-term action]
3. [Follow-up investigation]
### Escalation Checklist
- [ ] Management notified
- [ ] Legal notified (if data breach)
- [ ] Law enforcement (if applicable)
- [ ] Affected parties notified (if data breach)
Boundaries
- Focus on defense and containment, not counter-attack
- Preserve evidence — never modify logs or timestamps
- Recommend legal/management escalation for confirmed breaches
- If unsure about a containment action's impact, advise caution and ask
- Never recommend "hacking back" or retaliatory actions
- Refuse requests to cover up incidents or tamper with evidence
References
- NIST SP 800-61r2: Computer Security Incident Handling Guide
- SANS Incident Handler's Handbook
- MITRE ATT&CK Framework
1---2name: incident-triage3description: Guide rapid triage and initial response to security incidents following NIST SP 800-61 methodology. Use when the user mentions 'incident response,' 'security incident,' 'triage,' 'we've been hacked,' 'breach,' 'compromised,' 'malware detected,' 'suspicious activity,' 'IOC,' 'indicators of compromise,' or needs help handling a security event.4---56# Incident Triage — Security Incident Response78Guide rapid triage and initial response to security incidents. Follow NIST SP 800-61 methodology.910## Priorities (in order)11121. Preserve human safety132. Contain the incident to prevent further damage143. Preserve evidence for investigation154. Identify root cause and scope165. Document everything1718## Step 1: Classification1920Determine incident type:21- **Malware:** ransomware, trojan, worm, cryptominer22- **Unauthorized access:** compromised credentials, exploitation23- **Data exfiltration:** data theft, insider threat24- **Denial of service**25- **Web compromise:** defacement, skimming, backdoor26- **Phishing / social engineering**2728Determine severity:29- **Critical:** active data exfiltration, ransomware spreading, critical system compromise30- **High:** confirmed compromise, malware detected, unauthorized access31- **Medium:** suspicious activity, potential indicators, failed attacks32- **Low:** policy violation, reconnaissance detected, likely false positive3334## Step 2: Initial Containment3536Based on type and severity:37- **Network:** block suspicious IPs/domains at firewall38- **Host:** isolate affected system (network disconnect, NOT power off — volatile memory is evidence)39- **Account:** disable compromised accounts, force password resets40- **Application:** disable affected service if safe to do so4142**Critical: Do NOT power off systems.** Volatile memory contains evidence.4344## Step 3: Evidence Preservation4546Capture in order of volatility (most volatile first):4748```bash49# 1. Running processes50ps auxf # Linux51tasklist /v # Windows5253# 2. Network connections54ss -tupn # Linux55netstat -anob # Windows5657# 3. Logged-in users58who -a # Linux59query user # Windows6061# 4. Open files62lsof -nP # Linux6364# 5. System logs65journalctl --since "1 hour ago" # Linux/systemd66```6768If memory forensics tools are available (LiME, WinPmem), capture a memory dump before anything else.6970## Step 4: Initial Analysis7172For each suspicious indicator, document:73- **What:** describe the artifact74- **When:** timestamps in UTC75- **Where:** affected system(s)76- **How:** how it was detected7778Common analysis:79- **Process tree:** look for unusual process names, paths, or parent-child relationships80- **Network indicators:** unusual outbound connections, DNS queries to suspicious domains, beaconing patterns (regular intervals)81- **File indicators:** recently modified files in unusual locations, hidden files, new executables82- **Log analysis:** authentication failures, privilege escalation, service changes, cleared logs83- **Persistence:** crontab, systemd units, registry Run keys, scheduled tasks, startup items8485## Step 5: IOC Extraction8687Extract and document all indicators of compromise:8889| Type | Examples |90|------|---------|91| IP addresses | Source and destination IPs |92| Domains | C2 domains, phishing domains |93| File hashes | MD5 and SHA256 of suspicious files |94| File paths | Malware locations, dropped files |95| Email addresses | Phishing sender addresses |96| URLs | Malicious URLs, C2 endpoints |97| User agents | Unusual or known-malicious user agents |9899## Output Format100101```markdown102# Incident Triage Report103## Incident ID: [ID]104## Date/Time: [UTC]105## Severity: [Critical/High/Medium/Low]106## Classification: [incident type]107## Status: [Triage/Contained/Analyzing/Resolved]108109### Summary110[2-3 sentence overview]111112### Affected Systems113| Hostname | IP | Role | Status |114|----------|-----|------|--------|115116### Timeline117| Time (UTC) | Event | Source | Notes |118|------------|-------|--------|-------|119120### Indicators of Compromise121| Type | Value | Context | Confidence |122|------|-------|---------|------------|123124### Containment Actions Taken125- [ ] [Action and result]126127### Evidence Preserved128| Type | Location | Hash | Notes |129|------|----------|------|-------|130131### Recommended Next Steps1321. [Immediate priority]1332. [Short-term action]1343. [Follow-up investigation]135136### Escalation Checklist137- [ ] Management notified138- [ ] Legal notified (if data breach)139- [ ] Law enforcement (if applicable)140- [ ] Affected parties notified (if data breach)141```142143## Boundaries144145- Focus on defense and containment, not counter-attack146- Preserve evidence — never modify logs or timestamps147- Recommend legal/management escalation for confirmed breaches148- If unsure about a containment action's impact, advise caution and ask149- Never recommend "hacking back" or retaliatory actions150- Refuse requests to cover up incidents or tamper with evidence151152## References153154- NIST SP 800-61r2: Computer Security Incident Handling Guide155- SANS Incident Handler's Handbook156- MITRE ATT&CK Framework