wazuh_run_active_response
Trigger active-response commands on Wazuh agents to block IPs, quarantine hosts, or run custom scripts. Requires confirmation for safety.
Instructions
⚠️ DESTRUCTIVE: Trigger an active-response command on a Wazuh agent. Can block IPs via firewall, quarantine hosts, run custom scripts, etc.
🔒 SAFETY: By default, this tool DOES NOT execute anything. It returns a confirmation prompt showing exactly what will happen. You MUST call it again with confirm=True and the correct confirmation_token to execute.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| agent_id | Yes | Target agent ID (e.g., '001') | |
| command | Yes | Active response command. Common values: - 'firewall-drop': Block an IP via iptables/ firewall - 'host-deny': Add IP to /etc/hosts.deny - 'restart-wazuh': Restart the Wazuh agent - Custom scripts defined in ossec.conf | |
| arguments | No | Command arguments as a JSON array string, e.g., '["srcip", "10.0.0.50", "-"]' for firewall-drop | |
| confirm | No | 🔒 SAFETY: Set to True ONLY after reviewing the confirmation prompt. You must also provide the confirmation_token. | |
| confirmation_token | No | 🔒 SAFETY: The token from the confirmation prompt. Required when confirm=True. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |