MCPcopy Create free account
hub / github.com/STIXProject/python-stix / TTPType

Class TTPType

stix/bindings/ttp.py:1254–1488  ·  view source on GitHub ↗

TTPType characterizes an individual adversary TTP.Specifies the relevant STIX-TTP schema version for this content.

Source from the content-addressed store, hash-verified

1252
1253@register_extension
1254class TTPType(stix_common_binding.TTPBaseType):
1255 """TTPType characterizes an individual adversary TTP.Specifies the
1256 relevant STIX-TTP schema version for this content."""
1257 subclass = None
1258 superclass = stix_common_binding.TTPBaseType
1259
1260 xmlns = "http://docs.oasis-open.org/cti/ns/stix/ttp-1"
1261 xmlns_prefix = "ttp"
1262 xml_type = "TTPType"
1263 xsi_type = "%s:%s" % (xmlns_prefix, xml_type)
1264
1265 def __init__(self, idref=None, id=None, timestamp=None, version=None, Title=None, Description=None, Short_Description=None, Intended_Effect=None, Behavior=None, Resources=None, Victim_Targeting=None, Exploit_Targets=None, Related_TTPs=None, Kill_Chain_Phases=None, Information_Source=None, Kill_Chains=None, Handling=None, Related_Packages=None):
1266 super(TTPType, self).__init__(idref=idref, id=id, timestamp=timestamp)
1267 self.version = _cast(None, version)
1268 self.Title = Title
1269 if Description is None:
1270 self.Description = []
1271 else:
1272 self.Description = Description
1273 if Short_Description is None:
1274 self.Short_Description = []
1275 else:
1276 self.Short_Description = Short_Description
1277 if Intended_Effect is None:
1278 self.Intended_Effect = []
1279 else:
1280 self.Intended_Effect = Intended_Effect
1281 self.Behavior = Behavior
1282 self.Resources = Resources
1283 self.Victim_Targeting = Victim_Targeting
1284 self.Exploit_Targets = Exploit_Targets
1285 self.Related_TTPs = Related_TTPs
1286 self.Kill_Chain_Phases = Kill_Chain_Phases
1287 self.Information_Source = Information_Source
1288 self.Kill_Chains = Kill_Chains
1289 self.Handling = Handling
1290 self.Related_Packages = Related_Packages
1291 def factory(*args_, **kwargs_):
1292 if TTPType.subclass:
1293 return TTPType.subclass(*args_, **kwargs_)
1294 else:
1295 return TTPType(*args_, **kwargs_)
1296 factory = staticmethod(factory)
1297 def get_Title(self): return self.Title
1298 def set_Title(self, Title): self.Title = Title
1299 def insert_Description(self, index, value): self.Description[index] = value
1300 def add_Description(self, Description): self.Description.append(Description)
1301 def get_Description(self): return self.Description
1302 def set_Description(self, Description): self.Description = Description
1303 def insert_Short_Description(self, index, value): self.Short_Description[index] = value
1304 def add_Short_Description(self, Short_Description): self.Short_Description.append(Short_Description)
1305 def get_Short_Description(self): return self.Short_Description
1306 def set_Short_Description(self, Short_Description): self.Short_Description = Short_Description
1307 def get_Intended_Effect(self): return self.Intended_Effect
1308 def set_Intended_Effect(self, Intended_Effect): self.Intended_Effect = Intended_Effect
1309 def add_Intended_Effect(self, value): self.Intended_Effect.append(value)
1310 def insert_Intended_Effect(self, index, value): self.Intended_Effect[index] = value
1311 def get_Behavior(self): return self.Behavior

Callers 1

factoryMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected