Tagging threat reports with ATT&CK offline: language model or classifier?
On 1,160 sentences about Russian and Chinese state hacking groups, a model on one GPU put the right ATT&CK technique in its top five 92.7% of the time. A plain classifier came within two points, more than a thousand times faster. Start with the classifier.
Security teams describe what attackers did in a shared vocabulary, MITRE ATT&CK: about 220 techniques, from phishing to data exfiltration. Tagging each sentence of an incident or threat report with the right technique is slow, expert work. And the reports are often too sensitive to paste into an online AI service.
So the practical question is: can something running on one office GPU do the first pass, and which kind of model should it be? I tested a local language model (Qwen3, 8B and 14B parameters) against much simpler methods, on sentences about groups that ATT&CK attributes to Russian and Chinese state services. The full method is on the LAB/020 page.
The result
- right technique in the top 5, Qwen3-14B (from 20)
- 92.7%
- right technique first
- 65.1%
- top 5 with the classifier alone, under a millisecond per sentence
- 90.9%
The 14B model, choosing from 20 candidates, put the right technique in its top five 92.7% of the time. A small classifier, trained only on other groups’ examples, managed 90.9%, and got the first answer right more often (70.3% against 65.1%). It takes under a millisecond per sentence; the language model takes about 1.5 seconds. The smaller 8B model made the first answer worse, not better. Results were the same for Russian and Chinese groups.
To keep the test honest, group, malware and campaign names were masked, so a model could not shortcut from “APT28” to a technique it remembers. Every setting, including the prompt, was chosen on separate data before the test.
Where it goes wrong
Reconnaissance and resource development are the hardest tactics: the sentences describe research and buying infrastructure in ordinary words, and several techniques fit. Some “errors” are reasonable disagreements with the official label:
- The group has replaced atomic indicators mentioned in threat intelligence publications, sometimes as quickly as under a week after release.
- T1027 Obfuscated Files or Information
- T1070 Indicator Removal; T1681 Search Threat Vendor Data; T1568 Dynamic Resolution; T1678 Delay Execution; T1553 Subvert Trust Controls
What to build
- Suggest, don’t decide. Five suggestions with the right one among them nine times in ten saves an analyst the search; the analyst still picks.
- Start with the classifier. It is nearly as good, far cheaper, and can be retrained on your own team’s tagged reports, which is where the real gains are.
- Add a language model where it earns its cost: explaining a choice, or reading text unlike anything the classifier was trained on.
- Keep it offline. Every step here ran on one desktop GPU with no network access.
ATT&CK’s examples are short, clean sentences; real reports are longer and messier, so expect lower numbers on them. Language models have read ATT&CK during training, which may flatter their scores; the classifier is the clean comparison. The Lab page has every number and limit.