mirror of
https://github.com/DISARMFoundation/DISARMframeworks.git
synced 2024-12-19 21:04:19 -05:00
c11e9d06ad
Added framework objects: - Added technique T0066 "Degrade adversary" to TA02 - Added technique T0067 "Plan to discredit credible sources" to TA02 - Added technique T0068 "respond to breaking news event" to TA02 - Added technique T0069 "respond to active crisis" to TA02 - Added technique T0070 "Analyze existing communities" to TA02 - Added technique T0071 "Find echo chambers" to TA13 - Added technique T0072 "Segment audiences" to TA13 Added STIX generator from repo DISARM-stix2, and added code to generate github files, databases, and STIX from the same Jupyter notebook.
52 lines
1.3 KiB
Python
52 lines
1.3 KiB
Python
from stix2 import CustomObject, properties, ExternalReference
|
|
|
|
import objects.marking_definition
|
|
from objects import identity, marking_definition
|
|
|
|
|
|
@CustomObject('x-mitre-matrix', [
|
|
('name', properties.StringProperty(required=True)),
|
|
('description', properties.StringProperty(required=True)),
|
|
('tactic_refs', properties.ListProperty(properties.ReferenceProperty(valid_types="SDO"), required=True))
|
|
])
|
|
class Matrix(object):
|
|
def __init__(self, **kwargs):
|
|
if True:
|
|
pass
|
|
|
|
|
|
def make_disarm_matrix(tactics):
|
|
"""Creates a Matrix object.
|
|
|
|
Args:
|
|
tactics: A list of Tactic objects.
|
|
|
|
Returns:
|
|
|
|
"""
|
|
description = 'DISARM is a framework designed for describing and understanding disinformation incidents.'
|
|
external_references = [
|
|
{
|
|
"external_id": "DISARM",
|
|
"source_name": "DISARM",
|
|
"url": "https://github.com/DISARMFoundation"
|
|
}
|
|
]
|
|
name = 'DISARM Framework'
|
|
|
|
# print(tactics)
|
|
# p =[i.id for i in tactics]
|
|
# r = properties.ReferenceProperty()
|
|
# f = properties.ListProperty(r)
|
|
|
|
tactic_refs = [i.id for i in tactics]
|
|
|
|
matrix = Matrix(
|
|
name=name,
|
|
description=description,
|
|
external_references=external_references,
|
|
tactic_refs=tactic_refs,
|
|
allow_custom=True
|
|
)
|
|
return [matrix]
|