ART MITRE ATT&CK Classify Benchmark
A held-out evaluation set for a security classification task: given a set of observed
commands / actions, predict the MITRE ATT&CK technique they
correspond to (technique id + technique name), with chain-of-thought reasoning.
The examples are derived from the Atomic Red Team (ART) project — a library of small,
executable tests mapped to MITRE ATT&CK techniques. Each example pairs a set of commands with
the technique those commands implement.
- 147 examples, covering 97 distinct MITRE techniques.
- Held out at random from the full ART classify set (seed 42); the techniques also appear in
training, so the benchmark measures whether a model has learned the classification task,
not whether it memorized a technique it never saw during fine-tuning.
Versions
Both files hold the same 147 examples (same commands, same gold labels). They differ only in
the answer format:
| File | Used for | Prompt | Target answer |
|---|---|---|---|
granite-4.1/classify_val.jsonl |
the Granite 4.1 adapters in danielohayon/granitelib-security-r1.0 | question + commands, no format instruction | one JSON object, reasoning first: {"reasoning", "technique_id", "technique_name"} |
classify_val.jsonl |
the earlier Granite 4.2 adapters (now retired; results below) | question + commands + an instruction to answer in <think> / <answer> tags |
reasoning in a <think> block, then {"technique_id", "technique_name"} in an <answer> block |
The Granite 4.1 version drops the old format instruction from the prompts because a
granite-library adapter owns its output
format through its io.yaml. Only that instruction was removed; the question and the command
blocks are unchanged. granite-4.1/json_answer_manifest.json records how the file was built.
What a row looks like
Each row is a chat-format example:
| Field | Meaning |
|---|---|
messages |
The chat turns — a user message with the observed commands, and the target assistant answer. |
gold_technique_id |
The correct MITRE technique id, e.g. T1053.005. |
gold_technique_name |
The correct technique name. |
technique_id |
Same gold id (kept for convenience). |
direction |
classify (commands → technique). |
chat_template_kwargs, think, source, category, subcategory |
Rendering / provenance metadata. |
The gold id and name are carried on every row, so scoring needs no external answer key.
How evaluation is performed
The model is given the commands, reasons, and outputs the predicted technique id and name.
Decoding. Report numbers use greedy decoding (temperature 0) for deterministic,
reproducible results, with at most 4096 new tokens. (Sampling was found to add noise and
understate scores — greedy is the recommended setting for this benchmark.)
Parsing. If the answer is a JSON object, the technique_id and technique_name fields are
read from it. Otherwise they are extracted with a tolerant match (the last technique_id /technique_name field, or a bare T####[.###] id as a fallback). The bare-id fallback is not
used for an unfinished reasoning-first JSON answer, so an id that appears only inside the
reasoning earns no credit. In the original version, scoring uses the text after the reasoning
block.
Partial-credit scoring. Each example is scored against its gold id/name:
| Score | Condition |
|---|---|
| 1.0 | Predicted id equals the gold id, or predicted name equals the gold name (a full match). |
| 0.5 | Same technique family — the parent id matches (e.g. predicted T1053.001 vs gold T1053.005), but not a full match. |
| 0.0 | Otherwise. |
Three numbers are reported:
- Partial-credit accuracy — the mean of the per-example scores above (the headline metric).
- Exact-match accuracy — fraction scored exactly 1.0 (full match only).
- Family accuracy — fraction where at least the parent technique was right.
Family comparison is simply the id before the first dot: T1053.005 → T1053.
Results: Granite 4.1 (granite-4.1/classify_val.jsonl)
Measured with greedy decoding foribm-granite/granite-4.1-8b and the three
adapters in danielohayon/granitelib-security-r1.0. Numbers in %:
| Model | Accuracy (partial credit) | Exact match | Same family | Valid JSON output |
|---|---|---|---|---|
| Granite-4.1-8B, prompted (no format instruction) | 19.4 | 12.9 | 25.9 | 0.0 |
| Granite-4.1-8B, prompted (asked for the JSON output) | 20.1 | 14.3 | 25.2 | 0.7 |
| Granite-4.1-8B LoRA (granitelib-security-r1.0) | 48.6 | 44.9 | 52.4 | 98.0 |
| Granite-4.1-8B aLoRA (granitelib-security-r1.0) | 55.4 | 53.1 | 57.8 | 98.0 |
| Granite-4.1-8B Shadow Residual (granitelib-security-r1.0) | 59.5 | 57.1 | 61.9 | 99.3 |
Asked for JSON, the base model wraps it in a markdown code block in 89.1% of answers. Those answers count as not valid JSON here, because parsing the raw answer fails. The accuracy columns still read the technique from inside the block.
Valid JSON output means the whole answer is one JSON object with a technique_id. Without a
format instruction the base model answers in prose; the parser still reads the ids from it.
Results: Granite 4.2 (classify_val.jsonl)
Measured with greedy decoding on this benchmark, foribm-granite/granite-4.2-8b and three
adapters fine-tuned on top of it. Those adapters are no longer published; the Granite 4.1
adapters in danielohayon/granitelib-security-r1.0 replace them. The numbers are kept
for reference:
| Model | Partial-credit accuracy | Exact-match accuracy |
|---|---|---|
Base (ibm-granite/granite-4.2-8b) |
0.048 | 0.034 |
| + LoRA adapter | 0.415 | 0.401 |
| + aLoRA adapter | 0.483 | 0.442 |
| + shadow-residual adapter | 0.531 | 0.503 |
The base model scores near zero because it predicts unrelated techniques for ~91% of examples
(only ~7% land in the right family) — it has not learned the command→technique mapping. The
adapters learn both the answer format and the mapping.
Note on the comparison. The three adapters use their own per-method default learning rates
and ranks, so this is a recipe-level comparison, not a learning-rate-matched,
architecture-isolated one. The same holds for the Granite 4.1 adapters.
Content warning
Rows contain offensive-security commands (the Atomic Red Team tests). They are published for
security-research and model-evaluation purposes. Use responsibly and in accordance with
applicable law and the Atomic Red Team license / terms.