Files
PrimAITE/tests/assets/configs/scenario_with_placeholders/scenario.yaml

153 lines
3.2 KiB
YAML
Raw Normal View History

metadata:
version: 3.0
2024-04-25 15:09:46 +01:00
io_settings:
save_agent_actions: true
save_step_metadata: false
save_pcap_logs: false
save_sys_logs: false
game:
max_episode_length: 128
ports:
- HTTP
- POSTGRES_SERVER
protocols:
- ICMP
- TCP
- UDP
thresholds:
nmne:
high: 10
medium: 5
low: 0
agents:
- *greens
- *reds
- ref: defender
team: BLUE
type: proxy-agent
2024-04-25 15:09:46 +01:00
observation_space:
type: custom
2024-04-25 15:09:46 +01:00
options:
components:
- type: nodes
2024-04-25 15:09:46 +01:00
label: NODES
options:
routers: []
hosts:
- hostname: client
- hostname: server
num_services: 1
num_applications: 1
num_folders: 1
num_files: 1
num_nics: 1
include_num_access: false
2024-07-17 10:43:04 +01:00
include_nmne: false
2024-04-25 15:09:46 +01:00
- type: links
2024-04-25 15:09:46 +01:00
label: LINKS
options:
link_references:
- client:eth-1<->switch_1:eth-1
- server:eth-1<->switch_1:eth-2
action_space:
action_map:
0:
action: do-nothing
2024-04-25 15:09:46 +01:00
options: {}
1:
action: node-shutdown
2024-04-25 15:09:46 +01:00
options:
node_name: client
2024-04-25 15:09:46 +01:00
2:
action: node-shutdown
2024-04-25 15:09:46 +01:00
options:
node_name: server
2024-04-25 15:09:46 +01:00
3:
action: node-startup
2024-04-25 15:09:46 +01:00
options:
node_name: client
2024-04-25 15:09:46 +01:00
4:
action: node-startup
2024-04-25 15:09:46 +01:00
options:
node_name: server
2024-04-25 15:09:46 +01:00
5:
action: host-nic-disable
2024-04-25 15:09:46 +01:00
options:
node_name: client
nic_num: 1
2024-04-25 15:09:46 +01:00
6:
action: host-nic-disable
2024-04-25 15:09:46 +01:00
options:
node_name: server
nic_num: 1
2024-04-25 15:09:46 +01:00
7:
action: host-nic-enable
2024-04-25 15:09:46 +01:00
options:
node_name: client
nic_num: 1
2024-04-25 15:09:46 +01:00
8:
action: host-nic-enable
2024-04-25 15:09:46 +01:00
options:
node_name: server
nic_num: 1
2024-04-25 15:09:46 +01:00
reward_function:
reward_components:
- type: database-file-integrity
2024-04-25 15:09:46 +01:00
weight: 0.40
options:
node_hostname: database_server
folder_name: database
file_name: database.db
agent_settings:
flatten_obs: false
simulation:
network:
nodes:
- hostname: client
type: computer
ip_address: 192.168.1.2
subnet_mask: 255.255.255.0
default_gateway: 192.168.1.1
applications:
- type: database-client
2024-04-25 15:09:46 +01:00
options:
db_server_ip: 192.168.1.3
- type: data-manipulation-bot
2024-04-25 15:09:46 +01:00
options:
server_ip: 192.168.1.3
payload: "DELETE"
- hostname: switch_1
type: switch
num_ports: 2
- hostname: server
type: server
ip_address: 192.168.1.3
subnet_mask: 255.255.255.0
default_gateway: 192.168.1.1
services:
- type: database-service
2024-04-25 15:09:46 +01:00
links:
- endpoint_a_hostname: client
endpoint_a_port: 1
endpoint_b_hostname: switch_1
endpoint_b_port: 1
- endpoint_a_hostname: server
endpoint_a_port: 1
endpoint_b_hostname: switch_1
endpoint_b_port: 2