Logo: Containment Playbooks

Containment Playbooks

Organisatioun
gensecaihq
containment-playbooks

Referenz fir all Zort vu Wazuh-Isolatiounsmoossnam — wéini se ze benotzen ass, wéi eng Parameter néideg sinn, d’D3FEND-Zouuerdnung souwéi Tools fir d’Verifizéierung an d’Réckgängigmachen. Benotzt dëse Skill, wann Dir eng bestëmmte Reaktiounsmoossnam proposéiert, iwwerpréift oder verifizéiert.

Iwwersiicht

Editeurgensecaihq
RepositoryWazuh-Autopilot
Skill-Nummcontainment-playbooks
Stären
61
Forks
15
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    gensecaihq huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Containment Playbooks an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/gensecaihq/Wazuh-Autopilot/tree/main/backend/app/skills/containment-playbooks
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-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 nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Containment Playbooks an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Containment Playbooks automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Containment Playbooks net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

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.

Heefeg gestallte Froen

Wat mécht de KI-Skill Containment Playbooks?

Referenz fir all Zort vu Wazuh-Isolatiounsmoossnam — wéini se ze benotzen ass, wéi eng Parameter néideg sinn, d’D3FEND-Zouuerdnung souwéi Tools fir d’Verifizéierung an d’Réckgängigmachen. Benotzt dëse Skill, wann Dir eng bestëmmte Reaktiounsmoossnam proposéiert, iwwerpréift oder verifizéiert.

Firwat Containment Playbooks op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Containment Playbooks besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Containment Playbooks an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/gensecaihq/Wazuh-Autopilot/tree/main/backend/app/skills/containment-playbooks an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Containment Playbooks benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Containment Playbooks benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Containment Playbooks domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Containment Playbooks gratis?

Jo. gensecaihq huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇