
Skill
detection-rule-management
manage Elastic Security detection rules
Description
Create, tune, and manage Elastic Security detection rules. Use for false positive tuning, adding exceptions, creating new detection coverage, finding noisy rules, enabling/disabling rules, or any detection engineering task. Also trigger for "detection rules", "noisy rules", "false positives", "add exception", "create rule", or "tune rule".
SKILL.md
Detection Rule Management
Manage detection rules using the elastic-security MCP connector. The manage-rules tool renders an interactive
rule management dashboard.
Tools (via elastic-security MCP connector)
| Tool | Purpose |
|---|---|
manage-rules | Browse/search rules with interactive dashboard. Params: filter (KQL) |
threat-hunt | Test queries against live data before creating rules |
The dashboard supports searching rules, viewing details, enabling/disabling, validating queries, and viewing noisy rules.
Rule Types
| Type | Use case | Example |
|---|---|---|
query (KQL) | Simple field matching | process.name: "mimikatz.exe" |
eql | Behavioral sequences | Process A spawns B within 5 minutes |
esql | Analytics/aggregations | Complex joins or transformations |
threshold | Count/frequency | >10 failed logins in 5 minutes |
threat_match | IOC correlation | Match against malicious IP indicators |
new_terms | First-time activity | User logs into host for first time |
Tuning Strategy (in order of preference)
- Add exception — Known-good process/user/host. Does not modify the rule query.
- Tighten the query — Exclude FP pattern from the rule query itself.
- Adjust threshold/suppression — Increase threshold or enable alert suppression.
- Reduce risk score/severity — Downgrade priority if rule has some value but is noisy.
- Disable the rule — Last resort. Only if rule provides no value.
Creating New Rules
- Define the threat (MITRE technique, data sources, malicious vs legitimate behavior)
- Test the query with
threat-huntagainst live data - Create via the dashboard or ask Claude to help construct the rule JSON
- Monitor alert volume and tune false positives
Common Index Patterns
| Data type | Index pattern |
|---|---|
| Alerts | .alerts-security.alerts-* |
| Processes | logs-endpoint.events.process-* |
| Network | logs-endpoint.events.network-* |
| Windows | logs-windows.* |
| AWS | logs-aws.* |
| Okta | logs-okta.* |
More skills from the example-mcp-app-security repository
View all 5 skillsalert-triage
triage Elastic Security alerts
Jul 12ElasticMonitoringSecurityTriageattack-discovery-triage
triage Elastic Security attack findings
Jul 12ObservabilitySecurityTriagecase-management
manage Elastic Security SOC cases
Jul 12ElasticIncident ResponseSecurityTriagegenerate-sample-data
generate sample Elastic Security data
Jul 12DashboardsElasticSecurityTesting
More from Elastic
View publisheraccessing-benchmark-results
retrieve and analyze Rally benchmark results
rally
Jul 12AnalyticsData AnalysisElasticPerformancedeveloping-rally
develop and debug Rally source code
rally
Jul 12DebuggingElasticEngineeringLocal Developmentrunning-benchmarks
run Rally benchmarks against Elasticsearch
rally
Jul 12ElasticElasticsearchPerformanceTestingcloud-access-management
manage Elastic Cloud organization access
agent-skills
Jul 12CloudElasticOperationsPermissionscloud-create-project
create Elastic Cloud Serverless projects
agent-skills
Jul 12CloudDeploymentElasticsearchcloud-manage-project
manage Elastic Cloud Serverless projects
agent-skills
Jul 12CloudElasticsearchOperations