@@ -108,6 +108,7 @@ def StixObjectFactory(data: dict) -> Union[CustomStixObject, stix2.v20.sdo._Doma
108108 ("x_mitre_modified_by_ref" , ReferenceProperty (valid_types = "identity" , spec_version = "2.0" )),
109109 ("x_mitre_version" , StringProperty ()),
110110 ("x_mitre_attack_spec_version" , StringProperty ()),
111+ ("x-mitre-deprecated" , BooleanProperty (default = lambda : False )),
111112 # Matrix Properties
112113 ("tactic_refs" , ListProperty (ReferenceProperty (valid_types = "x-mitre-tactic" , spec_version = "2.0" ))),
113114 ],
@@ -141,6 +142,7 @@ class Matrix(CustomStixObject, object):
141142 ("x_mitre_modified_by_ref" , ReferenceProperty (valid_types = "identity" , spec_version = "2.0" )),
142143 ("x_mitre_version" , StringProperty ()),
143144 ("x_mitre_attack_spec_version" , StringProperty ()),
145+ ("x-mitre-deprecated" , BooleanProperty (default = lambda : False )),
144146 # Tactic Properties
145147 ("x_mitre_shortname" , StringProperty ()),
146148 ],
@@ -186,6 +188,7 @@ def get_shortname(self) -> str:
186188 ("x_mitre_modified_by_ref" , ReferenceProperty (valid_types = "identity" , spec_version = "2.0" )),
187189 ("x_mitre_version" , StringProperty ()),
188190 ("x_mitre_attack_spec_version" , StringProperty ()),
191+ ("x-mitre-deprecated" , BooleanProperty (default = lambda : False )),
189192 # Data Source Properties
190193 ("x_mitre_platforms" , ListProperty (StringProperty ())),
191194 ("x_mitre_collection_layers" , ListProperty (StringProperty ())),
@@ -220,6 +223,7 @@ class DataSource(CustomStixObject, object):
220223 ("x_mitre_modified_by_ref" , ReferenceProperty (valid_types = "identity" , spec_version = "2.0" )),
221224 ("x_mitre_version" , StringProperty ()),
222225 ("x_mitre_attack_spec_version" , StringProperty ()),
226+ ("x-mitre-deprecated" , BooleanProperty (default = lambda : False )),
223227 # Data Component Properties
224228 ("x_mitre_data_source_ref" , ReferenceProperty (valid_types = "x-mitre-data-source" , spec_version = "2.0" )),
225229 ("x_mitre_log_sources" , ListProperty (DictionaryProperty ())),
@@ -256,6 +260,7 @@ class DataComponent(CustomStixObject, object):
256260 ("x_mitre_attack_spec_version" , StringProperty ()),
257261 ("x_mitre_domains" , ListProperty (StringProperty ())),
258262 ("x_mitre_contributors" , ListProperty (StringProperty ())),
263+ ("x-mitre-deprecated" , BooleanProperty (default = lambda : False )),
259264 # Asset Properties
260265 ("sectors" , ListProperty (StringProperty ())),
261266 ("x_mitre_related_assets" , ListProperty (DictionaryProperty ())),
0 commit comments