elastic avatar

Security Detection Rule Management

Detection rule tuning and creation for Elastic Security, managed through the Kibana Detection Engine API and rule-manager.js.

CCM score
73 of 100
skills.sh installs
4.4K
GitHub stars
613
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the full rule lifecycle: find noisy rules, investigate false positives, tune or disable, and create new detections
  • Includes rule-manager.js commands (noisy-rules, find, get, patch, add-exception, validate-query) plus run-query.js for alert and data investigation
  • Enforces a preference order for tuning: add exception first, then tighten query, adjust threshold, lower severity, and disable only as a last resort
  • Designed for SOC and detection engineers working on SIEM and Endpoint rules in Elastic Security

Install

$ npx -y skills add elastic/agent-skills --skill security-detection-rule-management -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

Detection Rule Management

Create new detection rules for emerging threats and coverage gaps, and tune existing rules to reduce false positives. All operations use the Kibana Detection Engine API via rule-manager.js.

Execution rules

  • Start executing tools immediately — do not read SKILL.md, browse the workspace, or list files first.
  • Report tool output faithfully. Copy rule IDs, names, alert counts, exception IDs, and error messages exactly as returned by the API. Do not abbreviate rule UUIDs, invent rule names, or round alert counts.
  • When a tool returns an error (rule not found, API failure), report the exact error — do not guess at alternatives.

Prerequisites

Install dependencies before first use from the skills/security directory:

cd skills/security && npm install

Set the required environment variables (or add them to a .env file in the workspace root):

export ELASTICSEARCH_URL="https://your-cluster.es.cloud.example.com:443"
export ELASTICSEARCH_API_KEY="your-api-key"
export KIBANA_URL="https://your-cluster.kb.cloud.example.com:443"
export KIBANA_API_KEY="your-kibana-api-key"

Common multi-step workflows

Details

Repository
github.com/elastic/agent-skills
Category
Security
First seen
May 16, 2026

More from elastic/agent-skills

All 19

Similar to Security Detection Rule Management

More Security