From 6c11eb2a6bcbf73c1d64fdb6763eb20c3e7e4188 Mon Sep 17 00:00:00 2001 From: Ilija Lazoroski Date: Tue, 20 Sep 2022 17:49:55 +0200 Subject: [PATCH] BB: Add new EtE test that reuses stolen ssh key to exploit a machine Island --(password)--> A --(password)--> B --(A's SSH key)--> C --- envs/monkey_zoo/blackbox/test_blackbox.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/envs/monkey_zoo/blackbox/test_blackbox.py b/envs/monkey_zoo/blackbox/test_blackbox.py index 4e937cf24..01c07b480 100644 --- a/envs/monkey_zoo/blackbox/test_blackbox.py +++ b/envs/monkey_zoo/blackbox/test_blackbox.py @@ -10,6 +10,7 @@ from envs.monkey_zoo.blackbox.island_client.monkey_island_client import MonkeyIs from envs.monkey_zoo.blackbox.island_client.test_configuration_parser import get_target_ips from envs.monkey_zoo.blackbox.log_handlers.test_logs_handler import TestLogsHandler from envs.monkey_zoo.blackbox.test_configurations import ( + credential_reuse_ssh_key_test_configuration, depth_1_a_test_configuration, depth_2_a_test_configuration, depth_3_a_test_configuration, @@ -163,6 +164,11 @@ class TestMonkeyBlackbox: log_handler=log_handler, ).run() + def test_credentials_reuse_ssh_key(self, island_client): + TestMonkeyBlackbox.run_exploitation_test( + island_client, credential_reuse_ssh_key_test_configuration, "Credentials_Reuse_SSH_Key" + ) + # Not grouped because conflicts with SMB. # Consider grouping when more depth 1 exploiters collide with group depth_1_a def test_wmi_and_mimikatz_exploiters(self, island_client):