Commit Graph

10906 Commits

Author SHA1 Message Date
Mike Salvatore f591f150fc Revert "Island: Fix mypy issues in exploit.py"
This reverts commit 9c49cdafa3.
2022-09-21 20:43:09 -04:00
Mike Salvatore 284f58afaf UT: Sort updated_machine.network_interfaces 2022-09-21 20:37:30 -04:00
Mike Salvatore 5b61767575 Project: Remove IslandEventTopics from vulture_allowlist 2022-09-21 20:34:30 -04:00
Kekoa Kaaikala 5e7689345f Island: Remove i_log_repository.py 2022-09-21 22:25:42 +00:00
Kekoa Kaaikala 06965abe5d Island: Remove networkmap.py 2022-09-21 22:25:42 +00:00
Kekoa Kaaikala bba6386efa Island: Fix mypy issues in segmentation.py 2022-09-21 22:25:42 +00:00
Kekoa Kaaikala 1defad72fd Island: Fix mypy issues in networkmap.py 2022-09-21 22:25:42 +00:00
Kekoa Kaaikala e478ba80e0 Island: Fix mypy issues in version.py 2022-09-21 22:25:42 +00:00
Kekoa Kaaikala c0e98bc0d1 Island: Fix mypy issues in T1065.py 2022-09-21 22:25:42 +00:00
Kekoa Kaaikala 5f3d757965 Island: Fix mypy issues in mongo_db_process.py 2022-09-21 22:25:42 +00:00
Kekoa Kaaikala 0578219549 Island: Fix mypy issues in finding_service.py 2022-09-21 22:25:42 +00:00
Kekoa Kaaikala 85dbda8ba9 Island: Fix mypy issues in cred_exploit.py 2022-09-21 22:25:24 +00:00
Kekoa Kaaikala 22b12080b6 Island: Fix mypy issues in ransomware_report.py 2022-09-21 22:23:14 +00:00
Kekoa Kaaikala 9c49cdafa3 Island: Fix mypy issues in exploit.py 2022-09-21 22:23:14 +00:00
Kekoa Kaaikala b8230ffb73 Island: Fix mypy issues for encryptors 2022-09-21 22:23:14 +00:00
Kekoa Kaaikala 421ed942fe Island: Fix mypy issues in AbstractResource.py 2022-09-21 22:23:14 +00:00
Kekoa Kaaikala ecd2cbbe6e Island: Fix mypy issues in i_log_repository.py 2022-09-21 22:23:14 +00:00
Kekoa Kaaikala 3e95ec6ee4 Island: Fix mypy issues in server_setup.py 2022-09-21 22:23:14 +00:00
Kekoa Kaaikala 95839caf9c Island: Fix mypy issues in app.py 2022-09-21 22:23:14 +00:00
Kekoa Kaaikala 97d53dba3c Agent: Fix mypy issues in ransomware_options.py 2022-09-21 22:23:14 +00:00
Kekoa Kaaikala c78e6333f8 Agent: Fix mypy issues in pba.py 2022-09-21 22:23:14 +00:00
Kekoa Kaaikala 1621b494f4 Agent: Fix mypy issues in capture_output.py 2022-09-21 22:23:03 +00:00
Mike Salvatore bed684d7d0 Island: Rename IslandEventTopic.AGENT_{CONNECTED,REGISTERED} 2022-09-21 15:42:28 -04:00
Mike Salvatore 371e495f17 Island: Fix call to IIslandEventQueue.publish() 2022-09-21 15:42:12 -04:00
Mike Salvatore 71da0a559a Island: Register handle_agent_registration for AGENT_CONNECTED events 2022-09-21 15:05:47 -04:00
Mike Salvatore 271475570d Island: Modify machine with AgentRegistrationData
Since the Machine is passed to other methods, it should have the most up
to date data.
2022-09-21 15:05:47 -04:00
Mike Salvatore 4101f7509a Island: Handle IP address collisions when updating Machine on agent reg 2022-09-21 15:05:47 -04:00
Mike Salvatore c0870e6696 Island: Add new node communication on agent registration 2022-09-21 15:05:47 -04:00
Mike Salvatore 1e8a60c890 Island: Add new agent to repository on agent registration 2022-09-21 15:05:47 -04:00
Mike Salvatore c95c2ffdf9 Island: Add handle_agent_registration event handler
- Add handle_agent_registration callable class
- Add/Update machine to the repository
2022-09-21 15:05:47 -04:00
Mike Salvatore 41dbb92eef UT: Remove debug print statement 2022-09-21 15:05:47 -04:00
Mike Salvatore d514ac283c Island: Publish AgentRegistrationData from Agents resource 2022-09-21 15:05:47 -04:00
Mike Salvatore f811f91d73 Agent: Add missing `return` to convert_json_error_to_island_api_error() 2022-09-21 15:05:19 -04:00
Mike Salvatore 388b9fe4ed Agent: Add missing `return` to handle_island_api_errors() 2022-09-21 15:05:16 -04:00
Mike Salvatore 69c8d3a667 Agent: Remove errant line that sets `self._control_client = None` 2022-09-21 15:04:07 -04:00
Mike Salvatore fbb8e85b46 Agent: Pass server to InfectionMonkey._register_agent() 2022-09-21 14:56:53 -04:00
Kekoa Kaaikala ccfc41fc2f Agent: Fix mypy issues in IslandAPIClient 2022-09-21 17:54:33 +00:00
Kekoa Kaaikala fc82715262 Agent: Fix mypy issues in vuln_assessment.py 2022-09-21 17:49:04 +00:00
Kekoa Kaaikala 2fab84636e Agent: Fix mypy issues in exploit/tools/helpers.py 2022-09-21 17:47:56 +00:00
Kekoa Kaaikala 0a9d221ad8 Agent: Fix mypy issues in HostExploiter.py 2022-09-21 17:47:11 +00:00
Kekoa Kaaikala be4c5e7312 Agent: Fix mypy issues in propagation credentials
Updated aggregating_propagation_credentials_repository.py
2022-09-21 17:42:52 +00:00
Kekoa Kaaikala 60c1eb9cc1 Agent: Fix mypy errors in monkey.py 2022-09-21 17:09:06 +00:00
Kekoa Kaaikala 4f04cf1c18 Common: Fix mypy error in encoding.py 2022-09-21 17:07:11 +00:00
Mike Salvatore b4c8ac7242 Island: Accept any kwargs in IIslandEventQueue.publish() 2022-09-21 12:53:39 -04:00
Ilija Lazoroski 320364a7a2 UI: Get derived state from props in AdvancedMultiSelect 2022-09-21 16:48:47 +02:00
Mike Salvatore a76273fa0d
Merge pull request #2327 from guardicore/2266-replace-IslandModeService
Replace IslandModeService with event
2022-09-21 09:25:29 -04:00
Shreya Malviya a8fb05f2b8 Island: Simplify logic in test_island_mode.py with fixtures 2022-09-21 18:53:12 +05:30
Shreya Malviya 60db495cee UT: Use MagicMock to simulate internal server error in test_island_mode_post__invalid_mode() 2022-09-21 18:43:26 +05:30
Shreya Malviya 1afafd20dd UT: Simplify some logic in test_island_mode.py's flask_client fixture 2022-09-21 18:09:13 +05:30
Shreya Malviya 10e1177ef6 Island: Remove set_simulation_mode 2022-09-21 18:08:06 +05:30