txt2stix 1.1.8__py3-none-any.whl → 1.1.10__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. txt2stix/includes/extractions/ai/config.yaml +20 -0
  2. txt2stix/includes/extractions/lookup/config.yaml +33 -15
  3. txt2stix/includes/lookups/_generate_lookups.py +39 -30
  4. txt2stix/includes/lookups/{disarm_id_v1_5.txt → disarm_id_v1_6.txt} +95 -32
  5. txt2stix/includes/lookups/{disarm_name_v1_5.txt → disarm_name_v1_6.txt} +380 -317
  6. txt2stix/includes/lookups/{mitre_atlas_id_v4_5_2.txt → mitre_atlas_id_v4_9_0.txt} +41 -1
  7. txt2stix/includes/lookups/mitre_atlas_name_v4_9_0.txt +157 -0
  8. txt2stix/includes/lookups/{mitre_attack_enterprise_aliases_v16_0.txt → mitre_attack_enterprise_aliases_v18_0.txt} +679 -531
  9. txt2stix/includes/lookups/mitre_attack_enterprise_id_v18_0.txt +4293 -0
  10. txt2stix/includes/lookups/mitre_attack_enterprise_name_v18_0.txt +4295 -0
  11. txt2stix/includes/lookups/{mitre_attack_ics_aliases_v16_0.txt → mitre_attack_ics_aliases_v18_0.txt} +7 -3
  12. txt2stix/includes/lookups/mitre_attack_ics_id_v18_0.txt +410 -0
  13. txt2stix/includes/lookups/{mitre_attack_ics_name_v16_0.txt → mitre_attack_ics_name_v18_0.txt} +172 -53
  14. txt2stix/includes/lookups/{mitre_attack_mobile_aliases_v16_0.txt → mitre_attack_mobile_aliases_v18_0.txt} +33 -0
  15. txt2stix/includes/lookups/mitre_attack_mobile_id_v18_0.txt +643 -0
  16. txt2stix/includes/lookups/mitre_attack_mobile_name_v18_0.txt +645 -0
  17. txt2stix/includes/lookups/mitre_capec_name_v3_9.txt +522 -522
  18. txt2stix/includes/lookups/{mitre_cwe_id_v4_15.txt → mitre_cwe_id_v4_18.txt} +5 -0
  19. txt2stix/includes/lookups/{mitre_cwe_name_v4_15.txt → mitre_cwe_name_v4_18.txt} +889 -884
  20. txt2stix/includes/lookups/sector_aliases_v1_0.txt +751 -0
  21. txt2stix/includes/tests/test_cases.yaml +8 -0
  22. txt2stix/retriever.py +6 -0
  23. {txt2stix-1.1.8.dist-info → txt2stix-1.1.10.dist-info}/METADATA +2 -10
  24. {txt2stix-1.1.8.dist-info → txt2stix-1.1.10.dist-info}/RECORD +27 -26
  25. txt2stix/includes/lookups/mitre_atlas_name_v4_5_2.txt +0 -117
  26. txt2stix/includes/lookups/mitre_attack_enterprise_id_v16_0.txt +0 -1656
  27. txt2stix/includes/lookups/mitre_attack_enterprise_name_v16_0.txt +0 -1765
  28. txt2stix/includes/lookups/mitre_attack_ics_id_v16_0.txt +0 -254
  29. txt2stix/includes/lookups/mitre_attack_mobile_id_v16_0.txt +0 -277
  30. txt2stix/includes/lookups/mitre_attack_mobile_name_v16_0.txt +0 -296
  31. {txt2stix-1.1.8.dist-info → txt2stix-1.1.10.dist-info}/WHEEL +0 -0
  32. {txt2stix-1.1.8.dist-info → txt2stix-1.1.10.dist-info}/entry_points.txt +0 -0
  33. {txt2stix-1.1.8.dist-info → txt2stix-1.1.10.dist-info}/licenses/LICENSE +0 -0
@@ -876,6 +876,26 @@ ai_mitre_cwe:
876
876
  test_cases: ai_mitre_cwe
877
877
  stix_mapping: ctibutler-mitre-cwe-id
878
878
 
879
+ ####### Sector #######
880
+
881
+ ai_sector:
882
+ type: ai
883
+ dogesec_web: true
884
+ name: 'Sectors'
885
+ description: 'Detect which sectors from a fixed sector list are referenced anywhere in the input text.'
886
+ notes: 'lookup_sector_aliases legacy extraction also exists if you cannot use AI'
887
+ created: 2020-01-01
888
+ modified: 2020-01-01
889
+ created_by: dogesec
890
+ version: 1.0.0
891
+ prompt_base: |
892
+ You will be given a list of possible sectors. Check whatever sector best matches what is being referenced in the text
893
+ (either directly or via obvious common synonyms).
894
+ prompt_helper: ''
895
+ prompt_conversion: 'Should respond with one of ["Road transport","Hospitality","Finance","Lodging industry","Hosting service providers","Technologies","Information Technologies Consulting","Travel and tourism industry","Food and drinks businesses","Banking institutions","Education","Defense industry","Diplomacy","Schools","Non-Governmental Organizations (NGOs)","Healthcare research","Defense ministries (including the military)","Oil","Research","Think tanks","Political parties","Legislative branch (parliamentary chambers)","Mining","Defense research and development","Gambling","Air transport","Nuclear power (civilian use)","Energy","Consulting","Maritime transport","Insurance services","Government and administrations","Market infrastructures","Transport","Gas","Citizens","Digital infrastructures","Heavy industries","Engineering consulting","Construction","Local administrations","Ministries of foreign affairs","Telecommunications","Sports","Agriculture and agribusiness","Entertainment industry","Logistics","Central administration and government","Retail (distribution)","Internet Service providers","Pharmacy and drugs manufacturing","Financial organizations","Manufacturing","Universities","Defense","International organizations","Legal consulting","Renewable energies","Health","Rail transport","Culture","Civil society","Culture and entertainment","Medias and audiovisual","Unknown","Healthcare services","Dissidents","Water distribution and supply","Electricity","Judicial power (justice)","High-tech"]'
896
+ test_cases: ai_sector_names
897
+ stix_mapping: ctibutler-sector-name
898
+
879
899
  ####### Generic Extractions #######
880
900
 
881
901
  ai_attack_pattern:
@@ -24,7 +24,7 @@ lookup_mitre_attack_enterprise_id:
24
24
  name: 'MITRE ATT&CK Enterprise IDs'
25
25
  description: 'Extracts MITRE ATT&CK Enterprise IDs from text. See lookup name for version used.'
26
26
  notes: 'ai_mitre_attack_enterprise also exists but beware of hallucinations'
27
- file: 'lookups/mitre_attack_enterprise_id_v16_0.txt'
27
+ file: 'lookups/mitre_attack_enterprise_id_v18_0.txt'
28
28
  created: 2020-01-01
29
29
  modified: 2020-01-01
30
30
  created_by: dogesec
@@ -38,7 +38,7 @@ lookup_mitre_attack_enterprise_name:
38
38
  name: 'MITRE ATT&CK Enterprise names'
39
39
  description: 'Extracts MITRE ATT&CK Enterprise names from text. See lookup name for version used.'
40
40
  notes: 'ai_mitre_attack_enterprise also exists but beware of hallucinations'
41
- file: 'lookups/mitre_attack_enterprise_name_v16_0.txt'
41
+ file: 'lookups/mitre_attack_enterprise_name_v18_0.txt'
42
42
  created: 2020-01-01
43
43
  modified: 2020-01-01
44
44
  created_by: dogesec
@@ -52,7 +52,7 @@ lookup_mitre_attack_enterprise_alias:
52
52
  name: 'MITRE ATT&CK Enterprise alias'
53
53
  description: 'Extracts MITRE ATT&CK Enterprise aliases from text. See lookup name for version used.'
54
54
  notes: 'ai_mitre_attack_enterprise also exists but beware of hallucinations'
55
- file: 'lookups/mitre_attack_enterprise_aliases_v16_0.txt'
55
+ file: 'lookups/mitre_attack_enterprise_aliases_v18_0.txt'
56
56
  created: 2020-01-01
57
57
  modified: 2020-01-01
58
58
  created_by: dogesec
@@ -66,7 +66,7 @@ lookup_mitre_attack_mobile_id:
66
66
  name: 'MITRE ATT&CK Mobile IDs'
67
67
  description: 'Extracts MITRE ATT&CK Mobile IDs from text. See lookup name for version used.'
68
68
  notes: 'ai_mitre_attack_mobile also exists but beware of hallucinations'
69
- file: 'lookups/mitre_attack_mobile_id_v16_0.txt'
69
+ file: 'lookups/mitre_attack_mobile_id_v18_0.txt'
70
70
  created: 2020-01-01
71
71
  modified: 2020-01-01
72
72
  created_by: dogesec
@@ -80,7 +80,7 @@ lookup_mitre_attack_mobile_name:
80
80
  name: 'MITRE ATT&CK Mobile names'
81
81
  description: 'Extracts MITRE ATT&CK Mobile names from text. See lookup name for version used.'
82
82
  notes: 'ai_mitre_attack_mobile also exists but beware of hallucinations'
83
- file: 'lookups/mitre_attack_mobile_name_v16_0.txt'
83
+ file: 'lookups/mitre_attack_mobile_name_v18_0.txt'
84
84
  created: 2020-01-01
85
85
  modified: 2020-01-01
86
86
  created_by: dogesec
@@ -94,7 +94,7 @@ lookup_mitre_attack_mobile_alias:
94
94
  name: 'MITRE ATT&CK Mobile alias'
95
95
  description: 'Extracts MITRE ATT&CK Mobile aliases from text. See lookup name for version used.'
96
96
  notes: 'ai_mitre_attack_mobile also exists but beware of hallucinations'
97
- file: 'lookups/mitre_attack_mobile_aliases_v16_0.txt'
97
+ file: 'lookups/mitre_attack_mobile_aliases_v18_0.txt'
98
98
  created: 2020-01-01
99
99
  modified: 2020-01-01
100
100
  created_by: dogesec
@@ -108,7 +108,7 @@ lookup_mitre_attack_ics_id:
108
108
  name: 'MITRE ATT&CK ICS IDs'
109
109
  description: 'Extracts MITRE ATT&CK ICS names from text. See lookup name for version used.'
110
110
  notes: 'ai_mitre_attack_ics also exists but beware of hallucinations'
111
- file: 'lookups/mitre_attack_ics_id_v16_0.txt'
111
+ file: 'lookups/mitre_attack_ics_id_v18_0.txt'
112
112
  created: 2020-01-01
113
113
  modified: 2020-01-01
114
114
  created_by: dogesec
@@ -122,7 +122,7 @@ lookup_mitre_attack_ics_name:
122
122
  name: 'MITRE ATT&CK ICS names'
123
123
  description: 'Extracts MITRE ATT&CK ICS names from text. See lookup name for version used.'
124
124
  notes: 'ai_mitre_attack_ics also exists but beware of hallucinations'
125
- file: 'lookups/mitre_attack_ics_name_v16_0.txt'
125
+ file: 'lookups/mitre_attack_ics_name_v18_0.txt'
126
126
  created: 2020-01-01
127
127
  modified: 2020-01-01
128
128
  created_by: dogesec
@@ -136,7 +136,7 @@ lookup_mitre_attack_ics_alias:
136
136
  name: 'MITRE ATT&CK ICS alias'
137
137
  description: 'Extracts MITRE ATT&CK ICS aliases from text. See lookup name for version used.'
138
138
  notes: 'ai_mitre_attack_ics also exists but beware of hallucinations'
139
- file: 'lookups/mitre_attack_ics_aliases_v16_0.txt'
139
+ file: 'lookups/mitre_attack_ics_aliases_v18_0.txt'
140
140
  created: 2020-01-01
141
141
  modified: 2020-01-01
142
142
  created_by: dogesec
@@ -182,7 +182,7 @@ lookup_mitre_cwe_id:
182
182
  name: MITRE CWE IDs
183
183
  description: 'Extracts MITRE CWE IDs from text. See lookup name for version used.'
184
184
  notes: 'ai_mitre_cwe also exists but beware of hallucinations'
185
- file: 'lookups/mitre_cwe_id_v4_15.txt'
185
+ file: 'lookups/mitre_cwe_id_v4_18.txt'
186
186
  created: 2020-01-01
187
187
  modified: 2020-01-01
188
188
  created_by: dogesec
@@ -196,7 +196,7 @@ lookup_mitre_cwe_name:
196
196
  name: MITRE CWE names
197
197
  description: 'Extracts MITRE CWE names from text. See lookup name for version used.'
198
198
  notes: 'ai_mitre_cwe also exists but beware of hallucinations'
199
- file: 'lookups/mitre_cwe_name_v4_15.txt'
199
+ file: 'lookups/mitre_cwe_name_v4_18.txt'
200
200
  created: 2020-01-01
201
201
  modified: 2020-01-01
202
202
  created_by: dogesec
@@ -212,7 +212,7 @@ lookup_mitre_atlas_id:
212
212
  name: MITRE ATLAS IDs
213
213
  description: 'Extracts MITRE ATLAS IDs from text. See lookup name for version used.'
214
214
  notes: 'No corresponding AI version yet due to poor AI performance'
215
- file: 'lookups/mitre_atlas_id_v4_5_2.txt'
215
+ file: 'lookups/mitre_atlas_id_v4_9_0.txt'
216
216
  created: 2020-01-01
217
217
  modified: 2020-01-01
218
218
  created_by: dogesec
@@ -226,7 +226,7 @@ lookup_mitre_atlas_name:
226
226
  name: MITRE ATLAS names
227
227
  description: 'Extracts MITRE ATLAS names from text. See lookup name for version used.'
228
228
  notes: 'No corresponding AI version yet due to poor AI performance'
229
- file: 'lookups/mitre_atlas_name_v4_5_2.txt'
229
+ file: 'lookups/mitre_atlas_name_v4_9_0.txt'
230
230
  created: 2020-01-01
231
231
  modified: 2020-01-01
232
232
  created_by: dogesec
@@ -242,7 +242,7 @@ lookup_disarm_id:
242
242
  name: DISARM names
243
243
  description: 'Extracts DISARM IDs from text. See lookup name for version used.'
244
244
  notes: 'No corresponding AI version yet due to poor AI performance'
245
- file: 'lookups/disarm_id_v1_5.txt'
245
+ file: 'lookups/disarm_id_v1_6.txt'
246
246
  created: 2020-01-01
247
247
  modified: 2020-01-01
248
248
  created_by: dogesec
@@ -256,7 +256,7 @@ lookup_disarm_name:
256
256
  name: DISARM IDs
257
257
  description: 'Extracts DISARM names from text. See lookup name for version used.'
258
258
  notes: 'No corresponding AI version yet due to poor AI performance'
259
- file: 'lookups/disarm_name_v1_5.txt'
259
+ file: 'lookups/disarm_name_v1_6.txt'
260
260
  created: 2020-01-01
261
261
  modified: 2020-01-01
262
262
  created_by: dogesec
@@ -264,6 +264,22 @@ lookup_disarm_name:
264
264
  test_cases: generic_disarm_name
265
265
  stix_mapping: ctibutler-disarm-name
266
266
 
267
+ ####### Sector #######
268
+
269
+ lookup_sector_alias:
270
+ type: lookup
271
+ dogesec_web: false
272
+ name: 'Sector names'
273
+ description: 'Extracts Sector alias from text.'
274
+ notes: 'ai_mitre_attack_ics also exists but beware of hallucinations'
275
+ file: 'lookups/sector_aliases_v1_0.txt'
276
+ created: 2020-01-01
277
+ modified: 2020-01-01
278
+ created_by: dogesec
279
+ version: 1.0.0
280
+ test_cases: generic_sector_aliases
281
+ stix_mapping: ctibutler-sector-alias
282
+
267
283
  ####### Generic Extractions #######
268
284
 
269
285
  lookup_attack_pattern:
@@ -391,3 +407,5 @@ lookup_tool:
391
407
  version: 1.0.0
392
408
  test_cases: lookup_tool
393
409
  stix_mapping: tool
410
+
411
+
@@ -12,10 +12,10 @@ script_dir = os.path.dirname(os.path.abspath(__file__))
12
12
 
13
13
  # Define queries and output files
14
14
  queries = {
15
- "mitre_cwe_id_v4_15.txt":
15
+ "mitre_cwe_id_v4_18.txt":
16
16
  """
17
17
  FOR doc IN mitre_cwe_vertex_collection
18
- FILTER doc._stix2arango_note == "version=4_15"
18
+ FILTER doc._stix2arango_note == "version=4_18"
19
19
  AND IS_ARRAY(doc.external_references)
20
20
  AND doc.x_mitre_deprecated != true
21
21
  AND doc.revoked != true
@@ -27,10 +27,10 @@ queries = {
27
27
  SORT reference.external_id ASC
28
28
  RETURN reference.external_id
29
29
  """,
30
- "mitre_cwe_name_v4_15.txt":
30
+ "mitre_cwe_name_v4_18.txt":
31
31
  """
32
32
  FOR doc IN mitre_cwe_vertex_collection
33
- FILTER doc._stix2arango_note == "version=4_15"
33
+ FILTER doc._stix2arango_note == "version=4_18"
34
34
  AND IS_ARRAY(doc.external_references)
35
35
  AND doc.x_mitre_deprecated != true
36
36
  AND doc.revoked != true
@@ -65,10 +65,10 @@ queries = {
65
65
  AND !CONTAINS(doc.name, "DEPRECATED:")
66
66
  RETURN doc.name
67
67
  """,
68
- "mitre_attack_enterprise_id_v16_0.txt":
68
+ "mitre_attack_enterprise_id_v18_0.txt":
69
69
  """
70
70
  FOR doc IN mitre_attack_enterprise_vertex_collection
71
- FILTER doc._stix2arango_note == "version=16_0"
71
+ FILTER doc._stix2arango_note == "version=18_0"
72
72
  AND doc.type != "x-mitre-matrix"
73
73
  AND doc.x_mitre_deprecated != true
74
74
  AND doc.revoked != true
@@ -78,21 +78,21 @@ queries = {
78
78
  SORT reference.external_id ASC
79
79
  RETURN reference.external_id
80
80
  """,
81
- "mitre_attack_enterprise_name_v16_0.txt":
81
+ "mitre_attack_enterprise_name_v18_0.txt":
82
82
  """
83
83
  FOR doc IN mitre_attack_enterprise_vertex_collection
84
- FILTER doc._stix2arango_note == "version=16_0"
84
+ FILTER doc._stix2arango_note == "version=18_0"
85
85
  AND doc.type != "x-mitre-matrix"
86
86
  AND doc.x_mitre_deprecated != true
87
87
  AND doc.revoked != true
88
88
  RETURN doc.name
89
89
  """,
90
- "mitre_attack_enterprise_aliases_v16_0.txt":
90
+ "mitre_attack_enterprise_aliases_v18_0.txt":
91
91
  """
92
92
  FOR alias IN UNIQUE(
93
93
  FLATTEN(
94
94
  FOR doc IN mitre_attack_enterprise_vertex_collection
95
- FILTER doc._stix2arango_note == "version=16_0"
95
+ FILTER doc._stix2arango_note == "version=18_0"
96
96
  AND doc.type != "x-mitre-matrix"
97
97
  AND doc.x_mitre_deprecated != true
98
98
  AND doc.revoked != true
@@ -106,10 +106,10 @@ queries = {
106
106
  )
107
107
  RETURN alias
108
108
  """,
109
- "mitre_attack_ics_id_v16_0.txt":
109
+ "mitre_attack_ics_id_v18_0.txt":
110
110
  """
111
111
  FOR doc IN mitre_attack_ics_vertex_collection
112
- FILTER doc._stix2arango_note == "version=16_0"
112
+ FILTER doc._stix2arango_note == "version=18_0"
113
113
  AND doc.type != "x-mitre-matrix"
114
114
  AND doc.x_mitre_deprecated != true
115
115
  AND doc.revoked != true
@@ -119,21 +119,21 @@ queries = {
119
119
  SORT reference.external_id ASC
120
120
  RETURN reference.external_id
121
121
  """,
122
- "mitre_attack_ics_name_v16_0.txt":
122
+ "mitre_attack_ics_name_v18_0.txt":
123
123
  """
124
124
  FOR doc IN mitre_attack_ics_vertex_collection
125
- FILTER doc._stix2arango_note == "version=16_0"
125
+ FILTER doc._stix2arango_note == "version=18_0"
126
126
  AND doc.type != "x-mitre-matrix"
127
127
  AND doc.x_mitre_deprecated != true
128
128
  AND doc.revoked != true
129
129
  RETURN doc.name
130
130
  """,
131
- "mitre_attack_ics_aliases_v16_0.txt":
131
+ "mitre_attack_ics_aliases_v18_0.txt":
132
132
  """
133
133
  FOR alias IN UNIQUE(
134
134
  FLATTEN(
135
135
  FOR doc IN mitre_attack_ics_vertex_collection
136
- FILTER doc._stix2arango_note == "version=16_0"
136
+ FILTER doc._stix2arango_note == "version=18_0"
137
137
  AND doc.type != "x-mitre-matrix"
138
138
  AND doc.x_mitre_deprecated != true
139
139
  AND doc.revoked != true
@@ -147,10 +147,10 @@ queries = {
147
147
  )
148
148
  RETURN alias
149
149
  """,
150
- "mitre_attack_mobile_id_v16_0.txt":
150
+ "mitre_attack_mobile_id_v18_0.txt":
151
151
  """
152
152
  FOR doc IN mitre_attack_mobile_vertex_collection
153
- FILTER doc._stix2arango_note == "version=16_0"
153
+ FILTER doc._stix2arango_note == "version=18_0"
154
154
  AND doc.type != "x-mitre-matrix"
155
155
  AND doc.x_mitre_deprecated != true
156
156
  AND doc.revoked != true
@@ -160,21 +160,21 @@ queries = {
160
160
  SORT reference.external_id ASC
161
161
  RETURN reference.external_id
162
162
  """,
163
- "mitre_attack_mobile_name_v16_0.txt":
163
+ "mitre_attack_mobile_name_v18_0.txt":
164
164
  """
165
165
  FOR doc IN mitre_attack_mobile_vertex_collection
166
- FILTER doc._stix2arango_note == "version=16_0"
166
+ FILTER doc._stix2arango_note == "version=18_0"
167
167
  AND doc.type != "x-mitre-matrix"
168
168
  AND doc.x_mitre_deprecated != true
169
169
  AND doc.revoked != true
170
170
  RETURN doc.name
171
171
  """,
172
- "mitre_attack_mobile_aliases_v16_0.txt":
172
+ "mitre_attack_mobile_aliases_v18_0.txt":
173
173
  """
174
174
  FOR alias IN UNIQUE(
175
175
  FLATTEN(
176
176
  FOR doc IN mitre_attack_mobile_vertex_collection
177
- FILTER doc._stix2arango_note == "version=16_0"
177
+ FILTER doc._stix2arango_note == "version=18_0"
178
178
  AND doc.type != "x-mitre-matrix"
179
179
  AND doc.x_mitre_deprecated != true
180
180
  AND doc.revoked != true
@@ -188,10 +188,10 @@ queries = {
188
188
  )
189
189
  RETURN alias
190
190
  """,
191
- "mitre_atlas_id_v4_5_2.txt":
191
+ "mitre_atlas_id_v4_9_0.txt":
192
192
  """
193
193
  FOR doc IN mitre_atlas_vertex_collection
194
- FILTER doc._stix2arango_note == "version=4_5_2"
194
+ FILTER doc._stix2arango_note == "version=4_9_0"
195
195
  AND doc.type != "x-mitre-matrix"
196
196
  AND doc.x_mitre_deprecated != true
197
197
  AND doc.revoked != true
@@ -201,19 +201,19 @@ queries = {
201
201
  SORT reference.external_id ASC
202
202
  RETURN reference.external_id
203
203
  """,
204
- "mitre_atlas_name_v4_5_2.txt":
204
+ "mitre_atlas_name_v4_9_0.txt":
205
205
  """
206
206
  FOR doc IN mitre_atlas_vertex_collection
207
- FILTER doc._stix2arango_note == "version=4_5_2"
207
+ FILTER doc._stix2arango_note == "version=4_9_0"
208
208
  AND doc.type != "x-mitre-matrix"
209
209
  AND doc.x_mitre_deprecated != true
210
210
  AND doc.revoked != true
211
211
  RETURN doc.name
212
212
  """,
213
- "disarm_id_v1_5.txt":
213
+ "disarm_id_v1_6.txt":
214
214
  """
215
215
  FOR doc IN disarm_vertex_collection
216
- FILTER doc._stix2arango_note == "version=1_5"
216
+ FILTER doc._stix2arango_note == "version=1_6"
217
217
  AND doc.type != "x-mitre-matrix"
218
218
  AND doc.x_mitre_deprecated != true
219
219
  AND doc.revoked != true
@@ -223,14 +223,23 @@ queries = {
223
223
  SORT reference.external_id ASC
224
224
  RETURN reference.external_id
225
225
  """,
226
- "disarm_name_v1_5.txt":
226
+ "disarm_name_v1_6.txt":
227
227
  """
228
228
  FOR doc IN disarm_vertex_collection
229
- FILTER doc._stix2arango_note == "version=1_5"
229
+ FILTER doc._stix2arango_note == "version=1_6"
230
230
  AND doc.type != "x-mitre-matrix"
231
231
  AND doc.x_mitre_deprecated != true
232
232
  AND doc.revoked != true
233
233
  RETURN doc.name
234
+ """,
235
+ "sector_aliases_v1_0.txt":
236
+ """
237
+ FOR doc IN sector_vertex_collection
238
+ FILTER doc._stix2arango_note == "version=1_0"
239
+ AND doc.revoked != true
240
+ FOR alias IN (doc.x_opencti_aliases ? doc.x_opencti_aliases : [])
241
+ COLLECT alias_dedup = alias
242
+ RETURN alias_dedup
234
243
  """
235
244
  }
236
245
 
@@ -1,13 +1,14 @@
1
+ DISARM
1
2
  T0002
2
3
  T0003
3
4
  T0004
4
- T0007
5
5
  T0010
6
- T0013
7
6
  T0014
8
7
  T0014.001
9
8
  T0014.002
10
9
  T0015
10
+ T0015.001
11
+ T0015.002
11
12
  T0016
12
13
  T0017
13
14
  T0017.001
@@ -23,9 +24,6 @@ T0029
23
24
  T0039
24
25
  T0040
25
26
  T0042
26
- T0043
27
- T0043.001
28
- T0043.002
29
27
  T0044
30
28
  T0045
31
29
  T0046
@@ -115,11 +113,6 @@ T0088.002
115
113
  T0089
116
114
  T0089.001
117
115
  T0089.003
118
- T0090
119
- T0090.001
120
- T0090.002
121
- T0090.003
122
- T0090.004
123
116
  T0091
124
117
  T0091.001
125
118
  T0091.002
@@ -173,31 +166,13 @@ T0102
173
166
  T0102.001
174
167
  T0102.002
175
168
  T0102.003
176
- T0103
177
- T0103.001
178
- T0103.002
179
- T0104
180
- T0104.001
181
- T0104.002
182
- T0104.003
183
- T0104.004
184
- T0104.005
185
- T0104.006
186
- T0105
187
- T0105.001
188
- T0105.002
189
- T0105.003
190
- T0106
191
- T0106.001
192
169
  T0107
193
- T0108
194
170
  T0109
195
171
  T0110
196
172
  T0111
197
173
  T0111.001
198
174
  T0111.002
199
175
  T0111.003
200
- T0112
201
176
  T0113
202
177
  T0114
203
178
  T0114.001
@@ -250,7 +225,6 @@ T0129.004
250
225
  T0129.005
251
226
  T0129.006
252
227
  T0129.007
253
- T0129.008
254
228
  T0129.009
255
229
  T0129.010
256
230
  T0130
@@ -308,9 +282,6 @@ T0140
308
282
  T0140.001
309
283
  T0140.002
310
284
  T0140.003
311
- T0141
312
- T0141.001
313
- T0141.002
314
285
  T0143
315
286
  T0143.001
316
287
  T0143.002
@@ -327,6 +298,98 @@ T0145.004
327
298
  T0145.005
328
299
  T0145.006
329
300
  T0145.007
301
+ T0146
302
+ T0146.001
303
+ T0146.002
304
+ T0146.003
305
+ T0146.004
306
+ T0146.005
307
+ T0146.006
308
+ T0146.007
309
+ T0147
310
+ T0147.001
311
+ T0147.002
312
+ T0147.003
313
+ T0147.004
314
+ T0148
315
+ T0148.001
316
+ T0148.002
317
+ T0148.003
318
+ T0148.004
319
+ T0148.005
320
+ T0148.006
321
+ T0148.007
322
+ T0148.008
323
+ T0148.009
324
+ T0149
325
+ T0149.001
326
+ T0149.002
327
+ T0149.003
328
+ T0149.004
329
+ T0149.005
330
+ T0149.006
331
+ T0149.007
332
+ T0149.008
333
+ T0149.009
334
+ T0150
335
+ T0150.001
336
+ T0150.002
337
+ T0150.003
338
+ T0150.004
339
+ T0150.005
340
+ T0150.006
341
+ T0150.007
342
+ T0150.008
343
+ T0151
344
+ T0151.001
345
+ T0151.002
346
+ T0151.003
347
+ T0151.004
348
+ T0151.005
349
+ T0151.006
350
+ T0151.007
351
+ T0151.008
352
+ T0151.009
353
+ T0151.010
354
+ T0151.011
355
+ T0151.012
356
+ T0151.013
357
+ T0151.014
358
+ T0151.015
359
+ T0151.016
360
+ T0151.017
361
+ T0152
362
+ T0152.001
363
+ T0152.002
364
+ T0152.003
365
+ T0152.004
366
+ T0152.005
367
+ T0152.006
368
+ T0152.007
369
+ T0152.008
370
+ T0152.009
371
+ T0152.010
372
+ T0152.011
373
+ T0152.012
374
+ T0153
375
+ T0153.001
376
+ T0153.002
377
+ T0153.003
378
+ T0153.004
379
+ T0153.005
380
+ T0153.006
381
+ T0153.007
382
+ T0154
383
+ T0154.001
384
+ T0154.002
385
+ T0155
386
+ T0155.001
387
+ T0155.002
388
+ T0155.003
389
+ T0155.004
390
+ T0155.005
391
+ T0155.006
392
+ T0155.007
330
393
  TA01
331
394
  TA02
332
395
  TA05