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

Class TTPs

stix/core/ttps.py:22–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21
22class TTPs(stix.EntityList):
23 _binding = core_binding
24 _binding_class = _binding.TTPsType
25 _namespace = 'http://docs.oasis-open.org/cti/ns/stix/core-1'
26
27 ttps = fields.TypedField(
28 name="TTP",
29 type_=TTP,
30 multiple=True,
31 key_name="ttps",
32 listfunc=partial(IdrefDeprecatedList, type=TTP)
33 )
34
35 kill_chains = fields.TypedField("Kill_Chains", KillChains)
36
37 def __init__(self, ttps=None):
38 super(TTPs, self).__init__(ttps)
39 self.kill_chains = KillChains()
40
41 def add_ttp(self, ttp):
42 self.append(ttp)

Callers 3

add_ttpMethod · 0.90
__init__Method · 0.85
add_ttpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected