alert-correlation

alert-correlation is a skill for Claude Code from gensecaihq/Wazuh-Autopilot. It costs 42 tokens per session (1,073 once invoked), scanned A, original, MIT.

A procedure for examining security activity around an existing case by time period and shared entities such as IP addresses, users, and hosts. It looks for related activity, attack progress, and campaigns affecting multiple computers.

In plain words
What is it for?
Use it after initial alert triage to search nearby events, connect activity across hosts, and record whether a case is isolated or part of a larger pattern.
Why use it?
It prevents an alert from being treated as an isolated event when surrounding evidence shows a broader attack. It also reduces the need to inspect every raw alert separately.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Good fit Use it after initial alert triage to search nearby events, connect activity across hosts, and record whether a case is isolated or part of a larger pattern.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/gensecaihq/wazuh-autopilot/alert-correlation
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add gensecaihq/Wazuh-Autopilot --skill alert-correlation
Clone the repo
git clone --depth 1 https://github.com/gensecaihq/Wazuh-Autopilot

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for alert-correlation

README.md
[![agentmods](https://agentmods.dev/badge/skills/gensecaihq/wazuh-autopilot/alert-correlation/github.svg)](https://agentmods.dev/skills/gensecaihq/wazuh-autopilot/alert-correlation)
Your own site
<a href="https://agentmods.dev/skills/gensecaihq/wazuh-autopilot/alert-correlation"><img src="https://agentmods.dev/badge/skills/gensecaihq/wazuh-autopilot/alert-correlation/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for alert-correlation

Your own site · 80×15
<a href="https://agentmods.dev/skills/gensecaihq/wazuh-autopilot/alert-correlation"><img src="https://agentmods.dev/badge/skills/gensecaihq/wazuh-autopilot/alert-correlation.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 42 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,073 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00042 $0.01073
Opus 5.5 $0.00017 $0.00429
Sonnet 5 $0.00008 $0.00215
Haiku 4.5 $0.00004 $0.00107

Measured yesterday against content hash a83cf1acee64, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-26, from the pricing page.

Security

Grade A, and why

alert-correlation scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

backend/app/skills/alert-correlation/SKILL.md · 71 lines

How it starts

The opening of the file, as written. The whole thing — 71 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Alert Correlation

Goal: answer "is this isolated, or part of something bigger?" NIST CSF 2.0 DE.AE — correlating adverse events from multiple sources.

Procedure

  1. get_case — collect entities (IPs, users, hosts, hashes) and first/last alert time.
  2. Pick a window: default ±24h around the case; widen to 7d for slow activity (password spraying, beaconing) or narrow to ±1h for bursts.
  3. Pivot on each attacker/victim entity (max 10 pivots per run — prioritize attacker IPs, then targeted users, then hosts).
  4. Aggregate to find patterns rather than reading raw alerts one by one.
  5. Classify the result (table below) and record it.

Query patterns

Question Tool and arguments
Everything this IP did search_security_events(query="<ip>", srcip="<ip>", time_range="24h") (time_range is one of 1h, 6h, 12h, 1d, 24h, 7d, 30d)
Alerts on the same host get_wazuh_alerts(agent_id="<id>", timestamp_start="now-24h", level="5") (level means "this or higher"; "10+" also works)
Which rules and agents dominate get_alerts_aggregated(timestamp_start="now-24h", top_rules=20, top_agents=20). It aggregates by rule and agent, not by source IP; for per-IP counts use search_security_events with srcip
Rules or groups over a period get_wazuh_alert_summary(time_range="24h", group_by="rule.id") (group_by: rule.level, rule.id, rule.groups, agent.id, agent.name)
Burst / trend / anomaly analyze_alert_patterns(time_range="24h", min_frequency=5)
Group-wide auth failures get_wazuh_alerts(rule_groups=["authentication_failed", "authentication_failures"], timestamp_start="now-24h") (single-failure and composite brute-force groups)
What a rule id means get_wazuh_rules_summary, or load wazuh-rules-and-decoders

Results come back as "<Label>:\n{json}" with items under data.affected_items. Keep compact=true (the default), keep limit ≤ 500 per query, and narrow by time or agent rather than paging through thousands of alerts. Load wazuh-mcp-querying for more.

Read the full file on GitHub · 71 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 71 lines · 42 tokens per session scan A a83cf1acee64

Subscribe to this mod's changes

alert-correlation is a skill published in the GitHub repository gensecaihq/Wazuh-Autopilot (57 stars, last pushed 2d ago), licensed MIT. It adds 42 tokens to every session and 1,073 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-25.