Version: 1.1.1.8
stix.ttp
Module¶
Classes¶
-
class
stix.ttp.
TTP
(id_=None, idref=None, timestamp=None, title=None, description=None, short_description=None)¶ Bases:
stix.base.BaseCoreComponent
Implementation of the STIX TTP.
Parameters: - id (optional) – An identifier. If
None
, a value will be generated viamixbox.idgen.create_id()
. If set, this will unset theidref
property. - idref (optional) – An identifier reference. If set this will unset the
id_
property. - timestamp (optional) – A timestamp value. Can be an instance of
datetime.datetime
orstr
. - description – A description of the purpose or intent of this object.
- short_description – A short description of the intent or purpose of this object.
- title – The title of this object.
-
add_exploit_target
(value)¶ Adds a
ExploitTarget
object to theexploit_targets
collection.
-
add_intended_effect
(value)¶ Adds a
Statement
object to theintended_effects
collection.If value is a string, an attempt will be made to convert it into an instance of
Statement
.
-
add_kill_chain_phase
(value)¶ Adds a
KillChainPhaseReference
to thekill_chain_phases
collection.Parameters: value – A KillChainPhase
,KillChainPhaseReference
or astr
representing the phase_id of. Note that you if you are defining a custom Kill Chain, you need to add it to the STIX package separately.
Adds a
RelatedPackageRef
object to therelated_packages
collection.Parameters: value – A RelatedPackageRef
or aSTIXPackage
object.
Adds an Related TTP to the
related_ttps
list property of thisTTP
.The TTP parameter must be an instance of
RelatedTTP
orTTP
.If the TTP parameter is
None
, no item wil be added to therelated_ttps
list property.Calling this method is the same as calling
append()
on therelated_ttps
property.See also
The
RelatedTTPs
documentation.Note
If the TTP parameter is not an instance of
RelatedTTP
an attempt will be made to convert it to one.Parameters: value – An instance of TTP
orRelatedTTP
.Raises: ValueError
– If the TTP parameter cannot be converted into an instance ofRelatedTTP
- id (optional) – An identifier. If