ranilojohn/claude-blue/defensive-tool-wazuh
Claude Code and agent skill by ranilojohn/claude-blue
- community
Checking that the SKILL.md file is still in the repository.
Wazuh deployment hardening and safe operation from official documentation and advisories: current 4.14.x line (4.14.9 observed; 5.0 in beta), patch-critical CVEs (CVE-2025-24016 API deserialization RCE exploited by Mirai and in CISA KEV, CVE-2026-30893 cluster path traversal, CVE-2026-34150 analysisd unauthenticated DoS), default credential changes (OVA wazuh/wazuh-wui, indexer admin/kibanaserver), API hardening (host binding, trusted certs, rate limiting, login attempt limits, RBAC), certifica…
Install
npx vskill@latest install ranilojohn/claude-blue/defensive-tool-wazuhSKILL.md
The same SKILL.md was published earlier as ranilojohn/claude-blue/defensive-tool-wazuh.
Wazuh (Deployment Hardening & Operations)
Detection content and queries live in defensive-wazuh. This skill covers running Wazuh safely: Wazuh servers have been mass-exploited (Mirai via CVE-2025-24016), so the SIEM itself must be patched, hardened, and kept off the internet. Latest observed release: 4.14.9 (2026-10-23); Wazuh 5.0 is in beta.
Quick Workflow
- Upgrade to the current 4.14.x (≥ 4.14.5 minimum for 2026 CVEs) — all components same version
- Change every default password; replace self-signed certs
- Restrict ports by source; never expose API (55000), indexer (9200/9300), or cluster (1516) to the internet
- Secure agent enrollment (password and/or certificate verification)
- Keep remote commands disabled; scope active response
- Configure retention (ISM), backups, and audit of admin actions
1. Security Advisories That Matter
| CVE | Component | Affected | Fixed | Notes | |
|---|---|---|---|---|---|
| CVE-2025-24016 (CVSS 9.9) | Server API / DistributedAPI unsafe deserialization → RCE | 4.4.0–4.9.0 | 4.9.1 | Exploited by Mirai variants from March 2025; CISA KEV June 10, 2025; requires API access (compromised dashboard/server/agent context) | |
| CVE-2026-30893 (CVSS 9.9) | Cluster synchronization extraction path traversal → code execution | 4.4.0 – < 4.14.4 | 4.14.4 | Requires cluster peer + cluster mode; PoC public (advisory April 29, 2026); ~3,500 exposed servers counted May 2026 | |
| CVE-2026-34150 (CVSS 7.5) | wazuh-analysisd heap overflow → unauthenticated DoS (alert processing halts) | ≤ 4.14.4 incl. wazuh-docker | 4.14.5 | Network-reachable |
Subscribe to github.com/wazuh/wazuh security advisories; treat the manager like any internet-exposed critical server (emergency patch SLA).
2. Ports & Exposure
| Port | Service | Allowed sources | |
|---|---|---|---|
| 1514/TCP | Agent communication | Agent networks (internet only if remote agents — prefer VPN/ZTNA or dedicated hardened worker) | |
| 1515/TCP | Agent enrollment (authd) | Agent networks during enrollment; disable or restrict when not enrolling | |
| 1516/TCP | Cluster | Manager nodes only | |
| 55000/TCP | Server API | Dashboard host + admin/automation hosts only | |
| 9200/TCP | Indexer REST | Manager/dashboard/indexer nodes only | |
| 9300/TCP | Indexer cluster transport | Indexer nodes only | |
| 443/TCP | Dashboard | Analyst networks via SSO/VPN | |
| 514/UDP/TCP | Syslog collection (optional) | Specific devices |
3. Credentials & Certificates
- OVA defaults
wazuh:wazuh(API) andwazuh-wui:wazuh-wui; indexeradmin,kibanaserver— change all; changingwazuh-wuirequires updating/usr/share/wazuh-dashboard/data/wazuh/config/wazuh.yml - Docker/Kubernetes: change secrets in compose
.env/K8s secret manifests and re-runsecurityadmin.shfor indexer users (per docs; avoid$/&in indexer hash tool passwords) - API password policy: 8–64 chars, upper, lower, number, symbol
- Dashboard SSO (SAML/OIDC via indexer security plugin) with MFA at the IdP; least-privilege indexer roles for analysts
4. API Hardening (/var/ossec/api/configuration/api.yaml)
Use RBAC: separate read-only users/roles for integrations; restrict run_as; rotate service account passwords. Restart wazuh-manager after changes.
5. Agent Enrollment & Communication
- Enrollment password stored with restrictive permissions; rotate after mass deployment
- Agent certificate verification blocks rogue agents from enrolling
- Remove stale/never-connected agents (
manage_agents, API) — they are noise and potential impersonation targets
6. Remote Commands & Active Response
| Setting | Guidance | |
|---|---|---|
logcollector.remote_commands / wazuh_command.remote_commands (local_internal_options.conf) | Keep 0 (default). Enabling lets centralized config push commands that agents execute — a compromised manager becomes fleet RCE | |
| Active response | Only for high-confidence rules; set <timeout>; <repeated_offenders> escalation; <white_list> for gateways, DNS, scanners, admin IPs, cloud LB IPs; test in lab | |
| Spoofing risk | Blocking source IPs from spoofable logs (UDP syslog) can be weaponized to block critical services | |
| Custom AR scripts | Root-owned, reviewed, versioned |
7. Agent Configuration (centralized agent.conf per group)
whodata needs auditd (Linux) or SACL auditing (Windows). Vulnerability detection (4.8+ <vulnerability-detection> module using Wazuh CTI) relies on Syscollector inventory — keep Syscollector enabled. SCA policies for CIS benchmarks.
8. Custom Rules — Test Before Deploy
Use overwrite="yes" to modify built-in rules in local files (never edit ruleset/ — upgrades overwrite it).
9. Operations
- Index State Management (ISM) policy for retention (e.g., hot 30 d → delete 180 d) per compliance
- Snapshot indexer to a repository; back up
/var/ossec/etc,api/configuration, rules/decoders, keys - Upgrade order: indexer → manager(s) → dashboard → agents; read release notes; test in staging
- Monitor: agent disconnects,
analysisdqueue usage/EPS drops, indexer cluster health - Audit dashboard/API admin actions (indexer audit log)
Engagement Cheatsheet
Key References
- documentation.wazuh.com (Securing the Wazuh server API, changing default passwords, agent enrollment security, active response, rules syntax)
- CVE-2025-24016 (Akamai SIRT / Censys advisory; CISA KEV); CVE-2026-30893 (Wazuh advisory Apr 29 2026); CVE-2026-34150
- Related:
defensive-wazuh,defensive-tool-safety,defensive-sysmon,defensive-soar-automation
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
- SKILL.md in the repositoryCheckingSkills/tools/defensive-tool-wazuh/SKILL.md
Popularity
- 7-day trend score
- 0
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
[](https://verified-skill.com/skills/ranilojohn/claude-blue/defensive-tool-wazuh)