respond-malware
Skill127 starsChanged 4 months agoApache-2.0View on GitHub
Respond to a malware incident following PICERL methodology. Use when malware is detected on endpoints. Orchestrates triage, containment, eradication, and recovery. Works with triage-malware skill for analysis.
In this repository32 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyze-content-gapsSkill
- audit-contentSkill
- check-duplicatesSkill
- close-case-artifactSkill
- cluster-documentsSkill
- confirm-actionSkill
- correlate-iocSkill
- deep-dive-iocSkill
- design-metadata-schemaSkill
- document-in-caseSkill
- enrich-iocSkill
- find-relevant-caseSkill
- generate-reportSkill
- generate-sitemapSkill
- generate-taxonomySkill
- generate-thesaurusSkill
- hunt-aptSkill
- hunt-credential-accessSkill
- hunt-iocSkill
- hunt-lateral-movementSkill
- hunt-threatSkill
- inventory-contentSkill
- pivot-on-iocSkill
- respond-compromised-accountSkill
- respond-phishingSkill
- respond-ransomwareSkill
- triage-alertSkill
- triage-malwareSkill
- triage-suspicious-loginSkill
- full-alert-triageSkill
- full-investigationSkill
The file
We split this skill into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 66
Use /triage-alert with CASE_ID for initial assessment.
- Distinctive: line 76
If file hash is primary indicator:
- Very specific: line 93
Use /enrich-ioc for each.
- Very specific: line 102
Use /document-in-case with findings.
- Distinctive: line 115
If confirmed, execute isolation via EDR.
- Distinctive: line 124
If confirmed, implement blocks.
- Distinctive: line 128
If compromised user involved:
- Very specific: line 142
Use /document-in-case with containment status.
- Very specific: line 173
Use /document-in-case with eradication results.
- Very specific: line 210
Use /document-in-case with recovery status.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Malware Incident Response Skill
Structured workflow for responding to suspected malware incidents using the PICERL model.
Inputs
CASE_ID- SOAR case ID for the incidentALERT_GROUP_IDENTIFIERS- Alert group identifiers from SOARINITIAL_INDICATORS- Details from initial alerts:- File hashes
- IPs/domains
- Affected hosts
- Affected users
Required Outputs
After completing each phase, you MUST report these outputs:
Identification Phase
| Output | Description |
AFFECTED_HOSTS | Hosts with confirmed malware |
MALWARE_SAMPLES | File hashes requiring triage/analysis |
MALWARE_IOCS | Network indicators (IPs, domains, URLs) |
AFFECTED_USERS | Users who executed/accessed malware |
Containment Phase
| Output | Description |
ISOLATED_HOSTS | Hosts successfully isolated from network |
BLOCKED_IOCS | IOCs blocked at firewall/proxy |
Eradication Phase
| Output | Description |
CLEANED_HOSTS | Hosts with malware removed |
REMOVED_PERSISTENCE | Persistence mechanisms removed |
Recovery Phase
| Output | Description |
RESTORED_HOSTS | Hosts restored to operational state |
VALIDATION_STATUS | Post-recovery scan results |
PICERL Phases
Phase 2: Identification
Step 2.1: Initial Triage
Use /triage-alert with CASE_ID for initial assessment.
secops-soar.get_case_full_details(case_id=CASE_ID)Use /check-duplicates.
Step 2.2: Malware Triage
If file hash is primary indicator:
Use /triage-malware:
/triage-malware FILE_HASH=abc123 CASE_ID=1234This provides:
- GTI classification
- Behavioral indicators
- Network IOCs
- Affected hosts/users
Step 2.3: IOC Enrichment
For other key IOCs (IPs, domains, URLs):
Use /enrich-ioc for each.
Step 2.4: Initial Scope Assessment
Compile:
AFFECTED_ENDPOINTS- Hosts with malwareAFFECTED_USERS- Users who executed/accessedMALICIOUS_IOCs- Network indicators
Use /document-in-case with findings.
Phase 3: Containment
Step 3.1: Endpoint Isolation
For each endpoint in AFFECTED_ENDPOINTS:
Use /confirm-action:
"Isolate endpoint [HOSTNAME] from network?"
If confirmed, execute isolation via EDR.
Step 3.2: Network IOC Containment
For each IOC in MALICIOUS_IOCs:
Use /confirm-action:
"Block [IOC_TYPE] [VALUE] at firewall/proxy?"
If confirmed, implement blocks.
Step 3.3: User Account Containment
If compromised user involved:
Trigger /respond-compromised-account
Step 3.4: Verify Containment
Monitor for continued activity:
secops-mcp.search_security_events(
text="Activity from contained IOCs or endpoints",
hours_back=1
)Use /document-in-case with containment status.
Phase 4: Eradication
Step 4.1: Identify Persistence
From /triage-malware results and GTI behavior summary, identify:
- Scheduled tasks
- Services installed
- Registry modifications
- Dropped files
- WMI subscriptions
Step 4.2: Remove Malware & Persistence
(Requires EDR/endpoint tools)
Execute removal plan:
- Terminate malicious processes
- Delete malware files
- Remove persistence mechanisms
- Clear malicious registry keys
Step 4.3: Scan for Residual Infection
(Requires EDR/AV tools)
Perform thorough scans post-eradication.
Use /document-in-case with eradication results.
Phase 5: Recovery
Step 5.1: Determine Recovery Strategy
Based on severity and admin rights involved:
| Factor | Rebuild | Clean |
| Admin rights compromised | ✅ | ❌ |
| Unknown malware | ✅ | ❌ |
| Known commodity malware | Consider | ✅ |
| High confidence eradication | Consider | ✅ |
Step 5.2: Execute Recovery
(Involves IT Ops/System Admins)
- Rebuild from known-good image OR clean existing
- Apply all patches before reconnecting
- Perform vulnerability scan
- Restore data from clean backups if needed
Step 5.3: Monitor Recovered Systems
Closely monitor for 24-72 hours post-recovery:
- Watch for re-infection indicators
- Monitor for unusual behavior
- Verify normal operations
Step 5.4: Lift Containment
Gradually remove isolation once confidence is high.
Use /document-in-case with recovery status.
Phase 6: Lessons Learned
Use /generate-report with:
- Malware classification
- Entry vector
- Spread/impact
- Response timeline
- Recovery actions
- Recommendations
Conduct review:
- How did malware enter?
- Was detection timely?
- Were containment actions effective?
- What detections should be added?
Critical Warnings
- DO NOT skip endpoint isolation for confirmed infections
- MUST identify malware strain/behavior
- DO NOT restore without verifying eradication
- ALWAYS verify scan results before reconnecting
Malware Response Quick Reference
| Phase | Key Question | Action |
| Identification | What is it? | /triage-malware |
| Identification | Where is it? | SIEM search |
| Containment | Stop the spread | Isolate endpoints |
| Containment | Block C2 | Block network IOCs |
| Eradication | Remove it | EDR remediation |
| Recovery | Restore ops | Rebuild or clean |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

