Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Classify and prioritize security incidents using structured IR playbooks to determine severity, assign response teams, and initiate appropriate response procedures.
.claude/skills/triaging-security-incident-with-ir-playbook/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | — | — |
| case-22 | ✗→✓ | ▲ Improved | — | — |
| case-14 | ✗→✓ | ▲ Improved | — | — |
| case-01 | ✗→✓ | ▲ Improved | — | — |
| case-13 | ✗→✓ | ▲ Improved | — | — |
bash# Query Splunk for new critical/high severity alerts index=notable status=new severity IN ("critical","high") | table _time, rule_name, src, dest, severity, description | sort -_time # Query TheHive for new cases curl -s -H "Authorization: Bearer $THEHIVE_API_KEY" \ "https://thehive.local/api/v1/query?name=list-alerts" \ -H "Content-Type: application/json" \ -d '{"query":[{"_name":"listAlert"},{"_name":"filter","_field":"status","_value":"New"}]}' # Acknowledge alert in SIEM to prevent duplicate triage curl -X POST "https://splunk.local:8089/services/notable_update" \ -H "Authorization: Bearer $SPLUNK_TOKEN" \ -d "ruleUIDs=$RULE_UID&status=1&comment=Triage+initiated+by+analyst"
bash# Enrich source IP with VirusTotal curl -s "https://www.virustotal.com/api/v3/ip_addresses/$SRC_IP" \ -H "x-apikey: $VT_API_KEY" | jq '.data.attributes.last_analysis_stats' # Check IP reputation with AbuseIPDB curl -s "https://api.abuseipdb.com/api/v2/check?ipAddress=$SRC_IP&maxAgeInDays=90" \ -H "Key: $ABUSEIPDB_KEY" -H "Accept: application/json" | jq '.data' # Enrich file hash with threat intelligence curl -s "https://www.virustotal.com/api/v3/files/$FILE_HASH" \ -H "x-apikey: $VT_API_KEY" | jq '.data.attributes.last_analysis_stats' # Query internal asset database for affected systems curl -s "https://cmdb.local/api/assets?ip=$DEST_IP" \ -H "Authorization: Bearer $CMDB_TOKEN" | jq '.asset_criticality, .owner, .environment'
bash# Map alert to incident category using playbook lookup # Categories: Malware, Phishing, Unauthorized Access, Data Exfiltration, # DoS/DDoS, Insider Threat, Ransomware, Account Compromise, Web Attack # Check if alert matches known playbook trigger conditions grep -i "$ALERT_SIGNATURE" /opt/ir/playbooks/trigger_conditions.yaml # Determine incident type from MITRE ATT&CK technique curl -s "https://attack.mitre.org/api/techniques/$TECHNIQUE_ID" | jq '.name, .tactic'
bash# Severity matrix factors: # 1. Asset criticality (Critical/High/Medium/Low) # 2. Data sensitivity (PII/PHI/PCI/Confidential/Public) # 3. Number of affected systems # 4. Active vs historical threat # 5. Confirmed vs suspected compromise # Automated severity calculation python3 -c " severity_score = 0 # Asset criticality: Critical=4, High=3, Medium=2, Low=1 severity_score += 4 # Critical server # Data sensitivity: PII/PHI=4, PCI=3, Confidential=2, Public=1 severity_score += 3 # PCI data # Scope: Enterprise=4, Department=3, Single system=2, Single user=1 severity_score += 2 # Single system # Threat status: Active=4, Recent=3, Historical=2, Potential=1 severity_score += 4 # Active threat if severity_score >= 12: print('CRITICAL - P1') elif severity_score >= 9: print('HIGH - P2') elif severity_score >= 6: print('MEDIUM - P3') else: print('LOW - P4') print(f'Score: {severity_score}/16') "
bash# Load appropriate playbook based on incident type cat /opt/ir/playbooks/ransomware_playbook.yaml cat /opt/ir/playbooks/phishing_playbook.yaml cat /opt/ir/playbooks/unauthorized_access_playbook.yaml # Create incident ticket in TheHive curl -X POST "https://thehive.local/api/v1/case" \ -H "Authorization: Bearer $THEHIVE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "title": "IR-2024-XXX: [Incident Type] - [Brief Description]", "description": "Triage summary and initial findings", "severity": 3, "tlp": 2, "pap": 2, "tags": ["ransomware", "triage-complete"], "customFields": { "playbook": {"string": "ransomware_v2"}, "affected_systems": {"integer": 5} } }'
bash# Check on-call schedule curl -s "https://pagerduty.com/api/v2/oncalls?schedule_ids[]=$SCHEDULE_ID" \ -H "Authorization: Token token=$PD_TOKEN" | jq '.oncalls[].user.summary' # Page incident responders based on severity # P1/Critical: Page IR lead + senior analysts + CISO # P2/High: Page IR lead + available analysts # P3/Medium: Assign to next available analyst # P4/Low: Queue for business hours processing curl -X POST "https://events.pagerduty.com/v2/enqueue" \ -H "Content-Type: application/json" \ -d '{ "routing_key": "'$PD_ROUTING_KEY'", "event_action": "trigger", "payload": { "summary": "P1 Security Incident: Ransomware detected on PROD-DB-01", "severity": "critical", "source": "SIEM-Splunk", "custom_details": {"incident_id": "IR-2024-042", "playbook": "ransomware_v2"} } }'
bash# Update incident ticket with triage summary curl -X PATCH "https://thehive.local/api/v1/case/$CASE_ID" \ -H "Authorization: Bearer $THEHIVE_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "status": "InProgress", "customFields": { "triage_analyst": {"string": "analyst_name"}, "triage_time": {"date": '$(date +%s000)'}, "severity_justification": {"string": "Critical asset + active threat + PCI data"} } }'
| Concept | Description | |---------|-------------| | True Positive | Alert correctly identifying a real security incident | | False Positive | Alert incorrectly flagging benign activity as malicious | | Severity Classification | Ranking incident priority based on impact and urgency | | Playbook Selection | Choosing the appropriate response procedure based on incident type | | IOC Enrichment | Adding context to indicators from threat intelligence sources | | Escalation Threshold | Criteria triggering escalation to higher severity or management | | Triage SLA | Time target for initial assessment (typically 15-30 min for critical) |
| Tool | Purpose | |------|---------| | Splunk/Elastic/QRadar | SIEM alert correlation and querying | | TheHive/SIRP | Incident case management and playbook tracking | | VirusTotal/AbuseIPDB | IOC reputation and enrichment | | PagerDuty/OpsGenie | On-call management and alerting | | MITRE ATT&CK | Technique classification and mapping | | Cortex XSOAR | SOAR platform for automated triage workflows |
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-04 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-02 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-05 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-20 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-22 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-08 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-14 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-15 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-01 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-13 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-24 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-06 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-03 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-11 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-19 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-21 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-12 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-16 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-07 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-09 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-10 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-17 | fail→pass | — | — | — | — | — | — | — | — | — | — | — | — |
case-18 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
case-23 | fail→fail | — | — | — | — | — | — | — | — | — | — | — | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 24 cases were attempted, and 23 counted toward the lift figure. The other 1 produced results that are not comparable between the two arms, so they are excluded from the headline rather than averaged into it. The headline lift of +33 percentage points is the difference between those two pass rates over the 23 comparable cases.
The per-case answers from this run were removed by the retention sweep, so the case table below shows the verdicts without the text either arm produced. The counts above were recorded at the time and are unaffected. Answers are now kept for 180 days.
Other measured skills in the registry, with their headline benchmark lift.