meltedinhex/analyst-ai-pack / skills/mapping-hunts-to-mitre-attack
mapping-hunts-to-mitre-attack
VerifiedMaps hunts and detections to MITRE ATT&CK for coverage analysis: tagging hypotheses with techniques, building a coverage matrix from completed hunts, and identifying high-risk gaps to prioritize next. Activates for requests to map hunts to ATT&CK, build a coverage heatmap, or find detection gaps by technique.
| File | Kind | Size |
|---|---|---|
| LICENSE | other | 340 B |
| SKILL.md | skill md | 2.9 KB |
| references/api-reference.md | markdown | 1.2 KB |
| scripts/analyst.py | script | 2.5 KB |
references/api-reference.md
View on GitHub# API Reference: Mapping Hunts to MITRE ATT&CK
## Overview
`scripts/analyst.py` reads a JSON hunt inventory (name, techniques, confidence) and produces a
per-technique coverage summary plus an ATT&CK Navigator layer with confidence-derived scores.
It reads and writes local JSON only.
## Dependencies
| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | JSON, file IO |
## Input format
```json
[
{"name": "WMI lateral movement", "techniques": ["T1047"], "confidence": "high"},
{"name": "Encoded PowerShell", "techniques": ["T1059.001"], "confidence": "medium"}
]
```
## Core functions
### `build(hunts)`
Aggregates hunts into a technique → {hunts, best_score} coverage map.
### `to_layer(coverage, name)`
Converts the coverage map into a minimal ATT&CK Navigator layer with a gradient.
## Usage
```bash
python scripts/analyst.py coverage hunts.json --out layer.json
```
## Sources
- MITRE ATT&CK Navigator (layer format) — https://github.com/mitre-attack/attack-navigator
- MITRE ATT&CK enterprise techniques — https://attack.mitre.org/techniques/enterprise/
- Coverage-with-confidence approach (presence is not quality), established detection practice
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |