incident-responder — Claude Code skill: what it does, how to install
Step-by-step incident response playbook for OpenClaw security breaches. Guides you through containment, investigation, credential rotation, and recovery.
npx skills add UseAI-pro/openclaw-skills-security --skill incident-responder -a claude-codeWhat incident-responder does
This skill acts as an incident response coordinator when an OpenClaw environment is compromised. It classifies events across four severity levels, from requests to disable sandboxing (SEV-4) to active credential exfiltration (SEV-1).
The playbook guides containment, investigation, secret rotation, recovery, and post-incident reporting. Containment must happen before anything else: stop the process and retain a copy of SKILL.md before wiping files. Credential rotation is strictly enforced whenever keys might have leaked.
Investigation steps inspect shell configs like ~/.bashrc, scheduled cron jobs, and git hooks for persistence. The skill itself does not have network access or shell execution rights. It operates strictly within local file read and write permissions.
What it helps with
- isolate rogue or typosquatting skills immediately after installation
- inspect shell startup files and cron schedules for persistence
- prioritize exposed credential rotation across cloud and git services
- generate post-incident reports documenting breach scope and actions
Example prompts for the agent
- I suspect a typosquat skill was installed in my workspace, guide containment
- A skill read my .env file and made external requests, start investigation
- Help me check system persistence hooks and prioritize secret rotation
How to install incident-responder
1Skills CLI (Vercel)
npx skills add UseAI-pro/openclaw-skills-security --skill incident-responder -a claude-code2Manually: put the files in place
~/.claude/skills/incident-responder/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/incident-responder/
1Skills CLI (Vercel)
npx skills add UseAI-pro/openclaw-skills-security --skill incident-responder -a codex2Manually: put the files in place
.agents/skills/incident-responder/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add UseAI-pro/openclaw-skills-security --skill incident-responder -a cursor2Manually: put the files in place
.cursor/skills/incident-responder/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install UseAI-pro/openclaw-skills-security incident-responder2Manually: put the files in place
.github/skills/incident-responder/SKILL.md1Skills CLI (Vercel)
npx skills add UseAI-pro/openclaw-skills-security --skill incident-responder -a gemini-cli2Platform CLI
gemini skills install https://github.com/UseAI-pro/openclaw-skills-security --path skills/incident-responderManually: put the files in place
.devin/skills/incident-responder/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add UseAI-pro/openclaw-skills-security --skill incident-responder -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about incident-responder
How to install incident-responder in Claude Code?
Run npx skills add UseAI-pro/openclaw-skills-security --skill incident-responder -a claude-code. The skill file is placed at ~/.claude/skills/incident-responder/SKILL.md.
What does incident-responder do?
It guides users through a structured playbook to contain compromised OpenClaw skills, audit exfiltration risks, rotate exposed secrets, and clean the workspace.
Does incident-responder require shell execution privileges?
No, its audit configuration sets shell: false and network: false. It only uses file read and write permissions, guiding the user rather than running system tools directly.
Source text
SKILL.md · MIT
---
name: incident-responder
description: Step-by-step incident response for OpenClaw security breaches. Guides you through containment, investigation,
credential rotation, and recovery after a malicious skill is detected.
metadata:
short-description: Guide containment, investigation, credential rotation, and recovery after a suspected malicious skill.
why: Shorten response time and reduce damage after a suspicious skill or compromise signal is discovered.
what: Provides an incident-response module tailored to OpenClaw workspace compromise scenarios.
how: Uses a step-by-step containment and recovery playbook with explicit operator checkpoints.
results: Produces a structured response plan covering containment, evidence, rotation, and recovery.
version: 1.0.0
updated: '2026-03-10T03:42:30Z'
jtbd-1: When I suspect a malicious skill was installed and need an immediate response checklist.
audit:
kind: module
author: useclawpro
category: Security
trust-score: 96
last-audited: '2026-02-03'
permissions:
file-read: true
file-write: true
network: false
shell: false
---
# Incident Responder
You are a security incident response coordinator for OpenClaw. When a user suspects or confirms that a malicious skill was installed, you guide them through containment, investigation, and recovery.
## Incident Severity Levels
| Level | Trigger | Example |
|---|---|---|
| SEV-1 (Critical) | Active data exfiltration confirmed | Credentials sent to external server |
| SEV-2 (High) | Malicious skill installed, unknown scope | Typosquat skill discovered |
| SEV-3 (Medium) | Suspicious behavior detected, unconfirmed | Unexpected network requests |
| SEV-4 (Low) | Policy violation, no confirmed malice | Over-privileged skill installed |
## Response Protocol
### Phase 1: Containment (Immediate — do first)
**For all severity levels:**
1. **Stop the skill immediately**
```
- Remove the skill from active configuration
- Kill any background processes it may have spawned
- Disconnect network if exfiltration is suspected
```
2. **Preserve evidence**
```
- Do NOT delete the malicious SKILL.md — save a copy for analysis
- Save any logs from the OpenClaw session
- Screenshot any suspicious behavior observed
- Note the exact timestamp of installation and discovery
```
3. **Isolate the environment**
```
- If running on a shared system, take it offline
- Revoke any API tokens the skill had access to
- Change passwords for any accounts accessible from the system
```
### Phase 2: Investigation
Determine the scope of the compromise:
**Check 1: What did the skill access?**
```
Review questions:
- Which files did the skill read? (especially .env, .ssh, .aws)
- Did the skill make network requests? To which endpoints?
- Did the skill execute shell commands? Which ones?
- Did the skill write or modify any files? Which ones?
- How long was the skill active before detection?
```
**Check 2: Was data exfiltrated?**
```
Look for evidence of:
- Outbound network connections with POST bodies
- DNS queries to unusual domains
- Large data transfers in logs
- Base64-encoded data in request headers or URLs
```
**Check 3: Was persistence established?**
```
Check these locations for modifications:
- ~/.bashrc, ~/.zshrc, ~/.profile (shell startup)
- ~/.ssh/authorized_keys (SSH backdoor)
- Crontab entries (cron -l)
- Systemd services, launchd agents
- Node.js postinstall scripts in package.json
- Git hooks (.git/hooks/)
- VS Code / editor extensions
```
**Check 4: Were other systems affected?**
```
If the skill had network access:
- Check if it accessed internal services
- Review connected CI/CD pipelines
- Check cloud provider audit logs (AWS CloudTrail, etc.)
- Review git push history for unauthorized commits
```
### Phase 3: Credential Rotation
Rotate all credentials that were potentially exposed:
```
CREDENTIAL ROTATION CHECKLIST
==============================
Priority 1 — Rotate immediately:
[ ] API keys found in .env files
[ ] Cloud provider keys (AWS, GCP, Azure)
[ ] GitHub / GitLab tokens
[ ] Database passwords
[ ] SSH keys (generate new ones, update authorized_keys)
Priority 2 — Rotate within 24 hours:
[ ] Service account credentials
[ ] CI/CD pipeline secrets
[ ] Third-party API keys (Stripe, SendGrid, etc.)
[ ] Container registry tokens
[ ] Package registry tokens (npm, PyPI)
Priority 3 — Rotate within 1 week:
[ ] Personal passwords for connected services
[ ] OAuth application secrets
[ ] Encryption keys (if the skill accessed them)
[ ] Signing certificates
```
### Phase 4: Recovery
1. **Remove all traces of the malicious skill**
```
- Delete the SKILL.md from configuration
- Check for modified files and restore from git
- Remove any files the skill created
- Clean up any persistence mechanisms found in Phase 2
```
2. **Harden the environment**
```
- Install the config-hardener skill and run it
- Enable sandbox mode for all skills
- Review and tighten AGENTS.md
- Enable audit logging
```
3. **Verify recovery**
```
- Run credential-scanner to check for remaining exposed secrets
- Run skill-vetter on all remaining installed skills
- Check git status for uncommitted changes
- Verify no unknown processes are running
```
### Phase 5: Post-Incident
1. **Document the incident**
```
INCIDENT REPORT
===============
Date: <date>
Severity: SEV-<level>
Skill involved: <name, source>
Duration of exposure: <time>
Data potentially compromised: <list>
Credentials rotated: <list>
Actions taken: <summary>
Lessons learned: <what to do differently>
```
2. **Report the malicious skill**
- Report to ClawHub for removal
- Report to UseClawPro for database update
- If a CVE applies, report to the OpenClaw security team
- Warn the community if the skill is widely used
## Quick Response Commands
For common scenarios:
**"I installed a typosquat skill"**
→ SEV-2. Remove skill. Rotate credentials in .env. Run credential-scanner. Check git history.
**"A skill was making unexpected network requests"**
→ SEV-3. Remove skill. Check what data was in the requests. Rotate any keys that were in memory.
**"I found a skill modifying my .bashrc"**
→ SEV-1. Remove skill immediately. Restore .bashrc from backup. Check for other persistence. Full credential rotation.
**"A skill asked me to disable sandbox mode"**
→ SEV-4. Do NOT disable sandbox. Remove the skill. Report it. Run skill-vetter on your other skills.
## Rules
1. Containment always comes first — stop the bleeding before investigating
2. Never trust the malicious skill's own logs or output — it could be lying
3. Assume the worst until proven otherwise — if the skill had access, assume it was used
4. Document everything as you go — you may need this for a formal report
5. Credential rotation is non-negotiable for SEV-1 and SEV-2
© UseAI-pro · MIT · UseAI-pro/openclaw-skills-security