tmnpy.dsl.Asset
- class tmnpy.dsl.Asset(name: str, open_ports: Set[int] | List[int] | int = {}, machine: Machine | str = Machine.NA, **kwargs)
An Asset is a person, structure, facility, information, and records, information technology systems and resources, material, process, relationships, or reputation that has value[1].
As a threat model is built, assets will be assigned threats and controls that will provide information on what threats could be considered and what controls have been implemented for this component.
- Parameters:
- namestr
- open_portsList[int]
- machineMachine or str, default Machine.NA
See also
tmnpy.dsl.element.Element()
Parent class
tmnpy.dsl.ExternalEntity()
A specific type of Asset
tmnpy.dsl.Datastore()
A specific type of Asset
tmnpy.dsl.Process()
A specific type of Asset
Notes
[1]NICCS CISA. A Glossary of Common Cybersecurity Words and Phrases.
- Attributes:
name
strName of the Element
- open_portsList[int]
If there are any open ports associated with this Asset, they should be listed here. If this Asset is associated with a DataFlow to a specific port, then that port must be in open_ports.
- machineMachine
The
Methods
add_child
(child)add_child allows you to add a single child to an Element.
remove_child
(child)remove_child allows you to remove a single child to an Element.
add_control
add_data
add_open_port
add_threat
remove_control
remove_data
remove_open_port
remove_threat
- __init__(name: str, open_ports: Set[int] | List[int] | int = {}, machine: Machine | str = Machine.NA, **kwargs)
Methods
__init__
(name[, open_ports, machine])add_child
(child)add_child allows you to add a single child to an Element.
add_control
(control)add_data
(val)add_open_port
(port)add_threat
(threat)remove_child
(child)remove_child allows you to remove a single child to an Element.
remove_control
(control)remove_data
(val)remove_open_port
(port)remove_threat
(threat)Attributes
children
Children Elements.
controls
Controls that have been assigned to the Asset
data
desc
Description of the Element
machine
name
Name of the Element
open_ports
parent
Parent Element.
security_property
threats
Threats that have been assigned to the Asset