#3110: Correct config YAML snippets.
This commit is contained in:
@@ -22,7 +22,6 @@ Agents can be scripted (deterministic and stochastic), or controlled by a reinfo
|
|||||||
type: probabilistic-agent
|
type: probabilistic-agent
|
||||||
|
|
||||||
agent_settings:
|
agent_settings:
|
||||||
start_settings:
|
|
||||||
start_step: 5
|
start_step: 5
|
||||||
frequency: 4
|
frequency: 4
|
||||||
variance: 3
|
variance: 3
|
||||||
|
|||||||
@@ -19,10 +19,9 @@ example computer
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: client_1
|
- hostname: client_1
|
||||||
hostname: client_1
|
|
||||||
type: computer
|
type: computer
|
||||||
ip_address: 192.168.0.10
|
ip_address: 192.168.0.10c
|
||||||
subnet_mask: 255.255.255.0
|
subnet_mask: 255.255.255.0
|
||||||
default_gateway: 192.168.0.1
|
default_gateway: 192.168.0.1
|
||||||
dns_server: 192.168.1.10
|
dns_server: 192.168.1.10
|
||||||
|
|||||||
@@ -21,11 +21,8 @@ example firewall
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: firewall
|
- hostname: firewall
|
||||||
hostname: firewall
|
|
||||||
type: firewall
|
type: firewall
|
||||||
start_up_duration: 0
|
|
||||||
shut_down_duration: 0
|
|
||||||
ports:
|
ports:
|
||||||
external_port: # port 1
|
external_port: # port 1
|
||||||
ip_address: 192.168.20.1
|
ip_address: 192.168.20.1
|
||||||
@@ -70,7 +67,7 @@ The ports should be defined with an ip address and subnet mask e.g.
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
- ref: firewall
|
- hostname: firewall
|
||||||
...
|
...
|
||||||
ports:
|
ports:
|
||||||
external_port: # port 1
|
external_port: # port 1
|
||||||
@@ -129,7 +126,7 @@ example:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
- ref: firewall
|
- hostname: firewall
|
||||||
...
|
...
|
||||||
acl:
|
acl:
|
||||||
internal_inbound_acl:
|
internal_inbound_acl:
|
||||||
@@ -155,7 +152,7 @@ example:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
- ref: firewall
|
- hostname: firewall
|
||||||
...
|
...
|
||||||
acl:
|
acl:
|
||||||
internal_outbound_acl:
|
internal_outbound_acl:
|
||||||
@@ -216,7 +213,7 @@ example:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
- ref: firewall
|
- hostname: firewall
|
||||||
...
|
...
|
||||||
acl:
|
acl:
|
||||||
dmz_outbound_acl:
|
dmz_outbound_acl:
|
||||||
@@ -254,7 +251,7 @@ example:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
- ref: firewall
|
- hostname: firewall
|
||||||
...
|
...
|
||||||
acl:
|
acl:
|
||||||
external_inbound_acl:
|
external_inbound_acl:
|
||||||
@@ -282,7 +279,7 @@ example:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
- ref: firewall
|
- hotsname: firewall
|
||||||
...
|
...
|
||||||
acl:
|
acl:
|
||||||
external_outbound_acl:
|
external_outbound_acl:
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ example router
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: router_1
|
- hostname: router_1
|
||||||
hostname: router_1
|
|
||||||
type: router
|
type: router
|
||||||
num_ports: 5
|
num_ports: 5
|
||||||
ports:
|
ports:
|
||||||
@@ -49,7 +48,7 @@ Example of setting ports for a router with 2 ports:
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
- ref: router_1
|
- hostname: router_1
|
||||||
...
|
...
|
||||||
ports:
|
ports:
|
||||||
1:
|
1:
|
||||||
@@ -81,7 +80,7 @@ e.g.
|
|||||||
.. code-block:: yaml
|
.. code-block:: yaml
|
||||||
|
|
||||||
nodes:
|
nodes:
|
||||||
- ref: router_1
|
- hostname: router_1
|
||||||
...
|
...
|
||||||
acl:
|
acl:
|
||||||
1:
|
1:
|
||||||
|
|||||||
@@ -19,8 +19,7 @@ example server
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: server_1
|
- hostname: server_1
|
||||||
hostname: server_1
|
|
||||||
type: server
|
type: server
|
||||||
ip_address: 192.168.10.10
|
ip_address: 192.168.10.10
|
||||||
subnet_mask: 255.255.255.0
|
subnet_mask: 255.255.255.0
|
||||||
|
|||||||
@@ -19,7 +19,6 @@ example switch
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: switch_1
|
|
||||||
hostname: switch_1
|
hostname: switch_1
|
||||||
type: switch
|
type: switch
|
||||||
num_ports: 8
|
num_ports: 8
|
||||||
|
|||||||
@@ -48,17 +48,18 @@ Agent generation will fail pydantic checks if incorrect or invalid parameters ar
|
|||||||
team: GREEN
|
team: GREEN
|
||||||
type: example-agent
|
type: example-agent
|
||||||
|
|
||||||
action_space:
|
|
||||||
action_map:
|
|
||||||
0:
|
|
||||||
action: do-nothing
|
|
||||||
options: {}
|
|
||||||
agent_settings:
|
agent_settings:
|
||||||
start_step: 25
|
start_step: 25
|
||||||
frequency: 20
|
frequency: 20
|
||||||
variance: 5
|
variance: 5
|
||||||
starting_host: "Server_1"
|
starting_host: "Server_1"
|
||||||
|
|
||||||
|
action_space:
|
||||||
|
action_map:
|
||||||
|
0:
|
||||||
|
action: do-nothing
|
||||||
|
options: {}
|
||||||
|
|
||||||
|
|
||||||
**discriminators**:
|
**discriminators**:
|
||||||
|
|
||||||
|
|||||||
@@ -78,13 +78,11 @@ Via Configuration
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: example_computer
|
- hostname: example_computer
|
||||||
hostname: example_computer
|
|
||||||
type: computer
|
type: computer
|
||||||
...
|
...
|
||||||
applications:
|
applications:
|
||||||
- ref: database_client
|
- type: database-client
|
||||||
type: database-client
|
|
||||||
options:
|
options:
|
||||||
db_server_ip: 192.168.0.1
|
db_server_ip: 192.168.0.1
|
||||||
|
|
||||||
|
|||||||
@@ -81,13 +81,11 @@ Via Configuration
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: example_computer
|
- hostname: example_computer
|
||||||
hostname: example_computer
|
|
||||||
type: computer
|
type: computer
|
||||||
...
|
...
|
||||||
applications:
|
applications:
|
||||||
- ref: dos_bot
|
- type: dos-bot
|
||||||
type: dos-bot
|
|
||||||
options:
|
options:
|
||||||
target_ip_address: 192.168.0.10
|
target_ip_address: 192.168.0.10
|
||||||
payload: SPOOF DATA
|
payload: SPOOF DATA
|
||||||
|
|||||||
@@ -72,13 +72,11 @@ Via Configuration
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: example_server
|
- hostname: example_server
|
||||||
hostname: example_server
|
|
||||||
type: server
|
type: server
|
||||||
...
|
...
|
||||||
services:
|
services:
|
||||||
- ref: dns_client
|
- type: dns-client
|
||||||
type: dns-client
|
|
||||||
options:
|
options:
|
||||||
dns_server: 192.168.0.10
|
dns_server: 192.168.0.10
|
||||||
|
|
||||||
|
|||||||
@@ -73,13 +73,11 @@ Via Configuration
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: example_server
|
- hostname: example_server
|
||||||
hostname: example_server
|
|
||||||
type: server
|
type: server
|
||||||
...
|
...
|
||||||
services:
|
services:
|
||||||
- ref: ftp_client
|
- type: ftp-client
|
||||||
type: ftp-client
|
|
||||||
|
|
||||||
Configuration
|
Configuration
|
||||||
=============
|
=============
|
||||||
|
|||||||
@@ -68,13 +68,11 @@ Via Configuration
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: example_server
|
- hostname: example_server
|
||||||
hostname: example_server
|
|
||||||
type: server
|
type: server
|
||||||
...
|
...
|
||||||
services:
|
services:
|
||||||
- ref: ntp_client
|
- type: ntp-client
|
||||||
type: ntp-client
|
|
||||||
options:
|
options:
|
||||||
ntp_server_ip: 192.168.0.10
|
ntp_server_ip: 192.168.0.10
|
||||||
|
|
||||||
|
|||||||
@@ -68,13 +68,11 @@ Via Configuration
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: example_server
|
- hostname: example_server
|
||||||
hostname: example_server
|
|
||||||
type: server
|
type: server
|
||||||
...
|
...
|
||||||
services:
|
services:
|
||||||
- ref: ntp_server
|
- type: ntp-server
|
||||||
type: ntp-server
|
|
||||||
|
|
||||||
|
|
||||||
``Common Attributes``
|
``Common Attributes``
|
||||||
|
|||||||
@@ -68,13 +68,11 @@ Via Configuration
|
|||||||
simulation:
|
simulation:
|
||||||
network:
|
network:
|
||||||
nodes:
|
nodes:
|
||||||
- ref: example_server
|
- hostname: example_server
|
||||||
hostname: example_server
|
|
||||||
type: server
|
type: server
|
||||||
...
|
...
|
||||||
services:
|
services:
|
||||||
- ref: web_server
|
- type: web-server
|
||||||
type: web-server
|
|
||||||
|
|
||||||
|
|
||||||
``Common Attributes``
|
``Common Attributes``
|
||||||
|
|||||||
Reference in New Issue
Block a user