Skip to content

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__

__init__(hostname: str, session: int, agent: str)

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

execute(state: State) -> Observation

Execution of the Impact action that stops any OT service on the host, if red has a privileged shell on the host.

Process:

  1. find session on the chosen host
  2. find if any session are already SYSTEM or root
  3. find if host has an OT service
  4. 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