
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-codeInstalls 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- Security Generate Security Sample Data4.1K
- Kibana Anomaly Detection3.4K
- Observability K8s Investigation3.3K
- Observability Logs Search3.2K
- Elasticsearch Authn3K
- Elasticsearch File Ingest3K
- Elasticsearch Authz2.9K
- Elasticsearch Audit2.9K
- Kibana Streams2.9K
- Kibana Connectors2.9K
- Kibana Vega2.9K
- Elasticsearch Security Troubleshooting2.9K
- Observability Service Health2.9K
- Kibana Audit2.8K
- Observability Manage Slos2.8K
- Cloud Network Security2.8K
- Cloud Manage Project2.8K
- Cloud Setup2.7K
- Observability Edot Python Instrument2.7K
- Cloud Create Project2.7K
- Observability Edot Java Instrument2.7K
- Observability Edot Dotnet Instrument2.7K
- Observability Edot Dotnet Migrate2.7K
- Cloud Access Management2.7K