Version: 1.2.0.11
stix.exploit_target Module¶
Overview¶
The stix.exploit_target module implements ExploitTarget.
This denotes the specific vulnerability, weakness, or software configuration that creates a security risk.
Documentation Resources¶
Classes¶
-
class
stix.exploit_target.ExploitTarget(id_=None, idref=None, timestamp=None, title=None, description=None, short_description=None)¶ Bases:
stix.base.BaseCoreComponentImplementation of STIX Exploit Target.
Parameters: - id (optional) – An identifier. If
None, a value will be generated viamixbox.idgen.create_id(). If set, this will unset theidrefproperty. - idref (optional) – An identifier reference. If set this will unset the
id_property. - title (optional) – A string title.
- timestamp (optional) – A timestamp value. Can be an instance of
datetime.datetimeorstr. - description (optional) – A string description.
- short_description (optional) – A string short description.
-
add_configuration(value)¶ Adds a configuration to the
configurationslist property.Note
If
Noneis passed in no value is addedParameters: value – A configuration value. Raises: ValueError– If the value param is of typeConfiguration
-
add_description(description)¶ Adds a description to the
descriptionscollection.This is the same as calling “foo.descriptions.add(bar)”.
-
add_short_description(description)¶ Adds a description to the
short_descriptionscollection.This is the same as calling “foo.short_descriptions.add(bar)”.
-
add_vulnerability(value)¶ Adds a vulnerability to the
vulnerabilitieslist property.Note
If
Noneis passed in no value is addedParameters: value – A Vulnerabilityobject..Raises: ValueError– if the value param is of typeVulnerability
-
add_weakness(value)¶ Adds a weakness to the
weaknesseslist property.Note
If
Noneis passed in no value is addedParameters: value – A Weaknessobject.Raises: ValueError if the value param is of type
Weakness
-
description¶ A single description about the contents or purpose of this object.
Default Value:
NoneNote
If this object has more than one description set, this will return the description with the lowest ordinality value.
Returns: An instance of StructuredText
-
find(id_)¶ Searches the children of a
Entityimplementation for an object with anid_property that matches id_.
-
short_description¶ A single short description about the contents or purpose of this object.
Default Value:
NoneNote
If this object has more than one short description set, this will return the description with the lowest ordinality value.
Returns: An instance of StructuredText
-
to_dict()¶ Convert to a
dictSubclasses can override this function.
Returns: Python dict with keys set from this Entity.
-
to_json()¶ Export an object as a JSON String.
-
to_obj(ns_info=None)¶ Convert to a GenerateDS binding object.
Subclasses can override this function.
Returns: An instance of this Entity’s _binding_classwith properties set from this Entity.
- id (optional) – An identifier. If
-
class
stix.exploit_target.PotentialCOAs(coas=None, scope=None)¶ Bases:
stix.common.related.GenericRelationshipListA list of
Potential_COAobjects, defaults to empty array
-
class
stix.exploit_target.RelatedExploitTargets(related_exploit_targets=None, scope=None)¶ Bases:
stix.common.related.GenericRelationshipListA list of
RelatedExploitTargetsobjects, defaults to empty array