Logo van Containment Playbooks

Containment Playbooks

Organisatie
gensecaihq
containment-playbooks

Naslagwerk voor elk type Wazuh-containmentactie: wanneer je de actie gebruikt, welke parameters vereist zijn, de D3FEND-koppeling en welke verificatie- en rollbacktools beschikbaar zijn. Gebruik deze skill bij het voorstellen, beoordelen of verifiëren van een specifieke responsactie.

Overzicht

Uitgevergensecaihq
RepositoryWazuh-Autopilot
Skillnaamcontainment-playbooks
Sterren
61
Forks
15
Meegeleverde bestanden
Alleen instructies
LicentieMIT
Links
  • Instructies in Markdown

    Het model laadt het bestand SKILL.md alleen als dat nodig is. Dat kost dus alleen tokens als een verzoek daadwerkelijk bij de skill past.

  • Werkt met elk LLM

    AI-skills bestaan uit instructies in gewone Markdown, niet uit aanbiederspecifieke code. Daardoor werken ze met GPT, Claude, Gemini, Grok of een lokaal model.

  • Compleet zonder extra bestanden

    Alles wat het model nodig heeft, staat in de instructies — geen extra bestanden om te synchroniseren.

  • Open source

    Gepubliceerd door gensecaihq op GitHub. Bekijk de bronbestanden voordat je de skill installeert.

Installatie

Installeer de AI-skill Containment Playbooks in TypingMind om deze met elk LLM te gebruiken, of voeg de skill toe aan een andere agent die SKILL.md kan lezen.

1

Installeren in TypingMind

TypingMind installeert een skill rechtstreeks vanuit de GitHub-map. De app leest SKILL.md, bundelt de bijbehorende bestanden en slaat het resultaat lokaal op.

  1. Open de app en ga naar Plug-ins → Skills.
  2. Kies "Installeren via GitHub".
  3. Plak de onderstaande URL van de skillmap en bevestig.
    https://github.com/gensecaihq/Wazuh-Autopilot/tree/main/backend/app/skills/containment-playbooks
  4. Schakel de skill in voor elke chat waarin je de skill wilt kunnen gebruiken.
Plug-ins → Skills → Skill toevoegen → Via GitHub-URL. Plak vervolgens de map-URL en druk op Doorgaan.
2

Installeren in een andere agent

Elke agent die het Agent Skills-formaat kan lezen, kan deze skill gebruiken — kopieer de map naar de skillmap van die agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/gensecaihq/Wazuh-Autopilot.git /tmp/Wazuh-Autopilot
mkdir -p .claude/skills
cp -r /tmp/Wazuh-Autopilot/backend/app/skills/containment-playbooks .claude/skills/containment-playbooks
Start Claude Code na het kopiëren opnieuw op, zodat de nieuwe skill wordt herkend.

Gebruik deze skill in TypingMind

Schakel Containment Playbooks in voor een chat naar keuze in TypingMind en het model doet de rest. De naam en beschrijving staan in de systeemprompt. Zodra een verzoek bij de skill past, laadt het model zelf de volledige instructies. Je hoeft de skill nooit handmatig aan te roepen. Pas als het model de skill daadwerkelijk gebruikt, kost dat tokens.

Het model laadt Containment Playbooks automatisch zodra een verzoek erbij past.

Werkt met elk AI-model

AI-skills zijn gewone Markdown-instructies in plaats van aanbiederspecifieke code. Daardoor is Containment Playbooks niet gebonden aan het model waarvoor de skill is geschreven. Installeer de skill één keer in TypingMind en gebruik deze met GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama of een lokaal model dat je zelf draait — allemaal met je eigen API-sleutels.

  • Alleen geladen wanneer nodig

    De systeemprompt bevat alleen de naam en beschrijving. De instructies worden bij het eerste bijpassende verzoek opgehaald, dus een ongebruikte skill kost niets.

  • Wissel van model tijdens een chat

    Omdat de skill uit instructies bestaat en niet uit code, blijft deze werken als je van model wisselt — het volgende model leest hetzelfde SKILL.md-bestand.

Skillinstructies

Dit is de inhoud van SKILL.md die het model laadt. Lees deze vóór de installatie — een skill bestaat uit instructies die je model zal volgen.

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.

Veelgestelde vragen

Wat doet de AI-skill Containment Playbooks?

Naslagwerk voor elk type Wazuh-containmentactie: wanneer je de actie gebruikt, welke parameters vereist zijn, de D3FEND-koppeling en welke verificatie- en rollbacktools beschikbaar zijn. Gebruik deze skill bij het voorstellen, beoordelen of verifiëren van een specifieke responsactie.

Waarom Containment Playbooks gebruiken in TypingMind?

Omdat je deze skill één keer installeert en met elk model kunt gebruiken. Containment Playbooks bestaat uit gewone Markdown in plaats van aanbiederspecifieke code. Dezelfde skill werkt dus met GPT-5, Claude, Gemini, Grok of een lokaal model. Ook als je midden in een chat van model wisselt, blijft de skill werken. TypingMind werkt met je eigen API-sleutels, dus je betaalt aanbieders rechtstreeks in plaats van een abonnement per gebruikersplek af te sluiten. Je skills en chats blijven in je eigen opslag.

Hoe installeer ik Containment Playbooks in TypingMind?

Open Plug-ins → Skills → Installeren vanaf GitHub in TypingMind en plak https://github.com/gensecaihq/Wazuh-Autopilot/tree/main/backend/app/skills/containment-playbooks. TypingMind leest het bestand SKILL.md en installeert het als een skill die je per chat kunt inschakelen.

Welke AI-modellen kunnen Containment Playbooks gebruiken?

Elk model dat je in TypingMind koppelt. AI-skills bestaan uit gewone Markdown-instructies in plaats van aanbiederspecifieke code. GPT, Claude, Gemini, Grok en lokale modellen kunnen deze skill dus allemaal laden wanneer een verzoek erbij past.

Hoeveel AI-modellen kan ik met Containment Playbooks gebruiken?

Zoveel als je wilt. Je kunt Containment Playbooks gebruiken met elk model dat skills ondersteunt, zoals GPT, Claude, Gemini, Grok, DeepSeek, Mistral of Llama. Allemaal in TypingMind met je eigen API-sleutels.

Is de AI-skill Containment Playbooks gratis?

Ja. Deze skill is door gensecaihq op GitHub gepubliceerd onder de licentie MIT. Je betaalt alleen je eigen AI-aanbieder voor de tokens die je gebruikt.

Wat zijn AI-skills?

Een AI-skill is een herbruikbare bundel instructies die een AI-model leert hoe het één specifieke taak moet uitvoeren. De skill volgt het open Agent Skills-formaat: het bestand SKILL.md bevat de naam en beschrijving van de skill. Daarnaast kan de skill scripts, sjablonen of referentiebestanden bevatten die het model nodig heeft. Het model leest de instructies alleen als je verzoek bij de skill past. Een geïnstalleerde skill kost dus niets zolang deze niet wordt gebruikt.

Waarin verschillen AI-skills van plug-ins of MCP-servers?

Een plug-in of MCP-server geeft een model nieuwe tools om aan te roepen: code die ergens wordt uitgevoerd en een resultaat teruggeeft. Een AI-skill geeft het model juist kennis en een werkwijze: hoe het een taak moet aanpakken, welke stappen het moet volgen en hoe goede uitvoer eruitziet. Skills bestaan uit gewone Markdown en hebben dus geen server, API-sleutel of runtime nodig. Ze werken met elk model.

Bekijk alles

Maak nu je eigen AI-werkruimte

Schrijf je in voor onze nieuwsbrief en blijf op de hoogte van nieuwe functies en toekomstige weggeefacties 👇