Version: 1.2.0.11
stix.exploit_target.weakness Module¶
Overview¶
The stix.exploit_target.weakness module captures a given software weakness as enumerated by CWE
Classes¶
-
class
stix.exploit_target.weakness.Weakness(description=None, cwe_id=None)¶ Bases:
stix.base.EntityImplementation of STIX
Weakness.Parameters: - cwe_id (optional) – Common Weakness Enumeration value as a string
- description (optional) – A string description.
-
add_description(description)¶ Adds a description to the
descriptionscollection.This is the same as calling “foo.descriptions.add(bar)”.
-
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