MITRE ATT&CK 105: Threat Report ATT&CK Mapping (TRAM)
If you are reading this blog post via a 3rd party source it is very likely that many parts of it will not render correctly. Please view the post on signalscorps.com for the full interactive viewing experience. In this post I will show you how to turn unstructured data into structured threat intelligence with ATT&CK context. Note: this tutorial is written for MITRE ATT&CK version 11.0 (published on 2022–04–24) and TRAM v1.2.0 (released on 2022–06–04). Some of the concepts discussed are not correct for different versions.
A significant amount of intelligence available today is still shared through blogs, advisories and research articles, which requires further processing to make it machine readable (and usable by SIEM and SOAR tools).
Natural language processing (NLP) refers to the branch of computer science-and more specifically, the branch of artificial intelligence or AI-concerned with giving computers the ability to understand text and spoken words in much the same way human beings can.
MITRE’s Threat Report ATT&CK Mapping (TRAM) uses Natural Language Processing (NLP) and Artificial Intelligence / Machine Learning (AI/ML) to map Threat Reports to MITRE ATT&CK Techniques.
Here is a nice overview of the ATT&CK Navigator presented by MITRE:
Install and run
1. Download the required repositories
The TRAM code is open source and available on GitHub.
First get the last
git https://github.com/center-for-threat-informed-defense/tram/ cd tram/docker
2. Build and run
Now open up a browser and navigate to
If you are using the default
docker-compose.yml the default username and password values can be found in the variables
DJANGO_SUPERUSER_PASSWORD (which are user:
The general TRAM workflow is;
- A Threat Report is added to the job processing queue
- TRAM breaks the Threat Report into Sentences
- The AI/ML model proposes ATT&CK Techniques on a per-sentence basis
- Someone (e.g. an analyst) edits and confirms the mappings
- (Optional) The mappings can be exported to support other workflows
- (Optional) The AI/ML model can be retrained on confirmed mappings
On first install you will see some training data listed (Bootstrap Training Data). I will go ahead and upload my own report.
To upload via the UI, simply click the “Upload Report” button in the navigation bar.
For this demo I will use the following report from FireEye; APT39: An Iranian Cyber Espionage Group Focused on Personal Information.
Pro-tip: Many of you will want to use TRAM with web content. TRAM can be used with HTML content. All you need to do is export the webpage (in Chrome;
Destination = Save as PDF).
Once TRAM has finished processing the report and comparing the sentences extracted against the default model, its status will change from “Queued” to “Reviewing”.
You can see TRAM has extracted a total of 32 ATT&CK Techniques for review. I can review them by clicking “Analyze”.
You can now see each sentence extracted on the left hand side. Where a number is shown in the left column, it indicates TRAM has detected that number of Techniques for the sentence (might be more than one).
Clicking a sentence where a Technique has been extracted shows the Technique(s) identified and the confidence score of the extraction.
I can now review the accuracy manually with one of three outcomes;
- I agree with the extraction and want to assign the Technique(s) to the sentence by clicking “Accepted”. You will see the row turn green.
- I disagree with the extraction and want to remove it by clicking the red no entry button. It will remove the Technique.
- I want to add an additional Technique to the sentence by clicking the green “Add Mapping” button and selecting the Object I want to add. The TRAM model support Technique mappings by default, however, this manual option also allows you to link any ATT&CK Object (Groups, Software, etc.) to the sentence. In the screenshot below, I am adding the Group G0087 to a sentence.
Once all the mappings have been reviewed and accepted you can close the report.
Note, if you do not review and accept all sentences (some remain yellow), even ones with no mappings, the report will remain in “Reviewing” state.
You can now export the data in either
.json format, using the "Export" button (not the "Download" button which simply exports the original upload).
.docx structure is as follows;
.json structure is more verbose, as it includes the original text as well as the ATT&CK mappings. Each sentence and its mapping is represented like so;
In this example the sentence (
text) is linked to the ATT&CK ID G0087 (
The exported data can then be used in other tool, for example, Navigator. In Navigator you could create a new layer representing this report, and assign the Objects detected by TRAM.
TRAM Machine Learning Models
TRAM has four machine learning models that can be used out-of-the-box:
All ML models are implemented as an SKLearn Pipeline.
The AI/ML models are retrained on confirmed mappings.
It is also possible to add your own models to the SKLearn Pipeline. I will not cover that in this tutorial. You can read the following section of the TRAM documentation for more information about how this can be achieved.
Other notable cyber threat intelligence NLP projects
The field of NLP/ML is an exciting one in cyber threat intelligence, though it has some way to go.
Whilst not ATT&CK specific, I did want to take this opportunity to share some similar tools that look at extracting intelligence from relatively unstructured data sources.
Unstructured Threat Intelligence Processing Tool (UTIP)
One of the first fully formed project I found was Unstructured Threat Intelligence Processing Tool (UTIP).
UTIP appears to be built by a team at Accenture and was presented at Black Hat in 2015, though I couldn’t find the session listed publicly, nor find the recording).
From the slides you can see information extraction is done on uploaded reports. The logic for extraction (and confidence in extraction) comes from an NLP component (sadly, not much I can deduce from the slides about this) before the data is packaged into STIX 1.0.
Death to the IOC: What’s Next in Threat Intelligence
Another Black Hat talk, this time from 2019; Death to the IOC: What’s Next in Threat Intelligence.
The talk describes the process of building a Cyber Entity Extractor and the evaluation of various models on real world data to do so.
Making Sense of Unstructured Threat Data
Applies Doc2Vec classification methodology to cluster vulnerability descriptions from the NVD and map clusters to a specific ATT&CK technique.
In 2017 a conference paper is released with the title; TTPDrill: Automatic and Accurate Extraction of Threat Actions from Unstructured Text of CTI Sources.
TTP builds on UTIP as it maps of extracted TTPs to other standardised frameworks including ATT&CK and the Kill Chain.
The project appears to have since been abandoned, the last commit on GitHub was 2 years ago.
ATT&CK Certification (Virtual and In Person)
The content used in this post is a small subset of our full training material used in our ATT&CK training.
If you want to join a select group of certified ATT&CK professionals, subscribe to our newsletter below to be notified of new course dates.
Similar Posts You Will Enjoy Reading…
Originally published at https://www.signalscorps.com on June 12, 2022.