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:
children

Children Elements.

consequences

Consquences refers to the potential impact of an issue.

desc

Description of the Element

meta

meta consists of the meta data associated with an Issue. In particular,

name

Name of the Element

parent

Parent 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

children

Children Elements.

consequences

Consquences refers to the potential impact of an issue.

desc

Description of the Element

meta

meta consists of the meta data associated with an Issue.

name

Name of the Element

parent

Parent Element.