Author Sigma detections in VS Code with the checks a senior detection engineer makes by reflex — false-positive smells, ATT&CK validation, Sigma→KQL compilation, and a backtest you can run without any cloud access — all in the editor, before the rule ships.
Features
- False-positive lints, live. Flags match-all fields, single-field low-entropy selections, missing exclusion terms, and un-tagged rules as you type.
- ATT&CK validation. Technique IDs are checked for format and existence, so
a bogus
attack.t9999.001gets a red squiggle instead of poisoning your coverage story. - Sigma → KQL. Compile the current rule to table-qualified KQL
(
Detection Copilot: Compile to KQL). - Offline backtest. Point
detectionCopilot.sampleDatasetat a JSONL of synthetic or de-identified events and runDetection Copilot: Backtest against sample events. Get hit count and fire rate; noisy rules are flagged. No Log Analytics, no credentials, PHI-safe — evaluation happens entirely on your machine and no log rows ever leave it.
Requirements
The intelligence runs in a small Python language server. Install it once:
pip install detection-copilot-server
The extension launches it automatically. If it isn't found, the extension tells
you how to install it rather than failing silently. To run the server from a
specific interpreter, set detectionCopilot.pythonPath.
Quick start
pip install detection-copilot-server- Open a
.sigma.ymlfile (seeexamples/). - Edit — diagnostics appear live.
- Set
detectionCopilot.sampleDatasettoexamples/sample_events.jsonl. - Run Detection Copilot: Backtest against sample events from the palette.
Settings
| Setting | Default | Purpose |
|---|---|---|
detectionCopilot.serverCommand |
detection-copilot-server |
Language-server launch command. |
detectionCopilot.pythonPath |
python3 |
Fallback interpreter (python -m detection_copilot.server). |
detectionCopilot.sampleDataset |
"" |
JSONL of sample events for offline backtest. |
Privacy
Detections and sample events are processed locally. The offline backtest never transmits log data anywhere. See the repository README for the full data-boundary design.
License
MIT.