Files
PrimAITE/tests/assets/configs/eval_only_primaite_session.yaml

642 lines
18 KiB
YAML
Raw Normal View History

metadata:
version: 3.0
2023-11-26 23:29:14 +00:00
game:
2023-11-15 16:04:16 +00:00
ports:
- ARP
- DNS
- HTTP
- POSTGRES_SERVER
protocols:
- ICMP
- TCP
- UDP
2023-11-26 23:29:14 +00:00
agents:
- ref: client_2_green_user
2023-11-26 23:29:14 +00:00
team: GREEN
type: probabilistic-agent
2023-11-26 23:29:14 +00:00
action_space:
action_map:
0:
action: do-nothing
options: {}
2023-11-26 23:29:14 +00:00
reward_function:
reward_components:
- type: dummy
2023-11-26 23:29:14 +00:00
agent_settings: # options specific to this particular agent type, basically args of __init__(self)
action_probabilities:
0: 1.0
2023-11-26 23:29:14 +00:00
2024-02-08 09:19:18 +00:00
- ref: data_manipulation_attacker
2023-11-26 23:29:14 +00:00
team: RED
type: red-database-corrupting-agent
2023-11-26 23:29:14 +00:00
2023-11-26 23:29:14 +00:00
action_space:
action_map:
0:
action: do-nothing
options: {}
1:
action: node-application-execute
options:
node_name: client_1
application_name: data-manipulation-bot
2023-11-26 23:29:14 +00:00
reward_function:
reward_components:
- type: dummy
2023-11-26 23:29:14 +00:00
agent_settings: # options specific to this particular agent type, basically args of __init__(self)
possible_start_nodes: [client_1,]
target_application: data-manipulation-bot
start_step: 25
frequency: 20
variance: 5
2023-11-26 23:29:14 +00:00
- ref: defender
team: BLUE
type: proxy-agent
2023-11-26 23:29:14 +00:00
observation_space:
type: custom
2023-11-26 23:29:14 +00:00
options:
components:
- type: nodes
label: NODES
options:
hosts:
- hostname: domain_controller
- hostname: web_server
services:
- service_name: web-server
- hostname: database_server
folders:
- folder_name: database
files:
- file_name: database.db
- hostname: backup_server
- hostname: security_suite
- hostname: client_1
- hostname: client_2
num_services: 1
num_applications: 0
num_folders: 1
num_files: 1
num_nics: 2
include_num_access: false
2024-07-16 16:58:11 +01:00
include_nmne: false
routers:
- hostname: router_1
num_ports: 0
ip_list:
- 192.168.1.10
- 192.168.1.12
- 192.168.1.14
- 192.168.1.16
- 192.168.1.110
- 192.168.10.21
- 192.168.10.22
- 192.168.10.110
wildcard_list:
- 0.0.0.1
port_list:
2025-01-21 13:08:36 +00:00
- HTTP
- POSTGRES_SERVER
protocol_list:
- ICMP
- TCP
- UDP
num_rules: 10
- type: links
label: LINKS
options:
link_references:
- router_1:eth-1<->switch_1:eth-8
- router_1:eth-2<->switch_2:eth-8
- switch_1:eth-1<->domain_controller:eth-1
- switch_1:eth-2<->web_server:eth-1
- switch_1:eth-3<->database_server:eth-1
- switch_1:eth-4<->backup_server:eth-1
- switch_1:eth-7<->security_suite:eth-1
- switch_2:eth-1<->client_1:eth-1
- switch_2:eth-2<->client_2:eth-1
- switch_2:eth-7<->security_suite:eth-2
- type: "none"
label: ICS
options: {}
2023-11-26 23:29:14 +00:00
action_space:
action_map:
0:
action: do-nothing
2023-11-26 23:29:14 +00:00
options: {}
# scan webapp service
1:
action: node-service-scan
2023-11-26 23:29:14 +00:00
options:
node_name: web_server
service_name: web-server
2023-11-26 23:29:14 +00:00
# stop webapp service
2:
action: node-service-stop
2023-11-26 23:29:14 +00:00
options:
node_name: web_server
service_name: web-server
2023-11-26 23:29:14 +00:00
# start webapp service
3:
action: "node-service-start"
2023-11-26 23:29:14 +00:00
options:
node_name: web_server
service_name: web-server
2023-11-26 23:29:14 +00:00
4:
action: "node-service-pause"
2023-11-26 23:29:14 +00:00
options:
node_name: web_server
service_name: web-server
2023-11-26 23:29:14 +00:00
5:
action: "node-service-resume"
2023-11-26 23:29:14 +00:00
options:
node_name: web_server
service_name: web-server
2023-11-26 23:29:14 +00:00
6:
action: "node-service-restart"
2023-11-26 23:29:14 +00:00
options:
node_name: web_server
service_name: web-server
2023-11-26 23:29:14 +00:00
7:
action: "node-service-disable"
2023-11-26 23:29:14 +00:00
options:
node_name: web_server
service_name: web-server
2023-11-26 23:29:14 +00:00
8:
action: "node-service-enable"
2023-11-26 23:29:14 +00:00
options:
node_name: web_server
service_name: web-server
2024-01-31 10:48:40 +00:00
9: # check database.db file
action: "node-file-scan"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
folder_name: database
file_name: database.db
2023-11-26 23:29:14 +00:00
10:
action: "node-file-checkhash"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
folder_name: database
file_name: database.db
2023-11-26 23:29:14 +00:00
11:
action: "node-file-delete"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
folder_name: database
file_name: database.db
2023-11-26 23:29:14 +00:00
12:
action: "node-file-repair"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
folder_name: database
file_name: database.db
2023-11-26 23:29:14 +00:00
13:
action: "node-service-fix"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
service_name: database-service
2023-11-26 23:29:14 +00:00
14:
action: "node-folder-scan"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
folder_name: database
2023-11-26 23:29:14 +00:00
15:
action: "node-folder-checkhash"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
folder_name: database
2023-11-26 23:29:14 +00:00
16:
action: "node-folder-repair"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
folder_name: database
2023-11-26 23:29:14 +00:00
17:
action: "node-folder-restore"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
folder_name: database
2023-11-26 23:29:14 +00:00
18:
action: "node-os-scan"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
2024-01-31 10:48:40 +00:00
19: # shutdown client 1
action: "node-shutdown"
2023-11-26 23:29:14 +00:00
options:
node_name: client_1
2023-11-26 23:29:14 +00:00
20:
action: "node-startup"
2023-11-26 23:29:14 +00:00
options:
node_name: client_1
2023-11-26 23:29:14 +00:00
21:
action: "node-reset"
2023-11-26 23:29:14 +00:00
options:
node_name: client_1
22: # "acl: ADDRULE - Block outgoing traffic from client 1" (not supported in Primaite)
action: "router-acl-add-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 1
permission: DENY
src_ip: 192.168.10.21 # client 1
dst_ip: ALL # ALL
src_port: ALL
dst_port: ALL
protocol_name: ALL
src_wildcard: NONE
dst_wildcard: NONE
23: # "acl: ADDRULE - Block outgoing traffic from client 2" (not supported in Primaite)
action: "router-acl-add-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2024-01-31 10:48:40 +00:00
position: 2
permission: DENY
src_ip: 192.168.10.22 # client 2
dst_ip: ALL # ALL
src_port: ALL
dst_port: ALL
protocol_name: ALL
src_wildcard: NONE
dst_wildcard: NONE
2024-01-31 10:48:40 +00:00
24: # block tcp traffic from client 1 to web app
action: "router-acl-add-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2024-01-31 10:48:40 +00:00
position: 3
permission: DENY
src_ip: 192.168.10.21 # client 1
dst_ip: 192.168.1.12 # web server
src_port: ALL
dst_port: ALL
protocol_name: TCP
src_wildcard: NONE
dst_wildcard: NONE
2024-01-31 10:48:40 +00:00
25: # block tcp traffic from client 2 to web app
action: "router-acl-add-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2024-01-31 10:48:40 +00:00
position: 4
permission: DENY
src_ip: 192.168.10.22 # client 2
dst_ip: 192.168.1.12 # web server
src_port: ALL
dst_port: ALL
protocol_name: TCP
src_wildcard: NONE
dst_wildcard: NONE
2023-11-26 23:29:14 +00:00
26:
action: "router-acl-add-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2024-01-31 10:48:40 +00:00
position: 5
permission: DENY
src_ip: 192.168.10.21 # client 1
dst_ip: 192.168.1.14 # database
src_port: ALL
dst_port: ALL
protocol_name: TCP
src_wildcard: NONE
dst_wildcard: NONE
2023-11-26 23:29:14 +00:00
27:
action: "router-acl-add-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2024-01-31 10:48:40 +00:00
position: 6
permission: DENY
src_ip: 192.168.10.22 # client 2
dst_ip: 192.168.1.14 # database
src_port: ALL
dst_port: ALL
protocol_name: TCP
src_wildcard: NONE
dst_wildcard: NONE
2023-11-26 23:29:14 +00:00
28:
action: "router-acl-remove-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 0
29:
action: "router-acl-remove-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 1
30:
action: "router-acl-remove-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 2
31:
action: "router-acl-remove-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 3
32:
action: "router-acl-remove-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 4
33:
action: "router-acl-remove-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 5
34:
action: "router-acl-remove-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 6
35:
action: "router-acl-remove-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 7
36:
action: "router-acl-remove-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 8
37:
action: "router-acl-remove-rule"
2023-11-26 23:29:14 +00:00
options:
target_router: router_1
2023-11-26 23:29:14 +00:00
position: 9
38:
action: "host-nic-disable"
2023-11-26 23:29:14 +00:00
options:
node_name: domain_controller
nic_num: 1
2023-11-26 23:29:14 +00:00
39:
action: "host-nic-enable"
2023-11-26 23:29:14 +00:00
options:
node_name: domain_controller
nic_num: 1
2023-11-26 23:29:14 +00:00
40:
action: "host-nic-disable"
2023-11-26 23:29:14 +00:00
options:
node_name: web_server
nic_num: 1
2023-11-26 23:29:14 +00:00
41:
action: "host-nic-enable"
2023-11-26 23:29:14 +00:00
options:
node_name: web_server
nic_num: 1
2023-11-26 23:29:14 +00:00
42:
action: "host-nic-disable"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
nic_num: 1
2023-11-26 23:29:14 +00:00
43:
action: "host-nic-enable"
2023-11-26 23:29:14 +00:00
options:
node_name: database_server
nic_num: 1
2023-11-26 23:29:14 +00:00
44:
action: "host-nic-disable"
2023-11-26 23:29:14 +00:00
options:
node_name: backup_server
nic_num: 1
2023-11-26 23:29:14 +00:00
45:
action: "host-nic-enable"
2023-11-26 23:29:14 +00:00
options:
node_name: backup_server
nic_num: 1
2023-11-26 23:29:14 +00:00
46:
action: "host-nic-disable"
2023-11-26 23:29:14 +00:00
options:
node_name: security_suite
nic_num: 1
2023-11-26 23:29:14 +00:00
47:
action: "host-nic-enable"
2023-11-26 23:29:14 +00:00
options:
node_name: security_suite
nic_num: 1
2023-11-26 23:29:14 +00:00
48:
action: "host-nic-disable"
2023-11-26 23:29:14 +00:00
options:
node_name: security_suite
nic_num: 2
2023-11-26 23:29:14 +00:00
49:
action: "host-nic-enable"
2023-11-26 23:29:14 +00:00
options:
node_name: security_suite
nic_num: 2
2023-11-26 23:29:14 +00:00
50:
action: "host-nic-disable"
2023-11-26 23:29:14 +00:00
options:
node_name: client_1
nic_num: 1
2023-11-26 23:29:14 +00:00
51:
action: "host-nic-enable"
2023-11-26 23:29:14 +00:00
options:
node_name: client_1
nic_num: 1
2023-11-26 23:29:14 +00:00
52:
action: "host-nic-disable"
2023-11-26 23:29:14 +00:00
options:
node_name: client_2
nic_num: 1
2023-11-26 23:29:14 +00:00
53:
action: "host-nic-enable"
2023-11-26 23:29:14 +00:00
options:
node_name: client_2
nic_num: 1
2024-01-31 10:48:40 +00:00
2023-11-26 23:29:14 +00:00
reward_function:
reward_components:
- type: database-file-integrity
2023-11-26 23:29:14 +00:00
weight: 0.5
options:
node_hostname: database_server
2023-11-26 23:29:14 +00:00
folder_name: database
file_name: database.db
2023-11-15 16:04:16 +00:00
- type: web-server-404-penalty
2023-11-26 23:29:14 +00:00
weight: 0.5
options:
node_hostname: web_server
service_name: web_server_web_service
2023-11-15 16:04:16 +00:00
2023-11-26 23:29:14 +00:00
agent_settings:
# ...
2023-11-15 16:04:16 +00:00
simulation:
network:
nodes:
- type: router
2023-11-15 16:04:16 +00:00
hostname: router_1
num_ports: 5
ports:
1:
ip_address: 192.168.1.1
subnet_mask: 255.255.255.0
2:
2023-11-26 23:29:14 +00:00
ip_address: 192.168.1.1
2023-11-15 16:04:16 +00:00
subnet_mask: 255.255.255.0
acl:
0:
action: PERMIT
src_port: POSTGRES_SERVER
dst_port: POSTGRES_SERVER
1:
action: PERMIT
src_port: DNS
dst_port: DNS
22:
action: PERMIT
src_port: ARP
dst_port: ARP
23:
action: PERMIT
protocol: ICMP
- type: switch
2023-11-15 16:04:16 +00:00
hostname: switch_1
num_ports: 8
- type: switch
2023-11-15 16:04:16 +00:00
hostname: switch_2
num_ports: 8
- type: server
2023-11-15 16:04:16 +00:00
hostname: domain_controller
ip_address: 192.168.1.10
subnet_mask: 255.255.255.0
default_gateway: 192.168.1.1
services:
- type: dns-server
2023-11-15 16:04:16 +00:00
options:
domain_mapping:
arcd.com: 192.168.1.12 # web server
- type: server
2023-11-15 16:04:16 +00:00
hostname: web_server
ip_address: 192.168.1.12
subnet_mask: 255.255.255.0
2024-02-26 12:15:53 +00:00
default_gateway: 192.168.1.1
2023-11-15 16:04:16 +00:00
dns_server: 192.168.1.10
services:
- type: web-server
2024-02-26 12:15:53 +00:00
applications:
- type: database-client
2023-11-15 16:04:16 +00:00
options:
db_server_ip: 192.168.1.14
- type: server
2023-11-15 16:04:16 +00:00
hostname: database_server
ip_address: 192.168.1.14
subnet_mask: 255.255.255.0
default_gateway: 192.168.1.1
dns_server: 192.168.1.10
services:
- type: database-service
2023-11-15 16:04:16 +00:00
- type: server
2023-11-15 16:04:16 +00:00
hostname: backup_server
ip_address: 192.168.1.16
subnet_mask: 255.255.255.0
default_gateway: 192.168.1.1
dns_server: 192.168.1.10
services:
- type: ftp-server
2023-11-15 16:04:16 +00:00
- type: server
2023-11-15 16:04:16 +00:00
hostname: security_suite
ip_address: 192.168.1.110
subnet_mask: 255.255.255.0
default_gateway: 192.168.1.1
dns_server: 192.168.1.10
network_interfaces:
2023-11-15 16:04:16 +00:00
2: # unfortunately this number is currently meaningless, they're just added in order and take up the next available slot
ip_address: 192.168.10.110
subnet_mask: 255.255.255.0
- type: computer
2023-11-15 16:04:16 +00:00
hostname: client_1
ip_address: 192.168.10.21
subnet_mask: 255.255.255.0
default_gateway: 192.168.10.1
dns_server: 192.168.1.10
2023-11-24 11:10:34 +00:00
applications:
- type: data-manipulation-bot
2023-11-24 11:10:34 +00:00
options:
port_scan_p_of_success: 0.1
data_manipulation_p_of_success: 0.1
payload: "DELETE"
server_ip: 192.168.1.14
services:
- type: dns-client
2023-11-15 16:04:16 +00:00
- type: computer
2023-11-15 16:04:16 +00:00
hostname: client_2
ip_address: 192.168.10.22
subnet_mask: 255.255.255.0
default_gateway: 192.168.10.1
dns_server: 192.168.1.10
applications:
- type: web-browser
2023-11-15 16:04:16 +00:00
services:
- type: dns-client
2023-11-15 16:04:16 +00:00
links:
2024-04-03 22:20:33 +01:00
- endpoint_a_hostname: router_1
2023-11-15 16:04:16 +00:00
endpoint_a_port: 1
2024-04-03 22:20:33 +01:00
endpoint_b_hostname: switch_1
2023-11-15 16:04:16 +00:00
endpoint_b_port: 8
2024-04-03 22:20:33 +01:00
- endpoint_a_hostname: router_1
2023-11-15 16:04:16 +00:00
endpoint_a_port: 2
2024-04-03 22:20:33 +01:00
endpoint_b_hostname: switch_2
2023-11-15 16:04:16 +00:00
endpoint_b_port: 8
2024-04-03 22:20:33 +01:00
- endpoint_a_hostname: switch_1
2023-11-15 16:04:16 +00:00
endpoint_a_port: 1
2024-04-03 22:20:33 +01:00
endpoint_b_hostname: domain_controller
2023-11-15 16:04:16 +00:00
endpoint_b_port: 1
2024-04-03 22:20:33 +01:00
- endpoint_a_hostname: switch_1
2023-11-15 16:04:16 +00:00
endpoint_a_port: 2
2024-04-03 22:20:33 +01:00
endpoint_b_hostname: web_server
2023-11-15 16:04:16 +00:00
endpoint_b_port: 1
2024-04-03 22:20:33 +01:00
- endpoint_a_hostname: switch_1
2023-11-15 16:04:16 +00:00
endpoint_a_port: 3
2024-04-03 22:20:33 +01:00
endpoint_b_hostname: database_server
2023-11-15 16:04:16 +00:00
endpoint_b_port: 1
2024-04-03 22:20:33 +01:00
- endpoint_a_hostname: switch_1
2023-11-15 16:04:16 +00:00
endpoint_a_port: 4
2024-04-03 22:20:33 +01:00
endpoint_b_hostname: backup_server
2023-11-15 16:04:16 +00:00
endpoint_b_port: 1
2024-04-03 22:20:33 +01:00
- endpoint_a_hostname: switch_1
2023-11-15 16:04:16 +00:00
endpoint_a_port: 7
2024-04-03 22:20:33 +01:00
endpoint_b_hostname: security_suite
2023-11-15 16:04:16 +00:00
endpoint_b_port: 1
2024-04-03 22:20:33 +01:00
- endpoint_a_hostname: switch_2
2023-11-15 16:04:16 +00:00
endpoint_a_port: 1
2024-04-03 22:20:33 +01:00
endpoint_b_hostname: client_1
2023-11-15 16:04:16 +00:00
endpoint_b_port: 1
2024-04-03 22:20:33 +01:00
- endpoint_a_hostname: switch_2
2023-11-15 16:04:16 +00:00
endpoint_a_port: 2
2024-04-03 22:20:33 +01:00
endpoint_b_hostname: client_2
2023-11-15 16:04:16 +00:00
endpoint_b_port: 1
2024-04-03 22:20:33 +01:00
- endpoint_a_hostname: switch_2
2023-11-15 16:04:16 +00:00
endpoint_a_port: 7
2024-04-03 22:20:33 +01:00
endpoint_b_hostname: security_suite
2023-11-15 16:04:16 +00:00
endpoint_b_port: 2