elastic avatar

Security Detection Rule Management

This is for managing Elastic Security detection rules through the Kibana Detection Engine API. You'd use it when you need to create rules for new threats, tune existing ones to cut down false positives, or handle exceptions without clicking through the UI. It follows strict execution rules that tell Claude to run tools immediately and report output exactly as returned, no rounding alert counts or abbreviating UUIDs. The skill comes from Elastic's official agent skills repo and has passed security audits from Gen Agent Trust Hub, Socket, and Snyk. If you're running Elastic Security at any scale, this beats manual rule management through dashboards.

skills.sh installs
4.1K
GitHub stars
604
last updated
Aug 21, 2026

Install

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

Installs into .claude/skills of the current project.

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

Sponsors

Details

Repository
github.com/elastic/agent-skills
Categories
Backend & APIs, Testing & QA, Security, AI & Agent Building
First seen
May 16, 2026

More from elastic/agent-skills

All 57
1openai avataraspnet-coreopenai/skillsBuild, review, refactor, or architect ASP.NET Core web applications using current official guidance for .NET web development. Use when working on Blazor Web App4.1Kskills.sh installs
2amelnagdy avatardocs-guardamelnagdy/guard-skillsReview generated or changed documentation before it ships — READMEs, API references, docstrings, PHPDoc/JSDoc, changelogs, tutorials, and doc sites. Best used r4.1Kskills.sh installs
3giuseppe-trisciuoglio avatarnextjs-app-routergiuseppe-trisciuoglio/developer-kitProvides patterns and code examples for building Next.js 16+ applications with App Router architecture. Use when creating projects with App Router, implementing4Kskills.sh installs
4giuseppe-trisciuoglio avatarspring-boot-crud-patternsgiuseppe-trisciuoglio/developer-kitProvides and generates complete CRUD workflows for Spring Boot 3 services. Creates feature-focused architecture with Spring Data JPA aggregates, repositories, D4Kskills.sh installs
5dotnet avatartemplate-discoverydotnet/skillsHelps find, inspect, and compare (at a high level) .NET project templates. Resolves natural-language project descriptions to ranked template matches with pre-fi4Kskills.sh installs
6dotnet avatartemplate-instantiationdotnet/skillsCreates .NET projects from templates with validated parameters, smart defaults, Central Package Management adaptation, and latest NuGet version resolution. USE 4Kskills.sh installs