Impact
Bases: Action
Impact (stop service) any OT service on the host, if red has a privileged shell on the host.
Attributes:
Name | Type | Description |
---|---|---|
session |
int
|
The source session id. |
agent |
str
|
the name of the agent executing the action |
hostname |
str
|
the name of the host the action is executed on |
Functions
__init__
Parameters:
Name | Type | Description | Default |
---|---|---|---|
session |
int
|
session id |
required |
agent |
str
|
name of agent carrying out the action |
required |
hostname |
str
|
name of the host the action is being carried out on |
required |
execute
Execution of the Impact action that stops any OT service on the host, if red has a privileged shell on the host.
Process:
- find session on the chosen host
- find if any session are already SYSTEM or root
- find if host has an OT service
- impact/stop OT service
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state |
State
|
The state of the simulated network at the current step. |
required |
Returns:
Name | Type | Description |
---|---|---|
obs |
Observation
|
successful/unsuccessful observation |