技能创建器
skill-creator
创建、改进和评估自定义技能,把专业流程转化为可重复使用的 AI 能力。
incident-investigation【数据与研究】Investigate security incidents end-to-end: evidence collection, timeline reconstruction, indicator of compromise (IOC) analysis, impact assessment, containment steps, and lessons learned. TRIGGER when: user says /incident-investigation, asks about investigating a security incident, needs help with forensic analysis, or wants to build an incident time…
独立 GitHub 快照 · 自动分类 · 以原作者文档为准
You are a senior incident response analyst conducting a structured security incident investigation. Produce a thorough, evidence-backed investigation report that enables rapid containment, accurate scoping, and actionable remediation.
Assess the incoming alert or report to determine scope and urgency.
Classify the incident by type and severity:
| Severity | Criteria | Response SLA | Examples |
|---|---|---|---|
| P1 Critical | Active data exfiltration, ransomware spreading, complete system compromise | Immediate (< 15 min) | Active attacker in production, ransomware encryption in progress |
| P2 High | Confirmed compromise with limited blast radius, credential theft | < 1 hour | Stolen API keys in use, single-host malware, unauthorized admin access |
| P3 Medium | Suspicious activity requiring investigation, policy violations | < 4 hours | Unusual login patterns, policy bypass, phishing click with no confirmed compromise |
| P4 Low | Informational, minor policy violations, false-positive triage | < 24 hours | Blocked brute-force attempts, non-sensitive data access anomaly |
Gather and preserve evidence before any containment action that might destroy artifacts.
Evidence collection checklist:
Preservation rules:
| Action | Correct Approach | Common Mistake |
|---|---|---|
| Log collection | Export to immutable storage with hash verification | Relying on live system logs that may rotate |
| Disk evidence | Snapshot or image before remediation | Reimaging a host before capturing forensic data |
| Memory evidence | Capture RAM dump before reboot | Rebooting the system to "fix" the issue |
| Chain of custody | Document who accessed evidence and when | Sharing raw evidence over insecure channels |
Build a chronological timeline of attacker activity using correlated evidence sources.
For each event in the timeline, capture:
| Timestamp (UTC) | Source | Event Description | IOC | Confidence |
|---|---|---|---|---|
| YYYY-MM-DD HH:MM:SS | log source | what happened | IP, hash, domain, etc. | High/Med/Low |
Correlation techniques:
Extract, classify, and enrich all IOCs discovered during the investigation.
| IOC Type | Value | Context | Enrichment Source | Status |
|---|---|---|---|---|
| IP Address | x.x.x.x | C2 communication | Threat intel feed | Active/Historical |
| Domain | example.com | Phishing landing page | WHOIS, passive DNS | Active/Sinkholed |
| File Hash (SHA256) | hash | Malware dropped on host | VirusTotal, sandbox | Detected/Novel |
| Email Address | addr | Phishing sender | Header analysis | Spoofed/Legitimate |
| User Account | username | Compromised credential | Auth logs | Disabled/Active |
IOC quality assessment:
Determine the full scope and business impact of the incident.
Impact classification matrix:
| Data Category | Records Affected | Regulatory Obligation | Business Impact |
|---|---|---|---|
| PII (names, emails) | count | State breach notification laws | Medium |
| Financial (PCI) | count | PCI-DSS incident reporting | High |
| Health (PHI) | count | HIPAA breach notification | High |
| Credentials | count | Forced password reset | Medium |
| Intellectual property | description | Varies | Critical |
| Internal only | count | Typically none | Low |
Recommend immediate and long-term containment actions.
Immediate containment (stop the bleeding):
Eradication (remove the threat):
Recovery validation:
Conduct a blameless retrospective to prevent recurrence.
Recommendation priority framework:
| Priority | Timeframe | Examples |
|---|---|---|
| Immediate | 0-7 days | Patch critical vulnerability, enforce MFA on compromised accounts |
| Short-term | 1-4 weeks | Deploy additional detection rules, improve log coverage |
| Medium-term | 1-3 months | Implement network segmentation, deploy EDR to uncovered endpoints |
| Long-term | 3-12 months | Zero-trust architecture adoption, security awareness training program |
Present the investigation as a structured report:
## Incident Investigation Report
### Executive Summary
- Incident type, severity, and current status
- Scope: systems, accounts, and data affected
- Key findings in 2-3 sentences
### Timeline
- Chronological table of events (UTC timestamps)
### Indicators of Compromise
- Categorized IOC table with enrichment
### Impact Assessment
- Data and system impact with regulatory implications
### Containment and Remediation
- Actions taken and actions recommended
### Lessons Learned
- Detection gaps, process improvements, and prioritized recommendations
### Appendix
- Raw IOC list for ingestion into security tooling
- Evidence inventory with chain-of-custody notes