mitre-attack

mitre-attack is a skill for Claude Code from Liberty91LTD/cti-skills. It costs 32 tokens per session (1,047 once invoked), scanned A, original, MIT.

A local copy of MITRE ATT&CK, a public catalog of cyberattack methods, attackers, software, and defenses.

In plain words
What is it for?
Use it to find attack techniques, threat groups, software, and mitigations by querying the Enterprise ATT&CK JSON dataset.
Why use it?
It lets you look up security information from a file on your machine instead of relying on memory or repeated online requests.

Skill for Claude Code

Written for Claude Code: user-invocable in frontmatter.

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is ./scripts/download-mitre.sh.

Good fit Use it to find attack techniques, threat groups, software, and mitigations by querying the Enterprise ATT&CK JSON dataset.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/Liberty91LTD/cti-skills
agentmods
npx agentmods add skills/liberty91ltd/cti-skills/mitre-attack

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mitre-attack

README.md
[![agentmods](https://agentmods.dev/badge/skills/liberty91ltd/cti-skills/mitre-attack/github.svg)](https://agentmods.dev/skills/liberty91ltd/cti-skills/mitre-attack)
Your own site
<a href="https://agentmods.dev/skills/liberty91ltd/cti-skills/mitre-attack"><img src="https://agentmods.dev/badge/skills/liberty91ltd/cti-skills/mitre-attack/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mitre-attack

Your own site · 80×15
<a href="https://agentmods.dev/skills/liberty91ltd/cti-skills/mitre-attack"><img src="https://agentmods.dev/badge/skills/liberty91ltd/cti-skills/mitre-attack.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 32 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,047 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00032 $0.01047
Opus 5 $0.00016 $0.00524
Sonnet 5 $0.00006 $0.00209
Haiku 4.5 $0.00003 $0.00105

Measured 10d ago against content hash bc5ae160130c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

mitre-attack scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

curl -fsSL https://raw.githubusercontent.com/mitre/cti/master/enterprise-attack/enterprise-attack.json \
skills/mitre-attack/SKILL.md · 111 lines

How it starts

The opening of the file, as written. The whole thing — 111 lines — stays where its author put it; the contents beside it link to each section on GitHub.

MITRE ATT&CK Local Reference

Dataset

Local file: mitre-attack/enterprise-attack.json (~45 MB STIX 2.1 bundle).

First use — if the file is missing, run the bundled download script before any query:

./scripts/download-mitre.sh

The script is idempotent (skips if the file is already present) and supports --force for refresh. If scripts/download-mitre.sh is not present in the install (e.g. for plugin-only deployments), fall back to:

mkdir -p mitre-attack
curl -fsSL https://raw.githubusercontent.com/mitre/cti/master/enterprise-attack/enterprise-attack.json \
  -o mitre-attack/enterprise-attack.json

This yields a STIX 2.1 bundle containing all Enterprise ATT&CK objects.

Querying the Dataset

The dataset is a JSON file with a objects array. Each object has a type field.

Find a technique by ID

cat mitre-attack/enterprise-attack.json | python3 -c "
import json, sys
data = json.load(sys.stdin)
tid = 'T1566'  # Change as needed
for obj in data['objects']:
    refs = obj.get('external_references', [])
    for ref in refs:
        if ref.get('external_id') == tid:
            print(json.dumps(obj, indent=2))
            break
"

List all techniques for a tactic

Tactics are mapped via kill_chain_phases[].phase_name:

  • reconnaissance, resource-development, initial-access, execution, persistence
  • privilege-escalation, defense-evasion, credential-access, discovery
  • lateral-movement, collection, command-and-control, exfiltration, impact

Find a threat group

# Groups have type "intrusion-set"
cat mitre-attack/enterprise-attack.json | python3 -c "
import json, sys
data = json.load(sys.stdin)
name = 'APT28'  # Change as needed
for obj in data['objects']:
    if obj.get('type') == 'intrusion-set':
        aliases = obj.get('aliases', [])
        if name in aliases or obj.get('name') == name:
            print(json.dumps(obj, indent=2))
"

Map group to techniques

Groups link to techniques via relationship objects with relationship_type: "uses".

Read the full file on GitHub · 111 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 111 lines · 32 tokens per session scan A bc5ae160130c

Subscribe to this mod's changes

mitre-attack is a skill published in the GitHub repository Liberty91LTD/cti-skills (17 stars, last pushed 1mo ago), licensed MIT. It adds 32 tokens to every session and 1,047 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.