Mike Salvatore
ada5618958
Merge pull request #2033 from guardicore/fix-depth-logic
...
Agent: Change the logic of depth to represent current depth
2022-06-22 11:11:24 -04:00
Mike Salvatore
eeba0e0616
UT: Add tests for should_propagate
2022-06-22 10:59:46 -04:00
Mike Salvatore
1199c72f0d
Island: Modify skipping propagation log message
2022-06-22 10:44:02 -04:00
vakarisz
8d2078048c
Agent: Change the positive_int definition to contain 0
2022-06-22 17:39:25 +03:00
vakaris_zilius
8358253fc7
Agent: Rename depth to current_depth in propagation.py
2022-06-22 13:14:24 +00:00
vakaris_zilius
f0029a0d82
Agent: Close inbound tunnel if one was opened
2022-06-22 13:13:32 +00:00
vakaris_zilius
27bff7e41c
Island: Remove updating agent configuration with stolen credentials
2022-06-22 12:40:55 +00:00
vakarisz
e15206101a
Agent: Fix a bug in should_propagate
2022-06-22 14:42:19 +03:00
vakarisz
552e2100fa
Agent: Set default depth cmd parameter to 0
...
If user runs the agent it should start with depth 0, because usually it means that it's running on the island
2022-06-22 14:33:47 +03:00
vakarisz
5a48bfcfcc
Agent: Fix should_propagate import in automated_master.py
2022-06-22 14:15:24 +03:00
vakarisz
734fc80c92
Agent: Add logging message about maximum depth reached
2022-06-22 13:04:24 +03:00
vakarisz
582328bea8
Agent: Create and use should_propagate method
...
This method is used to determine if the inbound tunnel should be open and if the master should attempt exploiting other machines
2022-06-22 12:31:47 +03:00
vakarisz
3c2d58b5d3
Agent, Common: Add positive_int argument type
2022-06-22 11:52:36 +03:00
vakarisz
8df92640de
Changelog: Add entry about changed behaviour of depth param
2022-06-22 11:28:46 +03:00
vakarisz
df77ca4f96
Agent: Change the logic of depth to represent current depth
...
Based on the previous logic the depth parameter represented hops remaining, not current depth.
2022-06-20 15:52:50 +03:00
Mike Salvatore
e8001d8cf7
Merge pull request #2027 from guardicore/register-di-conventions
...
Register di conventions
2022-06-17 07:33:33 -04:00
Mike Salvatore
42f0cb42d2
UT: Use container fixture in test_unregistered_type
2022-06-17 07:25:18 -04:00
Mike Salvatore
a18814a83b
Common: Fix incorrect docstring in DIContainer
2022-06-17 07:16:50 -04:00
Mike Salvatore
df23cc42f4
Common: Fix spelling error
...
Co-authored-by: VakarisZ <36815064+VakarisZ@users.noreply.github.com>
2022-06-17 07:13:07 -04:00
VakarisZ
c413ae8fa5
Merge pull request #2029 from guardicore/2028-remove-http-ports
...
Island: Remove HTTP_PORTS from top-level agent configuration
2022-06-17 12:06:19 +03:00
Mike Salvatore
1f1c5585f0
Island: Remove HTTP_PORTS from top-level agent configuration
...
Resolves #2028
2022-06-16 20:19:56 -04:00
Mike Salvatore
fd36acab3a
Merge pull request #2017 from guardicore/1996-island-worm-config-decouple
...
1996 island worm config decouple
2022-06-16 09:52:35 -04:00
Mike Salvatore
10f069d3cd
Changelog: Add issue number to `GET /api/island/ip-addresses` entry
2022-06-16 09:52:05 -04:00
Mike Salvatore
b14c0ddb0f
Changelog: Modify agent configuration structure entry
2022-06-16 09:51:17 -04:00
vakarisz
e29d977d27
Changelog: Extend configuration structure modification entry
2022-06-16 16:49:03 +03:00
Mike Salvatore
5db04c3580
Island: Register the data directory as a convention
2022-06-16 09:26:04 -04:00
Mike Salvatore
c53864cdd7
Common: Add release_convention()
2022-06-16 09:26:04 -04:00
Mike Salvatore
8fb97fc8c0
Common: Remove posessive from release()'s docstring
2022-06-16 09:26:04 -04:00
Mike Salvatore
c3789c4766
Common: Document dependency resolution precedence
2022-06-16 09:26:04 -04:00
Mike Salvatore
ab94ddeb88
Commmon: Add register_convention()
2022-06-16 09:26:02 -04:00
vakarisz
2fa7606c23
Changelog: Add entry for added island IP's endpoint
2022-06-16 16:19:19 +03:00
vakarisz
c92f6eafe3
Changelog: Add entry for changed config structure
2022-06-16 16:18:25 +03:00
vakarisz
0082cd2193
Island: Style improvements in ip_addresses.py
2022-06-16 15:46:08 +03:00
vakarisz
5fbe01a32e
Island: Display tunneling ports in T1065
...
Non standard ports attack technique should include ports agent used for tunneling
2022-06-16 12:11:55 +03:00
Mike Salvatore
6345780182
Common: Add UnregisteredConventionError
2022-06-15 21:02:04 -04:00
Ilija Lazoroski
136747b1c8
Island: Use tunnel or island port in T1065
...
* adds get_tunnel_info in monkey model
2022-06-15 17:45:07 +03:00
Ilija Lazoroski
ed3c369eef
Island: Rename local-ips resource to ip-addresses
2022-06-15 17:45:07 +03:00
Ilija Lazoroski
8ae6bb8c73
UI: Remove testing from InternalConfig
...
* leftover from renaming credential_classes
2022-06-15 17:45:07 +03:00
Ilija Lazoroski
7b415be883
UT: Fix island config tests
2022-06-15 17:45:07 +03:00
Ilija Lazoroski
8af665c0a8
UI: Use local_ips endpoint to get command_servers
2022-06-15 17:45:07 +03:00
Ilija Lazoroski
d76fad9e17
Island: Remove current_server and command_servers from config
...
* It removes whole island_server section from internal config
2022-06-15 17:45:07 +03:00
Ilija Lazoroski
9444f1a9d7
Island: Add local_ips resource
2022-06-15 17:45:07 +03:00
Mike Salvatore
ac172dc81f
Merge pull request #2024 from guardicore/2019-mssql-batch-cleanup
...
Remove temporary "payload" file in MSSQL exploiter
2022-06-15 10:25:38 -04:00
Mike Salvatore
353594f505
Merge pull request #2021 from guardicore/mssql-method-improvements
...
MSSQL method improvements
2022-06-15 10:25:10 -04:00
Mike Salvatore
4e71f4b6e4
Agent: Improve MSSQL command logging
2022-06-15 08:45:56 -04:00
Mike Salvatore
95acfc36ad
Agent: Remove MSSQL temporary file and directory
...
This temporary file was only needed when commands were subject to 128
character limit. Writing commands to a batch file and executing it was a
way to run larger commands. Now that we know single quotes circumvent
this limit, the temporary file and directory are no longer necessary.
2022-06-15 08:37:54 -04:00
Mike Salvatore
f9b3d7f5eb
Agent: Move agent server methods within MSSQLExploiter
2022-06-15 08:33:18 -04:00
Mike Salvatore
c2170ffc4a
Agent: Rename run_agent() -> _run_agent()
2022-06-15 08:32:30 -04:00
Mike Salvatore
e73c9307bf
Agent: Add missing type hints to MSSQLExploiter
2022-06-15 08:16:32 -04:00
Mike Salvatore
7aca587964
Agent: Replace references to "monkey" with "agent" in MSSQLExploiter
2022-06-15 08:16:26 -04:00