Version: 1.1.1.7
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.BaseCoreComponent
Implementation of STIX ExploitTarget.
Parameters: - id_ (optional) – An identifier. If None, a value will be generated via stix.utils.create_id(). If set, this will unset the idref property.
- 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.datetime or str.
- description (optional) – A string description.
- short_description (optional) – A string short description.
- add_configuration(v)¶
Adds a configuration to the configurations list property.
Note
If None is passed in no value is added
Parameters: v – A configuration value. Raises: ValueError if the v param is of type stix.exploit_target.configuration
- add_vulnerability(v)¶
Adds a vulnerability to the vulnerabilies list property.
Note
If None is passed in no value is added
Parameters: v – A Vulnerability value. - Raises: ValueError if the v param is of type
- stix.exploit_target.vulnerability
- add_weakness(v)¶
Adds a weakness to the weaknesses list property.
Note
If None is passed in no value is added
Parameters: v – A weakness value. Raises: ValueError if the v param is of type stix.exploit_target.weakness
- configuration¶
A list of Configuration objects
Default Value: None
Returns: A list of stix.exploit_target.configuration Raises: ValueError – If set to a value that is not None and not an instance of stix.exploit_target.configuration
- vulnerabilities¶
A list of Vulnerability objects
Default Value: None
Returns: A list of stix.exploit_target.vulnerability Raises: ValueError – If set to a value that is not None and not an instance of stix.exploit_target.vulnerability
- weaknesses¶
A list of Weakness objects
Default Value: None
Returns: A list of stix.exploit_target.weakness Raises: ValueError – If set to a value that is not None and not an instance of stix.exploit_target.weakness
- class stix.exploit_target.PotentialCOAs(coas=None, scope=None)¶
Bases: stix.common.related.GenericRelationshipList
A list of Potential_COA objects, defaults to empty array
- class stix.exploit_target.RelatedExploitTargets(related_exploit_targets=None, scope=None)¶
Bases: stix.common.related.GenericRelationshipList
A list of RelatedExploitTargets objects, defaults to empty array