Skip to content
Back to skills

Detection Quality Review

ASecurity

Validate detection rules, analyze telemetry field dependencies, evaluate precision and recall on labeled fixtures, and identify schema drift.

  • 2 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added October 15, 2026
securitypythonbash

Works with

  • cli

Security analysis

A100/100

Scanned October 15, 2026

npx -y skills add sodejm/copilot-operation-plugin-for-security --skill detection-quality-review --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Detection Quality Review?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Detection Quality Review
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/sodejm-detection-quality-review/badge)](https://www.skillsdirectory.com/skills/sodejm-detection-quality-review)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: detection-quality-review
description: Validate detection rules, analyze telemetry field dependencies, evaluate precision and recall on labeled fixtures, and identify schema drift.
---

# Detection Quality & Regression Review Workflow

Use this skill to evaluate detection rules written in Microsoft Sentinel KQL and Splunk SPL against labeled telemetry fixtures before deploying them to production SIEM environments.

## Architecture and Core Principles

```mermaid
flowchart TD
    A["Detection Rule Contract (KQL/SPL)"] --> C["Quality Engine"]
    B["Labeled Telemetry Fixture Suite"] --> C
    C --> D["Static Dependency & Schema Checks"]
    C --> E["Deterministic Reference Evaluator"]
    D --> F["Missing Fields & Schema Drift"]
    E --> G["True/False Positives & Negatives"]
    F --> H["Readiness & Regression Report"]
    G --> H
```

### Key Review Principles

1. **Explicit Data Dependencies**:
   Every detection rule declares required vs. optional fields, source tables/indexes, and join scopes. The workbench reports missing required values in fixture primary rows; compare those findings with actual source telemetry separately.

2. **Labeled Fixture Quality Metrics**:
   - **True Positive (TP)**: Target attack events correctly caught.
   - **False Positive (FP)**: Benign baseline events incorrectly matched (causes alert fatigue).
   - **True Negative (TN)**: Normal operational telemetry safely ignored.
   - **False Negative (FN)**: Target attacks missed due to overly strict filters or missing joins.

> [!IMPORTANT]
> **Precision and recall are measured strictly on labeled test fixtures.** They provide regression baselines and identify filter bugs, but do not prove production scheduled alert firing rates.

## Quick Execution

### Validate Rule Definitions Against Schema

```bash
python3 plugins/detection-hunting/detection-quality-workbench/detectionquality/cli.py validate \
  --rules-dir plugins/detection-hunting/detection-quality-workbench/rules
```

### Evaluate a Single Rule Against Fixtures

```bash
python3 plugins/detection-hunting/detection-quality-workbench/detectionquality/cli.py evaluate \
  --rule plugins/detection-hunting/detection-quality-workbench/rules/RULE-KQL-ENTRA-ANOMALOUS-SIGNIN.json \
  --fixtures plugins/detection-hunting/detection-quality-workbench/fixtures/RULE-KQL-ENTRA-ANOMALOUS-SIGNIN.json
```

### Run the Full Quality Test Suite

```bash
python3 plugins/detection-hunting/detection-quality-workbench/detectionquality/cli.py test-suite \
  --rules-dir plugins/detection-hunting/detection-quality-workbench/rules \
  --fixtures-dir plugins/detection-hunting/detection-quality-workbench/fixtures
```

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.