Skip to content

meltedinhex/analyst-ai-pack / skills/profiling-a-threat-actor-from-ttps

profiling-a-threat-actor-from-ttps

Verified

Profiles a threat actor by aggregating observed ATT&CK techniques into a TTP profile and comparing it against known-group technique sets to estimate similarity and candidate attribution. Activates for requests to profile a threat actor, compare observed TTPs to known groups, or estimate attribution from technique overlap.

FileKindSize
LICENSEother340 B
SKILL.mdskill md2.7 KB
references/api-reference.mdmarkdown1.3 KB
scripts/analyst.pyscript2.8 KB

references/api-reference.md

View on GitHub
# API Reference: Profiling a Threat Actor From TTPs

## Overview

`scripts/analyst.py` compares an observed ATT&CK technique set against known-group technique sets,
computing Jaccard and overlap-coefficient similarity, ranking candidate groups, and listing shared
techniques. It parses data only and executes nothing. TTP overlap is suggestive, not confirmed
attribution.

## Dependencies

| Package | Version | Purpose |
|---------|---------|---------|
| (stdlib) | — | json, file IO |

## Inputs

- **observed**: one ATT&CK technique ID per line (e.g., `T1059.001`).
- **groups**: JSON mapping `group -> [techniques]` or a list of `{name, techniques}`.

## Core functions

### `compare(observed_path, groups_path)`
Returns observed count and ranked candidates (Jaccard, overlap coefficient, shared techniques).

## Similarity metrics

- Jaccard = |A∩B| / |A∪B|.
- Overlap coefficient = |A∩B| / min(|A|, |B|).

## Usage

```bash
python scripts/analyst.py compare --observed observed.txt --groups groups.json
```

## Sources

- MITRE ATT&CK Groups (group→technique mappings) — https://attack.mitre.org/groups/
- ATT&CK Navigator (technique-set comparison) — https://github.com/mitre-attack/attack-navigator
- Jaccard / overlap-coefficient set similarity (standard definitions)
rea-analysis-optimizationmorluto/reaOptimize REA providers and shared analysis workflows for agent context, latency, CPU, and memory while preserving correctness and Evidence. Use for analysis bottlenecks and cache or query design; CI/test-suite optimization belongs to rea-ci-tests-audit.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-ci-tests-auditmorluto/reaAudit REA CI and test suites for correctness, fixture drift, false passes, and measured performance; use for suite or workflow investigations and efficiency changes, rather than ordinary feature testing or a single test failure.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
rea-tool-designmorluto/reaAudit, investigate, design, or change REA investigation tools, CLI/MCP contracts, provider capabilities, and Evidence semantics.Stars: 471kUpdated Claude CodeCodexVerifiedInstall
ponytail-auditDietrichGebert/ponytailQuality audit of the whole repo: bugs, security, real load, missing tests, speed, and what to delete. Most important first.Stars: 194kUpdated Claude CodeCodexVerifiedInstall