gensecaihq/wazuh-autopilot/containment-playbooks

Claude Code and agent skill by gensecaihq/wazuh-autopilot

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Reference for every Wazuh containment action type — when to use it, required parameters, D3FEND mapping, verification and rollback tools; use when proposing, reviewing or verifying a specific response action.

Install

npx vskill@latest install gensecaihq/wazuh-autopilot/containment-playbooks

SKILL.md

Containment Playbooks

The response-planner proposes these actions with propose_action. Any other agent holding this skill (e.g. responder) hands off to response-planner instead. The platform executor runs the Wazuh MCP tool only after policy and approval. No agent can call the executor tools listed below. Parameters must match what the executor expects or execution fails. Load wazuh-active-response for how Wazuh AR scripts, timeouts and agent-side requirements work.

Action reference

TypeExecutor tool (not callable by agents)params for propose_actionVerify (read-only)RollbackD3FEND
block_ipwazuh_block_ipip_address + (agent_id, or none for fleet-wide)wazuh_check_blocked_ipwazuh_firewall_allow (per agent only)D3-ITF Inbound Traffic Filtering
firewall_dropwazuh_firewall_dropip_address (sent as src_ip), agent_idwazuh_check_blocked_ipwazuh_firewall_allowD3-ITF Inbound Traffic Filtering
host_denywazuh_host_denyip_address (sent as src_ip), agent_idwazuh_check_blocked_ipwazuh_host_allowD3-ITF Inbound Traffic Filtering
isolate_hostwazuh_isolate_hostagent_idwazuh_check_agent_isolationwazuh_unisolate_hostD3-NI Network Isolation
kill_processwazuh_kill_processagent_id + process_id (a PID; names are not accepted)wazuh_check_processnone (process gone)D3-PT Process Termination
disable_userwazuh_disable_useragent_id, usernamewazuh_check_user_statuswazuh_enable_userD3-AL Account Locking
quarantine_filewazuh_quarantine_fileagent_id, file_pathwazuh_check_file_quarantinewazuh_restore_fileD3-FEV File Eviction
active_responsewazuh_active_responseagent_id, command (+ parameters)depends on commanddepends on commandnone
restart_wazuhwazuh_restartagent_id, or target: "manager"check_agent_healthnonenone

Before proposing, check the current state with the read-only tools: is the IP already blocked (wazuh_check_blocked_ip)? Is the agent connected (check_agent_health)? A disconnected agent can't run AR, so propose nothing it can't execute. Say so and escalate.

Outbound C2 blocking maps to D3-OTF Outbound Traffic Filtering; say so in the rationale when the blocked IP is a C2 destination rather than an inbound attacker.

When to use

block_ip — external attacker IP (brute force, exploitation, scanning with success risk). Through the Wazuh MCP Server the block is permanent until removed: there is no timeout. Undoing it needs wazuh_firewall_allow per agent plus an undo script the operator has deployed. Put the intended review time in the rationale. Omitting agent_id blocks fleet-wide, which can't be rolled back automatically, so prefer the affected agent unless the whole internet-facing fleet is under attack. Never block internal infrastructure IPs (DNS, proxies, NAT gateways): it blocks everyone behind them. Beware shared cloud/CDN IPs.

firewall_drop / host_deny — same intent as block_ip on a specific agent; host_deny uses TCP wrappers (/etc/hosts.deny) and affects only wrapper-aware services (e.g. sshd builds with libwrap). Prefer block_ip unless policy requires these.

isolate_host — confirmed compromise with active attacker, lateral movement or C2. Cuts the host off except for the Wazuh manager. High business impact on servers — state the service impact. Capture evidence first (host-forensics finding).

kill_process — single malicious process (miner, reverse shell) on an otherwise healthy host. Evidence first: record PID, path, command line, parent, hash from get_agent_processes (syscollector inventory, so confirm the PID is current). Malware may respawn: pair with persistence removal (human step) or isolation.

disable_user — account confirmed used maliciously. Note whether it's a service / break-glass account and the impact. Credential reset and session revocation are human recovery steps.

quarantine_file — malicious file on disk (web shell, dropped binary). Include the hash in the rationale. Quarantine, never delete.

active_response — custom AR scripts deployed by the operator. Use only when the command name is known to exist in the environment; otherwise don't propose. The default autonomy policy disables this type, so expect a refusal unless an admin enabled it.

restart_wazuh — agent misbehaving (not collecting, stuck), never as a security containment step. Low security value, may lose volatile context.

Rationale checklist

  1. Evidence (alert ids, finding titles).
  2. Why this action and not a less disruptive one.
  3. Business impact and blast radius.
  4. Dependencies / ordering.
  5. Rollback path and verification tool.

Output

  • response-planner: propose_action with exact params above. Others: hand off to

response-planner with the proposed action spelled out.

  • For reviews, add_finding titled Containment review noting parameter problems,

protected-target conflicts, or missing rollback paths. standard_refs: MITRE-D3FEND:<id>, NIST-CSF-2:RS.MI.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
59
Repository forks
16
7-day trend score
0

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/gensecaihq/wazuh-autopilot/containment-playbooks/badge)](https://verified-skill.com/skills/gensecaihq/wazuh-autopilot/containment-playbooks)

Something wrong with this skill or its page? Tell us.