elastic avatar

Security Detection Rule Management

If you're managing Elastic Security detection rules and dealing with noisy alerts, this handles the entire tuning workflow through Kibana's Detection Engine API. You can identify the noisiest rules, investigate false positive patterns by querying the alerts index, then tune them by adding exceptions, tightening queries, or adjusting thresholds. It includes dedicated tooling for both SIEM and endpoint behavior rules, with the workflow pushing you to investigate alert patterns before making changes. The skill comes with clear multi-step workflows for common scenarios like tuning a specific noisy rule or adding exceptions scoped to endpoint behaviors. Requires your Elasticsearch and Kibana credentials, Node.js 22+, and follows a strict execution model that skips the usual file browsing in favor of immediate action.

GitHub stars
503
last updated
Jun 1, 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
Security, AI & Agent Building
License
Apache-2.0
First seen
Jun 11, 2026

More from elastic/agent-skills

All 57

Recommended

More Security
1elastic avatarsecurity-generate-security-sample-dataelastic/agent-skills>0skills.sh installs
2elastic avatarcloud-network-securityelastic/agent-skills>0skills.sh installs
3hypnguyen1209 avatarcloud-securityhypnguyen1209/offensive-claudeCloud penetration testing — AWS/Azure/GCP privilege escalation, container escape, Kubernetes attacks, serverless exploitation, IaC misconfigurations0skills.sh installs
4spencermarx avatarV3 Security Overhaulspencermarx/open-code-reviewComplete security architecture overhaul for claude-flow v3. Addresses critical CVEs (CVE-1, CVE-2, CVE-3) and implements secure-by-default patterns. Use for sec0skills.sh installs
5telagod avatararchitecting-securitytelagod/code-abyss安全架构与治理:威胁建模 (STRIDE/PASTA/LINDDUN)、零信任身份架构、IAM/SSO/MFA/PAM、合规框架 (SOC2/PCI/HIPAA/GDPR)、DLP、隐私工程、安全控制设计。Use when designing security architecture, threat modeling0skills.sh installs
6yoanbernabeu avatarsupabase-audit-functionsyoanbernabeu/supabase-pentest-skillsDiscover and test Supabase Edge Functions for security vulnerabilities and misconfigurations.1.1Kskills.sh installs