mcpField
I
implementing-endpoint-detection-with-wazuh

implementing-endpoint-detection-with-wazuh

github.com/mukul975Security35.2k76 installsUpdated 8w ago
Repository

About implementing-endpoint-detection-with-wazuh

A security operations skill for teams using Wazuh. It guides API-based agent monitoring, alert queries and custom decoder and rule testing, with results organized as a JSON report.

Key features

  1. 01Authenticate with the Wazuh API
  2. 02Review agent status and versions
  3. 03Search security alerts
  4. 04Test decoders and rules with logtest
  5. 05Generate a JSON report

Use cases

  1. 01Track endpoint agent health
  2. 02Review alerts by severity or time
  3. 03Validate custom detection rules
  4. 04Summarize agent and rule coverage

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/mukul975/anthropic-cybersecurity-skills --skill implementing-endpoint-detection-with-wazuh

After installing, type/implementing-endpoint-detection-with-wazuhin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

LICENSE
references/
api-reference.md
scripts/
agent.py

Details

From the project README

Implementing Endpoint Detection with Wazuh

Overview

Wazuh is an open-source SIEM and XDR platform for endpoint monitoring, threat detection, and compliance. This skill covers managing agents via the Wazuh REST API, creating custom decoders and rules in XML for organization-specific detections, querying alerts, and testing rule logic using the logtest endpoint.

When to Use

  • When deploying or configuring implementing endpoint detection with wazuh capabilities in your environment
  • When establishing security controls aligned to compliance requirements
  • When building or improving security architecture for this domain
  • When conducting security assessments that require this implementation

Prerequisites

  • Wazuh Manager 4.x deployed with API enabled
  • Python 3.9+ with requests library
  • API credentials (username/password for JWT authentication)
  • Understanding of Wazuh decoder and rule XML syntax

Steps

Step 1: Authenticate to Wazuh API

Obtain JWT token via POST to /security/user/authenticate.

Step 2: List and Monitor Agents

Query agent status, versions, and last keep-alive via /agents endpoint.

Step 3: Query Security Alerts

Search alerts by rule ID, severity, agent, or time range.

Step 4: Test Custom Rules with Logtest

Use the /logtest endpoint to validate decoder and rule logic against sample log lines.

Expected Output

JSON report with agent inventory, alert statistics, rule coverage, and logtest validation results.

Comments

Markdown supported