tmnpy.dsl.threat.Vulnerability
- class tmnpy.dsl.threat.Vulnerability(name: str, **kwargs)
A vulnerability is a previously known weakness in a piece of software, generally associated with a CVE. This is used in the context of a threat model to provide specific examples related to the weaknesses identified in the system as well as the related threats.
- Attributes:
childrenChildren Elements.
consequencesConsquences refers to the potential impact of an issue.
descDescription of the Element
metameta consists of the meta data associated with an Issue. In particular,
nameName of the Element
parentParent Element.
Methods
add_child(child)add_child allows you to add a single child to an Element.
add_consequence(scope, impact[, likelihood, ...])Adding a consequence to an issue.
remove_child(child)remove_child allows you to remove a single child to an Element.
remove_consequence(cid)Removing a consequence from an issue.
- __init__(name: str, **kwargs)
Methods
__init__(name, **kwargs)add_child(child)add_child allows you to add a single child to an Element.
add_consequence(scope, impact[, likelihood, ...])Adding a consequence to an issue.
remove_child(child)remove_child allows you to remove a single child to an Element.
remove_consequence(cid)Removing a consequence from an issue.
Attributes
childrenChildren Elements.
consequencesConsquences refers to the potential impact of an issue.
descDescription of the Element
metameta consists of the meta data associated with an Issue.
nameName of the Element
parentParent Element.