Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BB: Add SNMP configuration to depth_1_a grouped tests #3330

Merged
merged 1 commit into from
May 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions envs/monkey_zoo/blackbox/gcp_test_machine_list.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
"log4j-solr-50",
"log4j-tomcat-51",
"log4j-tomcat-52",
"snmp-20",
],
}

Expand All @@ -53,6 +54,7 @@
"log4j-solr-50",
"log4j-tomcat-51",
"log4j-tomcat-52",
"snmp-20",
],
}

Expand Down
7 changes: 7 additions & 0 deletions envs/monkey_zoo/blackbox/test_configurations/depth_1_a.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
# Log4shell (10.2.3.55, 10.2.3.56, 10.2.3.49, 10.2.3.50, 10.2.3.51, 10.2.3.52)
# MSSQL (10.2.2.16)
# SMB mimikatz password stealing and brute force (10.2.2.14 and 10.2.2.15)
# SNMP (10.2.3.20)


def _add_exploiters(agent_configuration: AgentConfiguration) -> AgentConfiguration:
Expand All @@ -35,6 +36,10 @@ def _add_exploiters(agent_configuration: AgentConfiguration) -> AgentConfigurati
"Log4ShellExploiter": {},
"MSSQLExploiter": {},
"SMB": {"agent_binary_upload_timeout": 30, "smb_connect_timeout": 15},
"SNMP": {
"snmp_request_timeout": 0.5,
"snmp_retries": 1,
},
}

return add_exploiters(agent_configuration, exploiters=exploiters)
Expand All @@ -59,6 +64,7 @@ def _add_subnets(agent_configuration: AgentConfiguration) -> AgentConfiguration:
"10.2.2.16",
"10.2.2.14",
"10.2.2.15",
"10.2.3.20",
]
return add_subnets(agent_configuration, subnets)

Expand Down Expand Up @@ -92,6 +98,7 @@ def _add_http_ports(agent_configuration: AgentConfiguration) -> AgentConfigurati

CREDENTIALS = (
Credentials(identity=Username(username="m0nk3y"), secret=None),
Credentials(identity=Username(username="c0mmun1ty"), secret=None),
Credentials(identity=None, secret=Password(password="Ivrrw5zEzs")),
Credentials(identity=None, secret=Password(password="Xk8VDTsC")),
)
Expand Down