Closed VakarisZ closed 3 years ago
ZeroLogon exploiter is observed to be failing during BB tests. Investigate the logs and debug:
Steps to reproduce the behavior:
ZL exploiter should pass
Have we tried just restoring the zerologon VM from an image? It's possible it's just in a weird state.
I resolved this issue by deleting the zerologon-25 VM instance and recreating it from the disk image.
Describe the bug
ZeroLogon exploiter is observed to be failing during BB tests. Investigate the logs and debug:
Logs 1
``` + export PYTHONPATH=/usr/infection_monkey/monkey + PYTHONPATH=/usr/infection_monkey/monkey + pytest /usr/infection_monkey/envs/monkey_zoo/blackbox/test_blackbox.py --island=localhost:5000 ============================= test session starts ============================== platform linux -- Python 3.7.10, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 rootdir: /usr/infection_monkey/envs/monkey_zoo/blackbox, configfile: pytest.ini plugins: cov-2.12.1, requests-mock-1.8.0 collected 19 items ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_ssh_exploiter -------------------------------- live log setup -------------------------------- 22:55:37 [INFO] gcp_machine_handlers.__init__.28: GCP Handler passed key 22:55:39 [INFO] gcp_machine_handlers.__init__.31: GCP Handler set project 22:55:39 [INFO] gcp_machine_handlers.__init__.32: GCP Handler initialized successfully 22:55:39 [INFO] gcp_machine_handlers.start_machines.52: Setting up all GCP machines... 22:55:53 [INFO] gcp_machine_handlers.start_machines.57: GCP machines successfully started. 22:56:24 [INFO] test_blackbox.delete_logs.91: Deleting monkey logs before new tests. 22:56:25 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. -------------------------------- live log call --------------------------------- 22:56:26 [INFO] exploitation.print_test_starting_info.38: Started SSH_exploiter_and_keys test 22:56:26 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.11, 10.2.2.12 22:56:27 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 22:58:21 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.11 communicated back Monkey from 10.2.2.12 communicated back 22:58:21 [INFO] exploitation.log_success.59: SSH_exploiter_and_keys test passed, time taken: 113.6 seconds. 22:58:21 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:00:37 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:00:37 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:00:40 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SSH_exploiter_and_keys/10.2.2.250.txt 23:00:40 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:00:40 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 22:56:33,472 [3517:140345609328384:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 23:00:40 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 22:56:33,473 [3517:140345609328384:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 23:00:40 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:00:40 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 22:56:33,289 [3517:140345609328384:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:00:40 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SSH_exploiter_and_keys/10.2.2.11.txt 23:00:40 [INFO] monkey_log_parser.print_errors.23: No errors! 23:00:40 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:00:40 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 22:58:07,500 [1848:140272558143232:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:00:40 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SSH_exploiter_and_keys/10.2.2.12.txt 23:00:40 [INFO] monkey_log_parser.print_errors.19: Found 1 errors: 23:00:40 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 22:58:18,275 [2156:139979142604544:ERROR] monkey.start.275: Planned shutdown, reason: 23:00:40 [INFO] monkey_log_parser.print_warnings.37: No warnings! 23:00:40 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 5%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_hadoop_exploiter -------------------------------- live log call --------------------------------- 23:00:42 [INFO] exploitation.print_test_starting_info.38: Started Hadoop_exploiter test 23:00:42 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.2, 10.2.2.3 23:00:42 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 23:01:17 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.2 communicated back Monkey from 10.2.2.3 communicated back 23:01:17 [INFO] exploitation.log_success.59: Hadoop_exploiter test passed, time taken: 34.5 seconds. 23:01:17 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:06:12 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:06:12 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:06:14 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Hadoop_exploiter/10.2.2.250.txt 23:06:14 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:06:14 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:00:45,705 [3721:140208585328384:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 23:06:14 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 23:00:45,706 [3721:140208585328384:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 23:06:14 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:06:14 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:00:45,213 [3721:140208585328384:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:06:14 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Hadoop_exploiter/10.2.2.2.txt 23:06:14 [INFO] monkey_log_parser.print_errors.19: Found 1 errors: 23:06:14 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:04:24,242 [3539:140353929557760:ERROR] monkey.start.275: Planned shutdown, reason: 23:06:14 [INFO] monkey_log_parser.print_warnings.37: No warnings! 23:06:14 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Hadoop_exploiter/10.2.2.3.txt 23:06:14 [INFO] monkey_log_parser.print_errors.23: No errors! 23:06:14 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:06:14 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:02:32,987 [4784:4572:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:06:15 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 10%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_mssql_exploiter -------------------------------- live log call --------------------------------- 23:06:16 [INFO] exploitation.print_test_starting_info.38: Started MSSQL_exploiter test 23:06:16 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.16 23:06:17 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 23:06:53 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.16 communicated back 23:06:53 [INFO] exploitation.log_success.59: MSSQL_exploiter test passed, time taken: 36.4 seconds. 23:06:54 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:09:10 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:09:10 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:09:12 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/MSSQL_exploiter/10.2.2.250.txt 23:09:12 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:09:12 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:06:20,066 [3909:140457521944320:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 23:09:12 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 23:06:20,070 [3909:140457521944320:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 23:09:12 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:09:12 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:06:19,608 [3909:140457521944320:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:09:12 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/MSSQL_exploiter/10.2.2.16.txt 23:09:12 [INFO] monkey_log_parser.print_errors.19: Found 1 errors: 23:09:12 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:06:55,280 [3504:3632:ERROR] monkey.collect_system_info_if_configured.295: Exception encountered during system info collection: Command '['dism', '/online', '/get-packages']' returned non-zero exit status 740. 23:09:12 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:09:12 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:06:53,343 [3504:3632:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:09:12 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 15%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_smb_and_mimikatz_exploiters -------------------------------- live log call --------------------------------- 23:09:13 [INFO] exploitation.print_test_starting_info.38: Started SMB_exploiter_mimikatz test 23:09:13 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.14, 10.2.2.15 23:09:14 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 23:09:40 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.14 communicated back Monkey from 10.2.2.15 communicated back 23:09:40 [INFO] exploitation.log_success.59: SMB_exploiter_mimikatz test passed, time taken: 26.3 seconds. 23:09:41 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:12:18 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:12:18 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:12:20 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SMB_exploiter_mimikatz/10.2.2.250.txt 23:12:20 [INFO] monkey_log_parser.print_errors.23: No errors! 23:12:20 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:12:20 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:09:16,998 [4062:139899634185984:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:12:20 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SMB_exploiter_mimikatz/10.2.2.14.txt 23:12:20 [INFO] monkey_log_parser.print_errors.23: No errors! 23:12:20 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:12:20 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:09:35,655 [3248:3320:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:12:20 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SMB_exploiter_mimikatz/10.2.2.15.txt 23:12:20 [INFO] monkey_log_parser.print_errors.23: No errors! 23:12:20 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:12:20 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:09:42,312 [1116:1236:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:12:21 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 21%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_smb_pth -------------------------------- live log call --------------------------------- 23:12:22 [INFO] exploitation.print_test_starting_info.38: Started SMB_PTH test 23:12:22 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 23:12:23 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 23:12:23 [INFO] exploitation.log_success.57: CommunicationAnalyzer: 23:12:23 [INFO] exploitation.log_success.59: SMB_PTH test passed, time taken: 0.0 seconds. 23:12:23 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:13:04 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:13:04 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:13:05 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SMB_PTH/10.2.2.250.txt 23:13:05 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:13:05 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:12:26,303 [4213:139647061391104:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 23:13:05 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 23:12:26,307 [4213:139647061391104:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 23:13:05 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:13:05 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:12:25,852 [4213:139647061391104:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:13:06 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 26%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_drupal_exploiter -------------------------------- live log call --------------------------------- 23:13:07 [INFO] exploitation.print_test_starting_info.38: Started Drupal_exploiter test 23:13:07 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.28 23:13:08 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 23:13:33 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.28 communicated back 23:13:33 [INFO] exploitation.log_success.59: Drupal_exploiter test passed, time taken: 25.7 seconds. 23:13:34 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:15:50 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:15:50 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:15:51 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Drupal_exploiter/10.2.2.250.txt 23:15:51 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:15:51 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:13:10,737 [4362:139760816912128:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 23:15:51 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 23:13:10,741 [4362:139760816912128:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 23:15:51 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:15:51 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:13:10,277 [4362:139760816912128:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:15:51 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Drupal_exploiter/10.2.2.28.txt 23:15:51 [INFO] monkey_log_parser.print_errors.23: No errors! 23:15:51 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:15:51 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 19:13:32,125 [1828:140415097370368:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:15:52 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 31%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_elastic_exploiter -------------------------------- live log call --------------------------------- 23:15:53 [INFO] exploitation.print_test_starting_info.38: Started Elastic_exploiter test 23:15:53 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.4, 10.2.2.5 23:15:54 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 23:16:45 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.4 communicated back Monkey from 10.2.2.5 communicated back 23:16:45 [INFO] exploitation.log_success.59: Elastic_exploiter test passed, time taken: 51.2 seconds. 23:16:46 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:18:51 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:18:51 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:18:53 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Elastic_exploiter/10.2.2.250.txt 23:18:53 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:18:53 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:15:57,342 [4514:140521171457792:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 23:18:53 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 23:15:57,343 [4514:140521171457792:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 23:18:53 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:18:53 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:15:56,876 [4514:140521171457792:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:18:53 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Elastic_exploiter/10.2.2.4.txt 23:18:53 [INFO] monkey_log_parser.print_errors.23: No errors! 23:18:53 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:18:53 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:16:08,391 [2053:140154168878848:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:18:53 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Elastic_exploiter/10.2.2.5.txt 23:18:53 [INFO] monkey_log_parser.print_errors.23: No errors! 23:18:53 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:18:53 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:16:43,343 [3564:3480:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:18:54 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 36%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_struts_exploiter -------------------------------- live log call --------------------------------- 23:18:55 [INFO] exploitation.print_test_starting_info.38: Started Strtuts2_exploiter test 23:18:55 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.23, 10.2.2.24 23:18:56 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 23:20:24 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.23 communicated back Monkey from 10.2.2.24 communicated back 23:20:24 [INFO] exploitation.log_success.59: Strtuts2_exploiter test passed, time taken: 88.5 seconds. 23:20:25 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:24:16 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:24:16 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:24:18 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Strtuts2_exploiter/10.2.2.250.txt 23:24:18 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:24:18 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:18:59,126 [4681:140686632961792:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 23:24:18 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 23:18:59,128 [4681:140686632961792:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 23:24:18 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:24:18 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:18:58,648 [4681:140686632961792:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:24:18 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Strtuts2_exploiter/10.2.2.24.txt 23:24:18 [INFO] monkey_log_parser.print_errors.19: Found 1 errors: 23:24:18 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:22:54,139 [2996:748:ERROR] web_rce.change_permissions.444: Could not change permission because monkey was not found. Check path parameter. 23:24:18 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:24:18 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:19:31,890 [2996:2148:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:24:18 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Strtuts2_exploiter/10.2.2.23.txt 23:24:18 [INFO] monkey_log_parser.print_errors.23: No errors! 23:24:18 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:24:18 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:20:23,143 [2068:140215335708416:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:24:19 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 42%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_weblogic_exploiter -------------------------------- live log call --------------------------------- 23:24:20 [INFO] exploitation.print_test_starting_info.38: Started Weblogic_exploiter test 23:24:20 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.18, 10.2.2.19 23:24:21 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 23:26:31 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.18 communicated back Monkey from 10.2.2.19 communicated back 23:26:31 [INFO] exploitation.log_success.59: Weblogic_exploiter test passed, time taken: 130.0 seconds. 23:26:31 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:30:22 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:30:22 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:30:25 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Weblogic_exploiter/10.2.2.250.txt 23:30:25 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:30:25 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:24:24,085 [4836:139652929898240:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 23:30:25 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 23:24:24,086 [4836:139652929898240:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 23:30:25 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:30:25 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:24:23,610 [4836:139652929898240:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:30:25 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Weblogic_exploiter/10.2.2.18.txt 23:30:25 [INFO] monkey_log_parser.print_errors.23: No errors! 23:30:25 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:30:25 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:24:39,457 [2090:140371647596288:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:30:25 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Weblogic_exploiter/10.2.2.19.txt 23:30:25 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:30:25 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:28:16,076 [2480:1116:ERROR] monkey.start.275: Planned shutdown, reason: 23:30:25 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 23:29:31,389 [2840:252:ERROR] monkey.start.275: Planned shutdown, reason: 23:30:25 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:30:25 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:29:31,420 [2840:2244:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:30:25 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 47%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_shellshock_exploiter -------------------------------- live log call --------------------------------- 23:30:27 [INFO] exploitation.print_test_starting_info.38: Started Shellschock_exploiter test 23:30:27 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.8 23:30:27 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 23:30:42 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.8 communicated back 23:30:42 [INFO] exploitation.log_success.59: Shellschock_exploiter test passed, time taken: 14.9 seconds. 23:30:43 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:32:59 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:32:59 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:33:00 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Shellschock_exploiter/10.2.2.250.txt 23:33:00 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:33:00 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:30:32,622 [4989:140159368038144:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 23:33:00 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 23:30:32,623 [4989:140159368038144:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 23:33:00 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:33:00 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:30:32,159 [4989:140159368038144:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:33:00 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Shellschock_exploiter/10.2.2.8.txt 23:33:00 [INFO] monkey_log_parser.print_errors.23: No errors! 23:33:00 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:33:00 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:30:41,953 [2114:140432255473408:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:33:01 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 52%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_tunneling -------------------------------- live log call --------------------------------- 23:33:02 [INFO] exploitation.print_test_starting_info.38: Started Tunneling_exploiter test 23:33:02 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.9, 10.2.1.10, 10.2.0.11, 10.2.0.12 23:33:03 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 23:39:16 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.9 communicated back Monkey from 10.2.1.10 communicated back Monkey from 10.2.0.11 communicated back Monkey from 10.2.0.12 communicated back 23:39:16 [INFO] exploitation.log_success.59: Tunneling_exploiter test passed, time taken: 373.6 seconds. 23:39:17 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 23:40:50 [INFO] exploitation.parse_logs.94: Parsing test logs: 23:40:50 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 23:40:54 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Tunneling_exploiter/10.2.2.250.txt 23:40:54 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 23:40:54 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-03 23:33:06,547 [5179:140317420582656:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 23:40:54 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-03 23:33:06,548 [5179:140317420582656:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 23:40:54 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:40:54 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:33:06,070 [5179:140317420582656:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:40:54 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Tunneling_exploiter/10.2.2.9.txt 23:40:54 [INFO] monkey_log_parser.print_errors.23: No errors! 23:40:54 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 23:40:54 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:33:29,986 [2899:140342570587904:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 23:40:54 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Tunneling_exploiter/10.2.1.10.txt 23:40:54 [INFO] monkey_log_parser.print_errors.23: No errors! 23:40:54 [INFO] monkey_log_parser.print_warnings.33: Found 3 warnings: 23:40:54 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-03 23:34:20,409 [2619:139804749399808:WARNING] control.find_server.107: Error connecting to control server 10.2.2.250:5000: HTTPSConnectionPool(host='10.2.2.250', port=5000): Max retries exceeded with url: /api?action=is-up (Caused by ConnectTimeoutError(Logs 2 (older)
+ export PYTHONPATH=/usr/infection_monkey/monkey + PYTHONPATH=/usr/infection_monkey/monkey + pytest /usr/infection_monkey/envs/monkey_zoo/blackbox/test_blackbox.py --island=localhost:5000 ============================= test session starts ============================== platform linux -- Python 3.7.10, pytest-6.2.4, py-1.10.0, pluggy-0.13.1 rootdir: /usr/infection_monkey/envs/monkey_zoo/blackbox, configfile: pytest.ini plugins: cov-2.12.1, requests-mock-1.8.0 collected 19 items ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_ssh_exploiter -------------------------------- live log setup -------------------------------- 10:54:00 [INFO] gcp_machine_handlers.__init__.28: GCP Handler passed key 10:54:02 [INFO] gcp_machine_handlers.__init__.31: GCP Handler set project 10:54:02 [INFO] gcp_machine_handlers.__init__.32: GCP Handler initialized successfully 10:54:02 [INFO] gcp_machine_handlers.start_machines.52: Setting up all GCP machines... 10:54:09 [INFO] gcp_machine_handlers.start_machines.57: GCP machines successfully started. 10:54:39 [INFO] test_blackbox.delete_logs.91: Deleting monkey logs before new tests. 10:54:41 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. -------------------------------- live log call --------------------------------- 10:54:42 [INFO] exploitation.print_test_starting_info.38: Started SSH_exploiter_and_keys test 10:54:42 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.11, 10.2.2.12 10:54:43 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 10:56:37 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.11 communicated back Monkey from 10.2.2.12 communicated back 10:56:37 [INFO] exploitation.log_success.59: SSH_exploiter_and_keys test passed, time taken: 113.7 seconds. 10:56:37 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 10:58:43 [INFO] exploitation.parse_logs.94: Parsing test logs: 10:58:43 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 10:58:45 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SSH_exploiter_and_keys/10.2.2.250.txt 10:58:45 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 10:58:45 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 10:54:47,900 [3474:140639844955904:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 10:58:45 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 10:54:47,900 [3474:140639844955904:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 10:58:45 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 10:58:45 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 10:54:47,706 [3474:140639844955904:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 10:58:45 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SSH_exploiter_and_keys/10.2.2.11.txt 10:58:45 [INFO] monkey_log_parser.print_errors.23: No errors! 10:58:45 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 10:58:45 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 10:56:23,461 [1955:140317378041600:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 10:58:45 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SSH_exploiter_and_keys/10.2.2.12.txt 10:58:45 [INFO] monkey_log_parser.print_errors.19: Found 1 errors: 10:58:45 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 10:56:33,041 [2327:139861104248576:ERROR] monkey.start.275: Planned shutdown, reason: 10:58:45 [INFO] monkey_log_parser.print_warnings.37: No warnings! 10:58:46 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 5%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_hadoop_exploiter -------------------------------- live log call --------------------------------- 10:58:47 [INFO] exploitation.print_test_starting_info.38: Started Hadoop_exploiter test 10:58:47 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.2, 10.2.2.3 10:58:47 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 10:59:14 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.2 communicated back Monkey from 10.2.2.3 communicated back 10:59:14 [INFO] exploitation.log_success.59: Hadoop_exploiter test passed, time taken: 26.2 seconds. 10:59:14 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 11:04:09 [INFO] exploitation.parse_logs.94: Parsing test logs: 11:04:09 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 11:04:11 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Hadoop_exploiter/10.2.2.250.txt 11:04:11 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 11:04:11 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 10:58:51,031 [3671:139641646900992:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 11:04:11 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 10:58:51,037 [3671:139641646900992:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 11:04:11 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:04:11 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 10:58:50,505 [3671:139641646900992:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:04:11 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Hadoop_exploiter/10.2.2.2.txt 11:04:11 [INFO] monkey_log_parser.print_errors.19: Found 1 errors: 11:04:11 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:02:21,299 [3463:140276835047168:ERROR] monkey.start.275: Planned shutdown, reason: 11:04:11 [INFO] monkey_log_parser.print_warnings.37: No warnings! 11:04:11 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Hadoop_exploiter/10.2.2.3.txt 11:04:11 [INFO] monkey_log_parser.print_errors.23: No errors! 11:04:11 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:04:11 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:00:29,143 [5036:5000:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:04:12 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 10%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_mssql_exploiter -------------------------------- live log call --------------------------------- 11:04:13 [INFO] exploitation.print_test_starting_info.38: Started MSSQL_exploiter test 11:04:13 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.16 11:04:14 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 11:04:50 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.16 communicated back 11:04:50 [INFO] exploitation.log_success.59: MSSQL_exploiter test passed, time taken: 36.4 seconds. 11:04:51 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 11:07:07 [INFO] exploitation.parse_logs.94: Parsing test logs: 11:07:07 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 11:07:09 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/MSSQL_exploiter/10.2.2.250.txt 11:07:09 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 11:07:09 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:04:17,331 [3831:140681463473920:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 11:07:09 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 11:04:17,333 [3831:140681463473920:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 11:07:09 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:07:09 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:04:16,814 [3831:140681463473920:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:07:09 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/MSSQL_exploiter/10.2.2.16.txt 11:07:09 [INFO] monkey_log_parser.print_errors.19: Found 1 errors: 11:07:09 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:04:49,985 [3108:2576:ERROR] monkey.collect_system_info_if_configured.295: Exception encountered during system info collection: Command '['dism', '/online', '/get-packages']' returned non-zero exit status 740. 11:07:09 [INFO] monkey_log_parser.print_warnings.33: Found 2 warnings: 11:07:09 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:04:49,719 [3108:3156:WARNING] ransomware_payload._leave_readme.93: An error occurred while attempting to leave a README.txt file: [Errno 13] Permission denied: 'README.txt' 11:07:09 [INFO] monkey_log_parser.print_warnings.35: Warn #1: 2021-07-02 11:04:49,735 [3108:2576:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:07:09 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 15%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_smb_and_mimikatz_exploiters -------------------------------- live log call --------------------------------- 11:07:11 [INFO] exploitation.print_test_starting_info.38: Started SMB_exploiter_mimikatz test 11:07:11 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.14, 10.2.2.15 11:07:11 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 11:07:42 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.14 communicated back Monkey from 10.2.2.15 communicated back 11:07:42 [INFO] exploitation.log_success.59: SMB_exploiter_mimikatz test passed, time taken: 30.5 seconds. 11:07:42 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 11:10:19 [INFO] exploitation.parse_logs.94: Parsing test logs: 11:10:19 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 11:10:22 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SMB_exploiter_mimikatz/10.2.2.250.txt 11:10:22 [INFO] monkey_log_parser.print_errors.23: No errors! 11:10:22 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:10:22 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:07:14,183 [4025:140289084638976:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:10:22 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SMB_exploiter_mimikatz/10.2.2.14.txt 11:10:22 [INFO] monkey_log_parser.print_errors.23: No errors! 11:10:22 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:10:22 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:07:33,093 [2008:2556:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:10:22 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SMB_exploiter_mimikatz/10.2.2.15.txt 11:10:22 [INFO] monkey_log_parser.print_errors.23: No errors! 11:10:22 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:10:22 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:07:40,300 [944:2456:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:10:22 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 21%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_smb_pth -------------------------------- live log call --------------------------------- 11:10:24 [INFO] exploitation.print_test_starting_info.38: Started SMB_PTH test 11:10:24 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 11:10:24 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 11:10:24 [INFO] exploitation.log_success.57: CommunicationAnalyzer: 11:10:24 [INFO] exploitation.log_success.59: SMB_PTH test passed, time taken: 0.0 seconds. 11:10:25 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 11:11:05 [INFO] exploitation.parse_logs.94: Parsing test logs: 11:11:05 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 11:11:07 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/SMB_PTH/10.2.2.250.txt 11:11:07 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 11:11:07 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:10:27,643 [4193:139846309971712:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 11:11:07 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 11:10:27,644 [4193:139846309971712:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 11:11:07 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:11:07 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:10:27,142 [4193:139846309971712:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:11:07 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 26%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_drupal_exploiter -------------------------------- live log call --------------------------------- 11:11:08 [INFO] exploitation.print_test_starting_info.38: Started Drupal_exploiter test 11:11:08 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.28 11:11:09 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 11:11:35 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.28 communicated back 11:11:35 [INFO] exploitation.log_success.59: Drupal_exploiter test passed, time taken: 25.7 seconds. 11:11:35 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 11:13:51 [INFO] exploitation.parse_logs.94: Parsing test logs: 11:13:51 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 11:13:53 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Drupal_exploiter/10.2.2.250.txt 11:13:53 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 11:13:53 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:11:12,649 [4342:139709573490432:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 11:13:53 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 11:11:12,650 [4342:139709573490432:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 11:13:53 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:13:53 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:11:12,106 [4342:139709573490432:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:13:53 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Drupal_exploiter/10.2.2.28.txt 11:13:53 [INFO] monkey_log_parser.print_errors.23: No errors! 11:13:53 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:13:53 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 07:11:33,951 [1829:140333548726016:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:13:54 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 31%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_elastic_exploiter -------------------------------- live log call --------------------------------- 11:13:55 [INFO] exploitation.print_test_starting_info.38: Started Elastic_exploiter test 11:13:55 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.4, 10.2.2.5 11:13:55 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 11:14:43 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.4 communicated back Monkey from 10.2.2.5 communicated back 11:14:43 [INFO] exploitation.log_success.59: Elastic_exploiter test passed, time taken: 47.0 seconds. 11:14:43 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 11:16:59 [INFO] exploitation.parse_logs.94: Parsing test logs: 11:16:59 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 11:17:01 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Elastic_exploiter/10.2.2.250.txt 11:17:01 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 11:17:01 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:13:58,993 [4492:140147008313088:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 11:17:01 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 11:13:58,995 [4492:140147008313088:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 11:17:01 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:17:01 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:13:58,473 [4492:140147008313088:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:17:01 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Elastic_exploiter/10.2.2.4.txt 11:17:01 [INFO] monkey_log_parser.print_errors.23: No errors! 11:17:01 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:17:01 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:14:09,352 [2021:139979259107072:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:17:01 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Elastic_exploiter/10.2.2.5.txt 11:17:01 [INFO] monkey_log_parser.print_errors.23: No errors! 11:17:01 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:17:01 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:14:44,244 [3284:3304:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:17:02 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 36%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_struts_exploiter -------------------------------- live log call --------------------------------- 11:17:03 [INFO] exploitation.print_test_starting_info.38: Started Strtuts2_exploiter test 11:17:03 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.23, 10.2.2.24 11:17:04 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 11:18:33 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.23 communicated back Monkey from 10.2.2.24 communicated back 11:18:33 [INFO] exploitation.log_success.59: Strtuts2_exploiter test passed, time taken: 88.7 seconds. 11:18:33 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 11:22:24 [INFO] exploitation.parse_logs.94: Parsing test logs: 11:22:24 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 11:22:27 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Strtuts2_exploiter/10.2.2.250.txt 11:22:27 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 11:22:27 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:17:07,443 [4657:139622331967232:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 11:22:27 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 11:17:07,449 [4657:139622331967232:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 11:22:27 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:22:27 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:17:06,940 [4657:139622331967232:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:22:27 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Strtuts2_exploiter/10.2.2.24.txt 11:22:27 [INFO] monkey_log_parser.print_errors.19: Found 1 errors: 11:22:27 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:21:01,784 [756:704:ERROR] web_rce.change_permissions.444: Could not change permission because monkey was not found. Check path parameter. 11:22:27 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:22:27 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:17:38,096 [756:2800:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:22:27 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Strtuts2_exploiter/10.2.2.23.txt 11:22:27 [INFO] monkey_log_parser.print_errors.23: No errors! 11:22:27 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:22:27 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:18:31,658 [2144:140260516050688:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:22:27 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 42%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_weblogic_exploiter -------------------------------- live log call --------------------------------- 11:22:29 [INFO] exploitation.print_test_starting_info.38: Started Weblogic_exploiter test 11:22:29 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.18, 10.2.2.19 11:22:29 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 11:24:48 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.18 communicated back Monkey from 10.2.2.19 communicated back 11:24:48 [INFO] exploitation.log_success.59: Weblogic_exploiter test passed, time taken: 138.6 seconds. 11:24:48 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 11:28:29 [INFO] exploitation.parse_logs.94: Parsing test logs: 11:28:29 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 11:28:31 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Weblogic_exploiter/10.2.2.250.txt 11:28:31 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 11:28:31 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:22:32,919 [4811:139771707209472:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 11:28:31 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 11:22:32,920 [4811:139771707209472:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 11:28:31 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:28:31 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:22:32,411 [4811:139771707209472:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:28:31 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Weblogic_exploiter/10.2.2.18.txt 11:28:31 [INFO] monkey_log_parser.print_errors.23: No errors! 11:28:31 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:28:31 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:22:48,730 [2146:140208326567680:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:28:31 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Weblogic_exploiter/10.2.2.19.txt 11:28:31 [INFO] monkey_log_parser.print_errors.19: Found 1 errors: 11:28:31 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:27:41,436 [1996:188:ERROR] monkey.start.275: Planned shutdown, reason: 11:28:31 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:28:31 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:27:41,467 [1996:1588:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:28:32 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. PASSED [ 47%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_shellshock_exploiter -------------------------------- live log call --------------------------------- 11:28:33 [INFO] exploitation.print_test_starting_info.38: Started Shellschock_exploiter test 11:28:33 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.8 11:28:34 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 11:33:35 [INFO] exploitation.log_failure.63: CommunicationAnalyzer: Monkey from 10.2.2.8 didn't communicate back 11:33:35 [ERROR] exploitation.log_failure.66: Shellschock_exploiter test failed because of timeout. Time taken: 300.9 seconds. 11:33:35 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 11:34:16 [INFO] exploitation.parse_logs.94: Parsing test logs: 11:34:16 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 11:34:17 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Shellschock_exploiter/10.2.2.250.txt 11:34:17 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 11:34:17 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:28:37,089 [5591:139820571551488:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 11:34:17 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 11:28:37,090 [5591:139820571551488:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 11:34:17 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:34:17 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:28:36,600 [5591:139820571551488:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:34:18 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test. FAILED [ 52%] ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_tunneling -------------------------------- live log call --------------------------------- 11:34:19 [INFO] exploitation.print_test_starting_info.38: Started Tunneling_exploiter test 11:34:19 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.9, 10.2.1.10, 10.2.0.11, 10.2.0.12 11:34:20 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey. 11:40:40 [INFO] exploitation.log_success.57: CommunicationAnalyzer: Monkey from 10.2.2.9 communicated back Monkey from 10.2.1.10 communicated back Monkey from 10.2.0.11 communicated back Monkey from 10.2.0.12 communicated back 11:40:40 [INFO] exploitation.log_success.59: Tunneling_exploiter test passed, time taken: 380.0 seconds. 11:40:40 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test. 11:42:14 [INFO] exploitation.parse_logs.94: Parsing test logs: 11:42:14 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log. 11:42:17 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Tunneling_exploiter/10.2.2.250.txt 11:42:17 [INFO] monkey_log_parser.print_errors.19: Found 2 errors: 11:42:17 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:34:23,381 [5742:140190618220288:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials 11:42:17 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 11:34:23,382 [5742:140190618220288:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials 11:42:17 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:42:17 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:34:22,900 [5742:140190618220288:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:42:17 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Tunneling_exploiter/10.2.2.9.txt 11:42:17 [INFO] monkey_log_parser.print_errors.23: No errors! 11:42:17 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings: 11:42:17 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:34:49,302 [2596:139894785373952:WARNING] azure_instance.__init__.54: Metadata response not ok: 404 11:42:17 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/Tunneling_exploiter/10.2.1.10.txt 11:42:17 [INFO] monkey_log_parser.print_errors.23: No errors! 11:42:17 [INFO] monkey_log_parser.print_warnings.33: Found 3 warnings: 11:42:17 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:35:36,948 [2551:139769063683840:WARNING] control.find_server.107: Error connecting to control server 10.2.2.250:5000: HTTPSConnectionPool(host='10.2.2.250', port=5000): Max retries exceeded with url: /api?action=is-up (Caused by ConnectTimeoutError(To Reproduce
Steps to reproduce the behavior:
Expected behavior
ZL exploiter should pass
Tasks