Skip to content

meltedinhex/analyst-ai-pack / skills/mapping-hunts-to-mitre-attack

mapping-hunts-to-mitre-attack

Verified

Maps 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.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.9 KB
references/api-reference.mdmarkdown1.2 KB
scripts/analyst.pyscript2.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
finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the workStars: 322kUpdated Claude CodeCodexVerifiedInstall
systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixesStars: 322kUpdated Claude CodeCodexVerifiedInstall
test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation codeStars: 322kUpdated Claude CodeCodexVerifiedInstall
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: 198kUpdated Claude CodeCodexVerifiedInstall