Degrade Services
Bases: Action
A Red action that attempts to degrade a service used by green in the mission.
This is achieved by stopping a random service currently running on a host that red has root priviliges on.
Attributes:
Name | Type | Description |
---|---|---|
hostname |
str
|
The name of the host the red agent is intefering with. |
session |
int
|
The source session id. |
agent |
str
|
The name of the red agent executing the action. |
Functions
__init__
Parameters:
Name | Type | Description | Default |
---|---|---|---|
hostname |
str
|
The name of the host the red agent is intefering with. |
required |
session |
int
|
The source session id. |
required |
agent |
str
|
The name of the red agent executing the action. |
required |
execute
Executes the DegradeServices action. Action process: 1) Check if there are sessions for the agent on this host - if not, return unsuccessful obs 2) Check one of those sessions has root or sudo priviledges. - if not, return unsuccessful obs 3) Check if host has services 4) Degrade all services on host
Parameters:
Name | Type | Description | Default |
---|---|---|---|
state |
State
|
The state of the simulated network at the current step. |
required |
Returns:
Name | Type | Description |
---|---|---|
obs |
Observation
|
An observation indicating the action's success as True/False, and the service stopped, if any. |