Skip to content

ZeroLogon BB test fails. #1295

@VakarisZ

Description

@VakarisZ

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(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f26ccf2c290>, 'Connection to 10.2.2.250 timed out. (connect timeout=15)'))
23:40:54 [INFO] monkey_log_parser.print_warnings.35: Warn #1:  2021-07-03 23:34:35,426 [2619:139804749399808:WARNING] control.find_server.107: Error connecting to control server 192.0.2.0:5000: HTTPSConnectionPool(host='192.0.2.0', port=5000): Max retries exceeded with url: /api?action=is-up (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f26ccf2cdd0>, 'Connection to 192.0.2.0 timed out. (connect timeout=15)'))
23:40:54 [INFO] monkey_log_parser.print_warnings.35: Warn #2:  2021-07-03 23:35:55,559 [2619:139804532532992: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.0.11.txt
23:40:54 [INFO] monkey_log_parser.print_errors.19: Found 1 errors:
23:40:54 [INFO] monkey_log_parser.print_errors.21: Err #0:  2021-07-03 23:38:16,226 [2108:140306478655232:ERROR] monkey.start.275: Planned shutdown, reason:
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:36:42,514 [2108:140306478655232: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(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b9e579850>, 'Connection to 10.2.2.250 timed out. (connect timeout=15)'))
23:40:54 [INFO] monkey_log_parser.print_warnings.35: Warn #1:  2021-07-03 23:36:57,519 [2108:140306478655232:WARNING] control.find_server.107: Error connecting to control server 192.0.2.0:5000: HTTPSConnectionPool(host='192.0.2.0', port=5000): Max retries exceeded with url: /api?action=is-up (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f9b9e579fd0>, 'Connection to 192.0.2.0 timed out. (connect timeout=15)'))
23:40:54 [INFO] monkey_log_parser.print_warnings.35: Warn #2:  2021-07-03 23:38:16,268 [2108:140306329392896: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.0.12.txt
23:40:54 [INFO] monkey_log_parser.print_errors.19: Found 1 errors:
23:40:54 [INFO] monkey_log_parser.print_errors.21: Err #0:  2021-07-03 23:39:18,235 [2944:2828:ERROR] monkey.start.275: Planned shutdown, reason:
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:38:58,798 [2944:2828: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(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001AAFB411C08>, 'Connection to 10.2.2.250 timed out. (connect timeout=15)'))
23:40:54 [INFO] monkey_log_parser.print_warnings.35: Warn #1:  2021-07-03 23:39:13,798 [2944:2828:WARNING] control.find_server.107: Error connecting to control server 192.0.2.0:5000: HTTPSConnectionPool(host='192.0.2.0', port=5000): Max retries exceeded with url: /api?action=is-up (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x000001AAFB426D08>, 'Connection to 192.0.2.0 timed out. (connect timeout=15)'))
23:40:54 [INFO] monkey_log_parser.print_warnings.35: Warn #2:  2021-07-03 23:39:18,360 [2944:2508:WARNING] azure_instance.__init__.54: Metadata response not ok: 404
23:40:55 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test.
PASSED                                                                   [ 57%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_wmi_and_mimikatz_exploiters 
-------------------------------- live log call ---------------------------------
23:40:56 [INFO] exploitation.print_test_starting_info.38: Started WMI_exploiter,_mimikatz test
23:40:56 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.14, 10.2.2.15
23:40:56 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey.
23:41:18 [INFO] exploitation.log_success.57: 
CommunicationAnalyzer: 
Monkey from 10.2.2.14 communicated back
Monkey from 10.2.2.15 communicated back

23:41:18 [INFO] exploitation.log_success.59: WMI_exploiter,_mimikatz test passed, time taken: 22.0 seconds.
23:41:19 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test.
23:43:14 [INFO] exploitation.parse_logs.94: Parsing test logs:
23:43:14 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log.
23:43:16 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/WMI_exploiter,_mimikatz/10.2.2.250.txt
23:43:16 [INFO] monkey_log_parser.print_errors.23: No errors!
23:43:16 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings:
23:43:16 [INFO] monkey_log_parser.print_warnings.35: Warn #0:  2021-07-03 23:40:59,321 [5349:140691035842304:WARNING] azure_instance.__init__.54: Metadata response not ok: 404
23:43:16 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/WMI_exploiter,_mimikatz/10.2.2.14.txt
23:43:16 [INFO] monkey_log_parser.print_errors.23: No errors!
23:43:16 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings:
23:43:16 [INFO] monkey_log_parser.print_warnings.35: Warn #0:  2021-07-03 23:41:16,795 [1172:3664:WARNING] azure_instance.__init__.54: Metadata response not ok: 404
23:43:16 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/WMI_exploiter,_mimikatz/10.2.2.15.txt
23:43:16 [INFO] monkey_log_parser.print_errors.23: No errors!
23:43:16 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings:
23:43:16 [INFO] monkey_log_parser.print_warnings.35: Warn #0:  2021-07-03 23:41:20,921 [3044:788:WARNING] azure_instance.__init__.54: Metadata response not ok: 404
23:43:17 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test.
PASSED                                                                   [ 63%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_wmi_pth 
-------------------------------- live log call ---------------------------------
23:43:18 [INFO] exploitation.print_test_starting_info.38: Started WMI_PTH test
23:43:18 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.15
23:43:19 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey.
23:43:41 [INFO] exploitation.log_success.57: 
CommunicationAnalyzer: 
Monkey from 10.2.2.15 communicated back

23:43:41 [INFO] exploitation.log_success.59: WMI_PTH test passed, time taken: 22.1 seconds.
23:43:41 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test.
23:45:36 [INFO] exploitation.parse_logs.94: Parsing test logs:
23:45:36 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log.
23:45:38 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/WMI_PTH/10.2.2.250.txt
23:45:38 [INFO] monkey_log_parser.print_errors.19: Found 2 errors:
23:45:38 [INFO] monkey_log_parser.print_errors.21: Err #0:  2021-07-03 23:43:21,635 [5501:140030587758336:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials
23:45:38 [INFO] monkey_log_parser.print_errors.21: Err #1:  2021-07-03 23:43:21,637 [5501:140030587758336:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials
23:45:38 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings:
23:45:38 [INFO] monkey_log_parser.print_warnings.35: Warn #0:  2021-07-03 23:43:21,200 [5501:140030587758336:WARNING] azure_instance.__init__.54: Metadata response not ok: 404
23:45:38 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/WMI_PTH/10.2.2.15.txt
23:45:38 [INFO] monkey_log_parser.print_errors.23: No errors!
23:45:38 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings:
23:45:38 [INFO] monkey_log_parser.print_warnings.35: Warn #0:  2021-07-03 23:43:38,441 [1720:1924:WARNING] azure_instance.__init__.54: Metadata response not ok: 404
23:45:38 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test.
PASSED                                                                   [ 68%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_zerologon_exploiter 
-------------------------------- live log call ---------------------------------
23:45:39 [INFO] exploitation.print_test_starting_info.38: Started Zerologon_exploiter test
23:45:39 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.25
23:45:40 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey.
23:50:44 [INFO] exploitation.log_failure.63: 
ZerologonAnalyzer: 
Credential Zerologon exploiter failed to gathered:Administrator.
Credential Zerologon exploiter failed to gathered:aad3b435b51404eeaad3b435b51404ee.
Credential Zerologon exploiter failed to gathered:2864b62ea4496934a5d6e86f50b834a5.
Credential restore failed or credential restore telemetry not found on the Monkey Island.
Query for credential restore telem: {'data.exploiter': 'ZerologonExploiter',
'data.info.password_restored': True,
'telem_category': 'exploit'}

23:50:44 [ERROR] exploitation.log_failure.66: Zerologon_exploiter test failed because of timeout. Time taken: 304.0 seconds.
23:50:45 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test.
23:56:43 [INFO] exploitation.parse_logs.94: Parsing test logs:
23:56:43 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log.
23:56:44 [ERROR] monkey_log.download_log.17: Log for monkey 10.2.2.250 not found
23:56:44 [ERROR] test_logs_handler.parse_test_logs.22: No logs were downloaded. Maybe no monkeys were ran or early exception prevented log download?
23:56:45 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test.
FAILED                                                                   [ 73%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_report_generation_performance SKIPPED [ 78%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_map_generation_performance SKIPPED [ 84%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_report_generation_from_fake_telemetries SKIPPED [ 89%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_map_generation_from_fake_telemetries SKIPPED [ 94%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_telem_performance SKIPPED [100%]
------------------------------ live log teardown -------------------------------
23:57:41 [INFO] gcp_machine_handlers.stop_machines.66: GCP machines stopped successfully.


=================================== FAILURES ===================================
_________________ TestMonkeyBlackbox.test_zerologon_exploiter __________________

self = <envs.monkey_zoo.blackbox.test_blackbox.TestMonkeyBlackbox object at 0x7f7d612ec050>
island_client = <envs.monkey_zoo.blackbox.island_client.monkey_island_client.MonkeyIslandClient object at 0x7f7d619cf890>

  def test_zerologon_exploiter(self, island_client):
      test_name = "Zerologon_exploiter"
      expected_creds = [
          "Administrator",
          "aad3b435b51404eeaad3b435b51404ee",
          "2864b62ea4496934a5d6e86f50b834a5",
      ]
      raw_config = IslandConfigParser.get_raw_config(Zerologon, island_client)
      analyzer = ZerologonAnalyzer(island_client, expected_creds)
      log_handler = TestLogsHandler(
          test_name, island_client, TestMonkeyBlackbox.get_log_dir_path()
      )
      ExploitationTest(
          name=test_name,
          island_client=island_client,
          raw_config=raw_config,
          analyzers=[analyzer],
          timeout=DEFAULT_TIMEOUT_SECONDS,
>           log_handler=log_handler,
      ).run()

../envs/monkey_zoo/blackbox/test_blackbox.py:232: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
../envs/monkey_zoo/blackbox/tests/exploitation.py:29: in run
  self.test_until_timeout()
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <envs.monkey_zoo.blackbox.tests.exploitation.ExploitationTest object at 0x7f7d6128ec90>

  def test_until_timeout(self):
      timer = TestTimer(self.timeout)
      while not timer.is_timed_out():
          if self.all_analyzers_pass():
              self.log_success(timer)
              return
          sleep(DELAY_BETWEEN_ANALYSIS)
          LOGGER.debug(
              "Waiting until all analyzers passed. Time passed: {}".format(timer.get_time_taken())
          )
      self.log_failure(timer)
>       assert False
E       AssertionError

../envs/monkey_zoo/blackbox/tests/exploitation.py:54: AssertionError
----------------------------- Captured stdout call -----------------------------

------------------------------ Captured log call -------------------------------
INFO     envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:38 Started Zerologon_exploiter test
INFO     envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:40 Machines participating in test: 10.2.2.25
INFO     envs.monkey_zoo.blackbox.island_client.monkey_island_client:monkey_island_client.py:40 Running the monkey.
INFO     envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:63 
ZerologonAnalyzer: 
Credential Zerologon exploiter failed to gathered:Administrator.
Credential Zerologon exploiter failed to gathered:aad3b435b51404eeaad3b435b51404ee.
Credential Zerologon exploiter failed to gathered:2864b62ea4496934a5d6e86f50b834a5.
Credential restore failed or credential restore telemetry not found on the Monkey Island.
Query for credential restore telem: {'data.exploiter': 'ZerologonExploiter',
'data.info.password_restored': True,
'telem_category': 'exploit'}

ERROR    envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:66 Zerologon_exploiter test failed because of timeout. Time taken: 304.0 seconds.
INFO     envs.monkey_zoo.blackbox.island_client.monkey_island_client:monkey_island_client.py:52 Killing all monkeys after the test.
INFO     envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:94 Parsing test logs:
INFO     envs.monkey_zoo.blackbox.log_handlers.monkey_logs_downloader:monkey_logs_downloader.py:15 Downloading each monkey log.
ERROR    envs.monkey_zoo.blackbox.log_handlers.monkey_log:monkey_log.py:17 Log for monkey 10.2.2.250 not found
ERROR    envs.monkey_zoo.blackbox.log_handlers.test_logs_handler:test_logs_handler.py:22 No logs were downloaded. Maybe no monkeys were ran or early exception prevented log download?
INFO     envs.monkey_zoo.blackbox.island_client.monkey_island_client:monkey_island_client.py:60 Resetting environment after the test.
=============================== warnings summary ===============================
../envs/monkey_zoo/blackbox/test_blackbox.py:266
/usr/infection_monkey/envs/monkey_zoo/blackbox/test_blackbox.py:266: PytestUnknownMarkWarning: Unknown pytest.mark.run_performance_tests - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
  @pytest.mark.run_performance_tests

../envs/monkey_zoo/blackbox/test_blackbox.py:270
/usr/infection_monkey/envs/monkey_zoo/blackbox/test_blackbox.py:270: PytestUnknownMarkWarning: Unknown pytest.mark.run_performance_tests - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
  @pytest.mark.run_performance_tests

../envs/monkey_zoo/blackbox/test_blackbox.py:274
/usr/infection_monkey/envs/monkey_zoo/blackbox/test_blackbox.py:274: PytestUnknownMarkWarning: Unknown pytest.mark.run_performance_tests - is this a typo?  You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
  @pytest.mark.run_performance_tests

../envs/monkey_zoo/blackbox/log_handlers/test_logs_handler.py:12
/usr/infection_monkey/envs/monkey_zoo/blackbox/log_handlers/test_logs_handler.py:12: PytestCollectionWarning: cannot collect test class 'TestLogsHandler' because it has a __init__ constructor (from: test_blackbox.py)
  class TestLogsHandler(object):

test_blackbox.py: 2986 warnings
/root/.local/share/virtualenvs/monkey_island-OChT_2Zu/lib/python3.7/site-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
  InsecureRequestWarning,

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_zerologon_exploiter
===== 1 failed, 13 passed, 5 skipped, 2990 warnings in 3732.02s (1:02:12) ======
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(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f1e7de9d9d0>, 'Connection to 10.2.2.250 timed out. (connect timeout=15)'))
11:42:17 [INFO] monkey_log_parser.print_warnings.35: Warn #1: 2021-07-02 11:35:51,966 [2551:139769063683840:WARNING] control.find_server.107: Error connecting to control server 192.0.2.0:5000: HTTPSConnectionPool(host='192.0.2.0', port=5000): Max retries exceeded with url: /api?action=is-up (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f1e7de375d0>, 'Connection to 192.0.2.0 timed out. (connect timeout=15)'))
11:42:17 [INFO] monkey_log_parser.print_warnings.35: Warn #2: 2021-07-02 11:37:10,372 [2551:139768839010048: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.0.11.txt
11:42:17 [INFO] monkey_log_parser.print_errors.19: Found 1 errors:
11:42:17 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:39:36,420 [2299:140186422253312:ERROR] monkey.start.275: Planned shutdown, reason:
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:38:01,012 [2299:140186422253312: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(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7faa6c3190>, 'Connection to 10.2.2.250 timed out. (connect timeout=15)'))
11:42:17 [INFO] monkey_log_parser.print_warnings.35: Warn #1: 2021-07-02 11:38:16,029 [2299:140186422253312:WARNING] control.find_server.107: Error connecting to control server 192.0.2.0:5000: HTTPSConnectionPool(host='192.0.2.0', port=5000): Max retries exceeded with url: /api?action=is-up (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x7f7faa65d5d0>, 'Connection to 192.0.2.0 timed out. (connect timeout=15)'))
11:42:17 [INFO] monkey_log_parser.print_warnings.35: Warn #2: 2021-07-02 11:39:36,466 [2299:140186272995072: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.0.12.txt
11:42:17 [INFO] monkey_log_parser.print_errors.19: Found 1 errors:
11:42:17 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:40:41,420 [2676:2860:ERROR] monkey.start.275: Planned shutdown, reason:
11:42:17 [INFO] monkey_log_parser.print_warnings.33: Found 2 warnings:
11:42:17 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:40:21,889 [2676:2860: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(<urllib3.connection.VerifiedHTTPSConnection object at 0x0000024FEE8F2BC8>, 'Connection to 10.2.2.250 timed out. (connect timeout=15)'))
11:42:17 [INFO] monkey_log_parser.print_warnings.35: Warn #1: 2021-07-02 11:40:36,905 [2676:2860:WARNING] control.find_server.107: Error connecting to control server 192.0.2.0:5000: HTTPSConnectionPool(host='192.0.2.0', port=5000): Max retries exceeded with url: /api?action=is-up (Caused by ConnectTimeoutError(<urllib3.connection.VerifiedHTTPSConnection object at 0x0000024FEE905C48>, 'Connection to 192.0.2.0 timed out. (connect timeout=15)'))
11:42:18 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test.
PASSED [ 57%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_wmi_and_mimikatz_exploiters
-------------------------------- live log call ---------------------------------
11:42:19 [INFO] exploitation.print_test_starting_info.38: Started WMI_exploiter,_mimikatz test
11:42:19 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.14, 10.2.2.15
11:42:20 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey.
11:42:42 [INFO] exploitation.log_success.57:
CommunicationAnalyzer:
Monkey from 10.2.2.14 communicated back
Monkey from 10.2.2.15 communicated back

11:42:42 [INFO] exploitation.log_success.59: WMI_exploiter,_mimikatz test passed, time taken: 22.1 seconds.
11:42:42 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test.
11:44:37 [INFO] exploitation.parse_logs.94: Parsing test logs:
11:44:37 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log.
11:44:39 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/WMI_exploiter,_mimikatz/10.2.2.250.txt
11:44:39 [INFO] monkey_log_parser.print_errors.23: No errors!
11:44:39 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings:
11:44:39 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:42:22,630 [5913:140657486194432:WARNING] azure_instance.init.54: Metadata response not ok: 404
11:44:39 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/WMI_exploiter,_mimikatz/10.2.2.14.txt
11:44:39 [INFO] monkey_log_parser.print_errors.23: No errors!
11:44:39 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings:
11:44:39 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:42:40,421 [2444:3548:WARNING] azure_instance.init.54: Metadata response not ok: 404
11:44:39 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/WMI_exploiter,_mimikatz/10.2.2.15.txt
11:44:39 [INFO] monkey_log_parser.print_errors.23: No errors!
11:44:39 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings:
11:44:39 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:42:44,220 [1168:2268:WARNING] azure_instance.init.54: Metadata response not ok: 404
11:44:40 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test.
PASSED [ 63%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_wmi_pth
-------------------------------- live log call ---------------------------------
11:44:41 [INFO] exploitation.print_test_starting_info.38: Started WMI_PTH test
11:44:41 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.15
11:44:42 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey.
11:45:00 [INFO] exploitation.log_success.57:
CommunicationAnalyzer:
Monkey from 10.2.2.15 communicated back

11:45:00 [INFO] exploitation.log_success.59: WMI_PTH test passed, time taken: 18.5 seconds.
11:45:01 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test.
11:46:56 [INFO] exploitation.parse_logs.94: Parsing test logs:
11:46:56 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log.
11:46:57 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/WMI_PTH/10.2.2.250.txt
11:46:57 [INFO] monkey_log_parser.print_errors.19: Found 2 errors:
11:46:57 [INFO] monkey_log_parser.print_errors.21: Err #0: 2021-07-02 11:44:45,197 [6065:140026770114304:ERROR] console.print_exception.95: api_run.py L108: Authentication failure: Unable to locate credentials
11:46:57 [INFO] monkey_log_parser.print_errors.21: Err #1: 2021-07-02 11:44:45,198 [6065:140026770114304:ERROR] scoutsuite_collector.scan_cloud_security.22: ScoutSuite didn't scan aws security because: Exception Unable to locate credentials
11:46:57 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings:
11:46:57 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:44:44,711 [6065:140026770114304:WARNING] azure_instance.init.54: Metadata response not ok: 404
11:46:57 [INFO] test_logs_handler.parse_logs.48: Info from log at /usr/infection_monkey/monkey/logs/WMI_PTH/10.2.2.15.txt
11:46:58 [INFO] monkey_log_parser.print_errors.23: No errors!
11:46:58 [INFO] monkey_log_parser.print_warnings.33: Found 1 warnings:
11:46:58 [INFO] monkey_log_parser.print_warnings.35: Warn #0: 2021-07-02 11:45:02,157 [2388:2124:WARNING] azure_instance.init.54: Metadata response not ok: 404
11:46:58 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test.
PASSED [ 68%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_zerologon_exploiter
-------------------------------- live log call ---------------------------------
11:46:59 [INFO] exploitation.print_test_starting_info.38: Started Zerologon_exploiter test
11:46:59 [INFO] exploitation.print_test_starting_info.40: Machines participating in test: 10.2.2.25
11:47:00 [INFO] monkey_island_client.run_monkey_local.40: Running the monkey.
11:52:00 [INFO] exploitation.log_failure.63:
ZerologonAnalyzer:
Credential Zerologon exploiter failed to gathered:Administrator.
Credential Zerologon exploiter failed to gathered:aad3b435b51404eeaad3b435b51404ee.
Credential Zerologon exploiter failed to gathered:2864b62ea4496934a5d6e86f50b834a5.
Credential restore failed or credential restore telemetry not found on the Monkey Island.
Query for credential restore telem: {'data.exploiter': 'ZerologonExploiter',
'data.info.password_restored': True,
'telem_category': 'exploit'}

11:52:00 [ERROR] exploitation.log_failure.66: Zerologon_exploiter test failed because of timeout. Time taken: 300.3 seconds.
11:52:01 [INFO] monkey_island_client.kill_all_monkeys.52: Killing all monkeys after the test.
11:57:59 [INFO] exploitation.parse_logs.94: Parsing test logs:
11:57:59 [INFO] monkey_logs_downloader.download_monkey_logs.15: Downloading each monkey log.
11:58:00 [ERROR] monkey_log.download_log.17: Log for monkey 10.2.2.250 not found
11:58:00 [ERROR] test_logs_handler.parse_test_logs.22: No logs were downloaded. Maybe no monkeys were ran or early exception prevented log download?
11:58:01 [INFO] monkey_island_client.reset_env.60: Resetting environment after the test.
FAILED [ 73%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_report_generation_performance SKIPPED [ 78%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_map_generation_performance SKIPPED [ 84%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_report_generation_from_fake_telemetries SKIPPED [ 89%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_map_generation_from_fake_telemetries SKIPPED [ 94%]
../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_telem_performance SKIPPED [100%]
------------------------------ live log teardown -------------------------------
11:58:52 [INFO] gcp_machine_handlers.stop_machines.66: GCP machines stopped successfully.

=================================== FAILURES ===================================
_________________ TestMonkeyBlackbox.test_shellshock_exploiter _________________

self = <envs.monkey_zoo.blackbox.test_blackbox.TestMonkeyBlackbox object at 0x7fb080faf0d0>
island_client = <envs.monkey_zoo.blackbox.island_client.monkey_island_client.MonkeyIslandClient object at 0x7fb0814ac990>

def test_shellshock_exploiter(self, island_client):
  TestMonkeyBlackbox.run_exploitation_test(island_client, ShellShock, "Shellschock_exploiter")

../envs/monkey_zoo/blackbox/test_blackbox.py:199:


../envs/monkey_zoo/blackbox/test_blackbox.py:138: in run_exploitation_test
log_handler=log_handler,
../envs/monkey_zoo/blackbox/tests/exploitation.py:29: in run
self.test_until_timeout()


self = <envs.monkey_zoo.blackbox.tests.exploitation.ExploitationTest object at 0x7fb080fb7810>

def test_until_timeout(self):
    timer = TestTimer(self.timeout)
    while not timer.is_timed_out():
        if self.all_analyzers_pass():
            self.log_success(timer)
            return
        sleep(DELAY_BETWEEN_ANALYSIS)
        LOGGER.debug(
            "Waiting until all analyzers passed. Time passed: {}".format(timer.get_time_taken())
        )
    self.log_failure(timer)
  assert False

E AssertionError

../envs/monkey_zoo/blackbox/tests/exploitation.py:54: AssertionError
----------------------------- Captured stdout call -----------------------------

------------------------------ Captured log call -------------------------------
INFO envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:38 Started Shellschock_exploiter test
INFO envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:40 Machines participating in test: 10.2.2.8
INFO envs.monkey_zoo.blackbox.island_client.monkey_island_client:monkey_island_client.py:40 Running the monkey.
INFO envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:63
CommunicationAnalyzer:
Monkey from 10.2.2.8 didn't communicate back

ERROR envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:66 Shellschock_exploiter test failed because of timeout. Time taken: 300.9 seconds.
INFO envs.monkey_zoo.blackbox.island_client.monkey_island_client:monkey_island_client.py:52 Killing all monkeys after the test.
INFO envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:94 Parsing test logs:
INFO envs.monkey_zoo.blackbox.log_handlers.monkey_logs_downloader:monkey_logs_downloader.py:15 Downloading each monkey log.
INFO envs.monkey_zoo.blackbox.log_handlers.test_logs_handler:test_logs_handler.py:48 Info from log at /usr/infection_monkey/monkey/logs/Shellschock_exploiter/10.2.2.250.txt
INFO envs.monkey_zoo.blackbox.log_handlers.monkey_log_parser:monkey_log_parser.py:19 Found 2 errors:
INFO envs.monkey_zoo.blackbox.log_handlers.monkey_log_parser:monkey_log_parser.py: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
INFO envs.monkey_zoo.blackbox.log_handlers.monkey_log_parser:monkey_log_parser.py: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
INFO envs.monkey_zoo.blackbox.log_handlers.monkey_log_parser:monkey_log_parser.py:33 Found 1 warnings:
INFO envs.monkey_zoo.blackbox.log_handlers.monkey_log_parser:monkey_log_parser.py:35 Warn #0: 2021-07-02 11:28:36,600 [5591:139820571551488:WARNING] azure_instance.init.54: Metadata response not ok: 404
INFO envs.monkey_zoo.blackbox.island_client.monkey_island_client:monkey_island_client.py:60 Resetting environment after the test.
_________________ TestMonkeyBlackbox.test_zerologon_exploiter __________________

self = <envs.monkey_zoo.blackbox.test_blackbox.TestMonkeyBlackbox object at 0x7fb080d42410>
island_client = <envs.monkey_zoo.blackbox.island_client.monkey_island_client.MonkeyIslandClient object at 0x7fb0814ac990>

def test_zerologon_exploiter(self, island_client):
    test_name = "Zerologon_exploiter"
    expected_creds = [
        "Administrator",
        "aad3b435b51404eeaad3b435b51404ee",
        "2864b62ea4496934a5d6e86f50b834a5",
    ]
    raw_config = IslandConfigParser.get_raw_config(Zerologon, island_client)
    analyzer = ZerologonAnalyzer(island_client, expected_creds)
    log_handler = TestLogsHandler(
        test_name, island_client, TestMonkeyBlackbox.get_log_dir_path()
    )
    ExploitationTest(
        name=test_name,
        island_client=island_client,
        raw_config=raw_config,
        analyzers=[analyzer],
        timeout=DEFAULT_TIMEOUT_SECONDS,
      log_handler=log_handler,
    ).run()

../envs/monkey_zoo/blackbox/test_blackbox.py:232:


../envs/monkey_zoo/blackbox/tests/exploitation.py:29: in run
self.test_until_timeout()


self = <envs.monkey_zoo.blackbox.tests.exploitation.ExploitationTest object at 0x7fb080d06750>

def test_until_timeout(self):
    timer = TestTimer(self.timeout)
    while not timer.is_timed_out():
        if self.all_analyzers_pass():
            self.log_success(timer)
            return
        sleep(DELAY_BETWEEN_ANALYSIS)
        LOGGER.debug(
            "Waiting until all analyzers passed. Time passed: {}".format(timer.get_time_taken())
        )
    self.log_failure(timer)
  assert False

E AssertionError

../envs/monkey_zoo/blackbox/tests/exploitation.py:54: AssertionError
----------------------------- Captured stdout call -----------------------------

------------------------------ Captured log call -------------------------------
INFO envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:38 Started Zerologon_exploiter test
INFO envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:40 Machines participating in test: 10.2.2.25
INFO envs.monkey_zoo.blackbox.island_client.monkey_island_client:monkey_island_client.py:40 Running the monkey.
INFO envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:63
ZerologonAnalyzer:
Credential Zerologon exploiter failed to gathered:Administrator.
Credential Zerologon exploiter failed to gathered:aad3b435b51404eeaad3b435b51404ee.
Credential Zerologon exploiter failed to gathered:2864b62ea4496934a5d6e86f50b834a5.
Credential restore failed or credential restore telemetry not found on the Monkey Island.
Query for credential restore telem: {'data.exploiter': 'ZerologonExploiter',
'data.info.password_restored': True,
'telem_category': 'exploit'}

ERROR envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:66 Zerologon_exploiter test failed because of timeout. Time taken: 300.3 seconds.
INFO envs.monkey_zoo.blackbox.island_client.monkey_island_client:monkey_island_client.py:52 Killing all monkeys after the test.
INFO envs.monkey_zoo.blackbox.tests.exploitation:exploitation.py:94 Parsing test logs:
INFO envs.monkey_zoo.blackbox.log_handlers.monkey_logs_downloader:monkey_logs_downloader.py:15 Downloading each monkey log.
ERROR envs.monkey_zoo.blackbox.log_handlers.monkey_log:monkey_log.py:17 Log for monkey 10.2.2.250 not found
ERROR envs.monkey_zoo.blackbox.log_handlers.test_logs_handler:test_logs_handler.py:22 No logs were downloaded. Maybe no monkeys were ran or early exception prevented log download?
INFO envs.monkey_zoo.blackbox.island_client.monkey_island_client:monkey_island_client.py:60 Resetting environment after the test.
=============================== warnings summary ===============================
../envs/monkey_zoo/blackbox/test_blackbox.py:266
/usr/infection_monkey/envs/monkey_zoo/blackbox/test_blackbox.py:266: PytestUnknownMarkWarning: Unknown pytest.mark.run_performance_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
@pytest.mark.run_performance_tests

../envs/monkey_zoo/blackbox/test_blackbox.py:270
/usr/infection_monkey/envs/monkey_zoo/blackbox/test_blackbox.py:270: PytestUnknownMarkWarning: Unknown pytest.mark.run_performance_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
@pytest.mark.run_performance_tests

../envs/monkey_zoo/blackbox/test_blackbox.py:274
/usr/infection_monkey/envs/monkey_zoo/blackbox/test_blackbox.py:274: PytestUnknownMarkWarning: Unknown pytest.mark.run_performance_tests - is this a typo? You can register custom marks to avoid this warning - for details, see https://docs.pytest.org/en/stable/mark.html
@pytest.mark.run_performance_tests

../envs/monkey_zoo/blackbox/log_handlers/test_logs_handler.py:12
/usr/infection_monkey/envs/monkey_zoo/blackbox/log_handlers/test_logs_handler.py:12: PytestCollectionWarning: cannot collect test class 'TestLogsHandler' because it has a init constructor (from: test_blackbox.py)
class TestLogsHandler(object):

test_blackbox.py: 3193 warnings
/root/.local/share/virtualenvs/monkey_island-OChT_2Zu/lib/python3.7/site-packages/urllib3/connectionpool.py:988: InsecureRequestWarning: Unverified HTTPS request is being made to host 'localhost'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
InsecureRequestWarning,

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=========================== short test summary info ============================
FAILED ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_shellshock_exploiter
FAILED ../envs/monkey_zoo/blackbox/test_blackbox.py::TestMonkeyBlackbox::test_zerologon_exploiter
===== 2 failed, 12 passed, 5 skipped, 3197 warnings in 3900.57s (1:05:00) ======

To Reproduce

Steps to reproduce the behavior:

  1. Run AppImage BB scripts

Expected behavior

ZL exploiter should pass

Tasks

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugAn error, flaw, misbehavior or failure in the Monkey or Monkey Island.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions