csle_defender package

Subpackages

Submodules

csle_defender.defender module

class csle_defender.defender.Defender[source]

Bases: object

Represents an automated defender agent

static defender_transition(s: csle_common.dao.emulation_config.emulation_env_state.EmulationEnvState, defender_action: csle_common.dao.emulation_action.defender.emulation_defender_action.EmulationDefenderAction, attacker_action: Optional[csle_common.dao.emulation_action.attacker.emulation_attacker_action.EmulationAttackerAction] = None) csle_common.dao.emulation_config.emulation_env_state.EmulationEnvState[source]

Implements the transition operator of the MDP/Markov Game for defense actions, supporting both simulation and emulation mode (s, a) –> s’

Parameters
  • s – the current state

  • defender_action – the defender’s action of the transition

  • attacker_action – previous attacker action

Returns

s’

Module contents