Version: 1.1.1.5

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.Entity

Implementation of STIX Weakness.

Parameters:
  • cwe_id (optional) – Common Weakness Enumeration value as a string
  • description (optional) – A string description.
cwe_id

Common Weakness Enumeration value as a string

description

The description property for this Weakness.

Default Value: None

Note

If set to a value that is not an instance of stix.common.structured_text.StructuredText, an attempt to will be made to convert the value into an instance of stix.common.structured_text.StructuredText.

Returns:An instance of stix.common.structured_text.StructuredText