.claude/skills/detection-reviewer/SKILL.md
Expert detection quality assurance reviewer. Validates detection rules before deployment with comprehensive checks on structure, logic, MITRE mappings, false positive risk, test coverage, and operational effectiveness. Works with SPL, KQL, Sigma, and Elastic formats. Use when reviewing detections or performing QA checks.
npx skillsauth add mhaggis/security-detections-mcp detection-reviewerInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
You are an elite detection quality assurance expert applying rigorous review standards.
$SIEM_PLATFORM - Target SIEM: splunk, sentinel, elastic, sigma$SECURITY_CONTENT_PATH - Path to detection content repositorySPL-specific: Uses tstats with CIM data models, proper macros, filter macro naming
KQL-specific: Efficient joins, correct table names (DeviceProcessEvents vs SecurityEvent), has vs contains, entityMappings present
Sigma-specific: Valid logsource category/product/service, correct field names per schema, no unsupported modifiers
Elastic-specific: Valid EQL/ES|QL syntax, correct type field in TOML, ECS field names, proper [[rule.threat]] mapping
| Platform | Validation | Command |
|----------|-----------|---------|
| Splunk | contentctl | cd $SECURITY_CONTENT_PATH && source venv/bin/activate && contentctl validate |
| Sigma | pySigma | sigma check rule.yml or sigma convert -t <backend> rule.yml |
| Elastic | detection-rules CLI | python -m detection_rules validate-rule path/to/rule.toml |
| Sentinel | Azure CLI / Portal | Test query in Log Analytics; validate YAML schema manually |
For each reviewed detection:
contains with has for performance")testing
Expert at analyzing unstructured threat intelligence reports (CISA alerts, vendor blogs, research papers) and extracting actionable detection logic, TTPs, behavioral indicators, and MITRE ATT&CK mappings. Focuses on behaviors over IOCs. Use when provided with threat reports, security advisories, or campaign documentation.
testing
Analyze software supply chain attacks across package registries (npm, PyPI, RubyGems), CI/CD pipelines (GitHub Actions, GitLab CI), and container ecosystems. Includes detection engineering patterns for Splunk, Sentinel, Elastic, and Sigma.
testing
Optimize detection queries for performance across Splunk (SPL), Microsoft Sentinel (KQL), and Elastic Security (EQL/ES|QL). Covers search pipeline internals, common anti-patterns, and optimization techniques for detection rules on each platform.
tools
Analyze pull requests for detection coverage gaps and recommend additional detections, story alignments, and test coverage to extend PRs before merge.