Skip to content

Commit 1bda53f

Browse files
committed
Regenerate the model based on ATT&CK-v11.3
1 parent c9f8c0c commit 1bda53f

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

x-pack/plugins/security_solution/scripts/extract_tactics_techniques_mitre.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,12 @@ const { camelCase, sortBy } = require('lodash');
1515
const { resolve } = require('path');
1616

1717
const OUTPUT_DIRECTORY = resolve('public', 'detections', 'mitre');
18-
const MITRE_ENTERPRISE_ATTACK_URL =
19-
'https://raw.githubusercontent.com/mitre/cti/master/enterprise-attack/enterprise-attack.json';
18+
19+
// Every release we should update the version of MITRE ATT&CK content and regenerate the model in our code.
20+
// This version must correspond to the one used for prebuilt rules in https://github.com/elastic/detection-rules.
21+
// This version is basically a tag on https://github.com/mitre/cti/tags, or can be a branch name like `master`.
22+
const MITRE_CONTENT_VERSION = 'ATT&CK-v11.3'; // last updated when preparing for 8.4.0 release
23+
const MITRE_CONTENT_URL = `https://raw.githubusercontent.com/mitre/cti/${MITRE_CONTENT_VERSION}/enterprise-attack/enterprise-attack.json`;
2024

2125
const getTacticsOptions = (tactics) =>
2226
tactics.map((t) =>
@@ -177,7 +181,7 @@ const buildMockThreatData = (tacticsData, techniques, subtechniques) => {
177181
};
178182

179183
async function main() {
180-
fetch(MITRE_ENTERPRISE_ATTACK_URL)
184+
fetch(MITRE_CONTENT_URL)
181185
.then((res) => res.json())
182186
.then((json) => {
183187
const mitreData = json.objects;

0 commit comments

Comments
 (0)