Mike Salvatore
c69a414a4d
Island: Fix typo occured -> occurred
2022-09-28 14:06:09 -04:00
Ilija Lazoroski
10954e0a6e
Island: Use UUID for AgentSignals endpoint parameter
2022-09-28 16:45:28 +02:00
Ilija Lazoroski
1a8306af1b
Island: Change log level in AgentLogs endpoint
2022-09-28 16:43:33 +02:00
Ilija Lazoroski
d0293b4edc
UT: Move and rename StubAgentLogRepository to InMemoryAgentLogRepository
2022-09-28 16:42:23 +02:00
Ilija Lazoroski
e4d45b25cb
Island: AgentLogs.GET to return 404 if not agent log is found
2022-09-28 16:42:23 +02:00
Ilija Lazoroski
96662f3f66
UT: Fix AgentLogs tests
2022-09-28 16:41:30 +02:00
Ilija Lazoroski
b705e33af3
Island: Add AgentID type for agent_id to AgentLogs endpoint
2022-09-28 16:41:30 +02:00
Mike Salvatore
fa13ca8df8
Island: Rename agent_log -> log_contents
2022-09-28 09:31:38 -04:00
Ilija Lazoroski
08bc43e0c4
Changelog: Add entry for adding new AgentLogs endpoint
2022-09-28 14:57:09 +02:00
Ilija Lazoroski
546c44f501
UT: Add tests for AgentLogs endpoint
2022-09-28 14:55:37 +02:00
Ilija Lazoroski
89ae9824d0
Island: Add the new AgentLogs endpoint to the island
2022-09-28 14:53:24 +02:00
Ilija Lazoroski
543c063f7b
Island: Add AgentLogs endpoint
2022-09-28 14:52:19 +02:00
Mike Salvatore
699f2210f4
Merge pull request #2359 from guardicore/2318-powershell-bb-fix
...
2318 powershell bb fix
2022-09-27 19:37:46 -04:00
Ilija Lazoroski
d7be8e2bc0
Island: Remove `log_contents` from Agent model
2022-09-27 12:52:24 -04:00
Kekoa Kaaikala
ea94da9725
Merge pull request #2357 from guardicore/2299-update-network-config-docs
...
Docs: Update network scanning documentation
2022-09-27 11:10:12 -04:00
Kekoa Kaaikala
e63409d1ad
Docs: Update paths for custom-scenario
2022-09-27 14:39:15 +00:00
vakarisz
26a5b4cf4d
BB: Delete "skip_powershell_reuse" mark
...
Not sure why we would want to skip this test specifically
2022-09-27 17:28:12 +03:00
vakarisz
164c0d6127
BB: Add network diagram for powershell credential reuse test
2022-09-27 17:11:08 +03:00
vakarisz
85c101aff9
BB: Remove 46 from depth 3 test suite as it's reserved for credential reuse
2022-09-27 17:06:39 +03:00
vakarisz
031a0ab426
BB: Change powershell credential reuse test to a dedicated machine
...
Island shouldn't be part of the test, so powershell credential reuse was moved to powershell 46(exploited via log4shell) and powershell 44(exploited via credential reuse from powershell 46)
2022-09-27 17:06:39 +03:00
Kekoa Kaaikala
036a382e95
Merge pull request #2354 from guardicore/2323-use-socketaddress-in-running_on_island
...
2323 use socketaddress in running on island
2022-09-27 09:44:04 -04:00
VakarisZ
9823301c3b
Merge pull request #2348 from guardicore/2299-rename-local-network-scan
...
Island: Rename local_network_scan
2022-09-27 16:00:36 +03:00
Kekoa Kaaikala
21cbf8d38b
Merge pull request #2351 from guardicore/2323-update-iislandapiclient-with-socketaddress
...
2323 update iislandapiclient with socketaddress
2022-09-27 08:17:17 -04:00
Shreya Malviya
4f3a8a5b2f
Agent: Simplify logic in _build_server_list() in monkey/infection_monkey/monkey.py
...
Co-authored-by: VakarisZ <36815064+VakarisZ@users.noreply.github.com>
2022-09-27 17:17:09 +05:30
Shreya Malviya
3accaccceb
Agent: Simplify logic to set self._island_address in InfectionMonkey
2022-09-27 17:06:42 +05:30
Kekoa Kaaikala
c33189725d
Agent: Update ControlClient to use SocketAddress
2022-09-27 17:01:47 +05:30
Kekoa Kaaikala
19dbf81fa3
Agent: Fix mypy issue
2022-09-27 17:01:39 +05:30
Shreya Malviya
688a41a11e
BB: Rename local_network_scan -> scan_my_networks in test_configurations/noop.py
2022-09-27 16:32:09 +05:30
Shreya Malviya
80328159f0
Agent: Change return type hint of _get_segmentation_check_targets() to be more specific
2022-09-27 16:30:28 +05:30
Shreya Malviya
01f1d62272
UT: Simplify logic in test data in test_http_island_api_client.py
2022-09-27 16:19:23 +05:30
Shreya Malviya
6d63f3c378
Agent: Fix some logic caused by rebase
2022-09-27 16:17:04 +05:30
Kekoa Kaaikala
aeef2cdcbe
Agent: Update send_remove_from_waitlist_control_message_to_relays
...
Update send_remove_from_waitlist_control_message_to_relays to use
SocketAddress
2022-09-27 15:37:57 +05:30
Kekoa Kaaikala
af8d3937be
Agent: Use correct return type for _connect_to_island_api
2022-09-27 15:37:36 +05:30
Kekoa Kaaikala
110542eeb8
Common: Make SocketAddress hashable
2022-09-27 15:34:13 +05:30
Kekoa Kaaikala
c4804f06a9
Agent: Use SocketAddress in IIslandAPIClient
2022-09-27 15:33:28 +05:30
ilija-lazoroski
90890106f7
Merge pull request #2355 from guardicore/2268-pingscanevent
...
2268 pingscanevent
2022-09-27 10:58:20 +02:00
vakarisz
e2f0a2dfc0
Common: Improve comment's readability in agent_sub_configurations.py
2022-09-27 11:51:27 +03:00
Ilija Lazoroski
c119406b2d
Project: Add import for PingScanEvent
2022-09-27 10:50:23 +02:00
vakarisz
b9cf200832
Agent: Change return typehint to be more specific
2022-09-27 11:50:20 +03:00
Ilija Lazoroski
7bb7ef7dce
Common: Export PingScanEvent from __init__
2022-09-27 10:49:40 +02:00
vakarisz
182a566087
Agent: Simplify scan_target_generator.py
...
The responsibility of type-hints are not to implement logic. Implementing logic via type-hints diminishes readability, because it forces you to cross-reference a class instead of just exposing the logic where it's used
2022-09-27 11:33:30 +03:00
Shreya Malviya
14999fba4e
Merge pull request #2353 from guardicore/2323-SocketAddress-in-AgentRegistrationData
...
SocketAddress in AgentRegistrationData
2022-09-27 13:56:16 +05:30
Shreya Malviya
9b4de6bab8
UT: Use SocketAddress.from_string() in test_handle_agent_registration.py
2022-09-27 13:11:13 +05:30
Shreya Malviya
d1199fdab2
Agent: Simplify relay disconnect logic in network/relay/utils.py
2022-09-27 13:06:29 +05:30
Shreya Malviya
441c14f15d
Use SocketAddress.from_string() in network/relay/utils.py
2022-09-27 12:56:10 +05:30
Shreya Malviya
1f80eac4b6
island: Remove unused import in cc/island_event_handlers/handle_agent_registration.py
2022-09-27 12:51:49 +05:30
Shreya Malviya
8b0ebfc3a7
UT: Add/modify tests as per SocketAddress related changes
2022-09-27 12:51:49 +05:30
Shreya Malviya
3b192a869e
UT: Replace test data with SocketAddress wherever required
2022-09-27 12:51:49 +05:30
Shreya Malviya
0ae653fb72
Agent: Let InfectionMonkey._cmd_island_port stay a str
...
No part of the code in InfectionMonkey requires _cmd_island_port to be an int now
2022-09-27 12:51:49 +05:30
Shreya Malviya
8a609e0871
Agent: Simplify logic in SocketAddress object creation in monkey.py and network/relay/utils.py
2022-09-27 12:51:49 +05:30