Commit Graph

5265 Commits

Author SHA1 Message Date
Mike Salvatore 7a62434364 Common: Resolve registered instances and types directly 2022-04-26 01:21:36 -04:00
Mike Salvatore 435b619a5d Common: Add recursive resolution to DIContainer 2022-04-25 15:56:59 -04:00
Mike Salvatore 379a71d8e2 Common: Add DIContainer 2022-04-25 14:46:26 -04:00
Mike Salvatore cd8fa699b0 Common: Move get_all_regular_files_in_directory() to utils.file_utils 2022-04-25 12:32:59 -04:00
Mike Salvatore 2f4ffad3f6 Island: Skip directories in DirectoryFileStorageService.delete_all_files 2022-04-25 12:15:57 -04:00
Mike Salvatore a487aa4058 Island: Modify PostBreachFilesService to wrap IFileStorageService 2022-04-25 12:06:23 -04:00
Mike Salvatore d157bf7a40 Island: Use IFileStorageService in FileUpload resource 2022-04-25 12:06:21 -04:00
Mike Salvatore d1e18e9dbd Island: Use IFileStorageService in PBAFileDownload resource 2022-04-25 10:57:17 -04:00
Mike Salvatore c03a5aac4b Island: Pass the data directory to init_app_resources() 2022-04-25 10:26:32 -04:00
Mike Salvatore 6cfdcaaec7 UT: Change flask_client() fixture from session- to function-scoped 2022-04-25 10:23:37 -04:00
Mike Salvatore 88df935c77 Island: Add DirectoryFileStorageService 2022-04-25 09:39:16 -04:00
Mike Salvatore 80a305ea81 Island: Add IFileStorageService 2022-04-25 09:39:16 -04:00
Mike Salvatore 3c1e25b88c UT: Move Linux directory permissions check to a utility function 2022-04-25 09:39:16 -04:00
VakarisZ b9efc2d552
Merge pull request #1909 from guardicore/957-island-reset-improvements
957 island reset improvements
2022-04-22 10:48:28 +03:00
vakarisz 193bcdbf58 UI: Change the contents of running monkeys warning on reset modal
This change makes the warning more actionable
2022-04-22 10:45:03 +03:00
Mike Salvatore 2ba94fde7d Island: Remove disused remote_port_check service 2022-04-21 14:24:34 -04:00
Ilija Lazoroski 53b405a115 Island: Fix automatic jumping in telemetry feed
Fixes #1850
2022-04-21 13:42:08 -04:00
Mike Salvatore a6603c64d6 UT: Add test_all_keys_if_credentials_empty() test 2022-04-21 12:21:33 -04:00
vakarisz 75034f37f6 UI: Replace startOverPage with an improved Island reset modal
New modal allows to save clicks, explains the situation better, offers to export the config and allows deleting agent data without deleting config
2022-04-21 17:41:24 +03:00
vakarisz 551439dcc2 Island: Add endpoint to delete agent data
This endpoint allows to delete the data gathered by agents without resetting config related databases
2022-04-21 17:38:10 +03:00
vakarisz fb2f85ba24 Island: Add collection name properties to config and mode models
Collection name properties are useful for queries related to these specific collections
2022-04-21 17:36:41 +03:00
Shreya Malviya e06e855a48 Island: Check if machine responded before processing scan telemetry
Fixes part of #1850
2022-04-21 08:09:54 -04:00
Shreya Malviya bb238de037 UI: Fix current line number in telemetry overview window 2022-04-21 16:14:58 +05:30
Mike Salvatore 53d1c55bba Agent: Refactor InfectionMonkey._build_windows_delete_command()
* Replace references to "monkey" with "agent"
* Improve comments
2022-04-20 12:27:08 -04:00
Mike Salvatore 6d51f17f29 Agent: Improve whitespace and formatting in _self_delete_windows() 2022-04-20 12:27:08 -04:00
Ilija Lazoroski 838848bc3a Agent: Move delay delete commands to monkey.py 2022-04-20 12:27:08 -04:00
Mike Salvatore c2e01eaea7 Agent: Refactor InfectionMonkey._self_delete() 2022-04-20 12:27:08 -04:00
Ilija Lazoroski f2527b4d89 Agent: Change windows removal command 2022-04-20 12:26:48 -04:00
Mike Salvatore 4f5711b2ba Agent: Fix USERNAME_PREFIX imports 2022-04-20 11:46:50 -04:00
vakarisz a335f30c68 Agent: Move username const to model
This const is used by PBA and mimikatz collectors as describes the username prefix for users created by IM
2022-04-20 17:10:59 +03:00
Shreya Malviya 3561573a6b Agent: Check username of Mimikatz gathered creds
before adding to the config since we don't want to add users created by the Monkey
2022-04-20 18:18:23 +05:30
Shreya Malviya 2bcdb72555 Agent: Extract const USERNAME_PREFIX to a common file 2022-04-20 17:41:57 +05:30
Shreya Malviya e91087f9fe UI: Fix padding for telemetry overview line counter 2022-04-20 07:29:43 -04:00
Ilija Lazoroski d69ce734f1 Island: Fix immediate threats indentation 2022-04-20 12:36:58 +03:00
dependabot[bot] f49b46af7e Bump async from 2.6.3 to 2.6.4 in /monkey/monkey_island/cc/ui
Bumps [async](https://github.com/caolan/async) from 2.6.3 to 2.6.4.
- [Release notes](https://github.com/caolan/async/releases)
- [Changelog](https://github.com/caolan/async/blob/v2.6.4/CHANGELOG.md)
- [Commits](https://github.com/caolan/async/compare/v2.6.3...v2.6.4)

---
updated-dependencies:
- dependency-name: async
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-04-20 12:36:04 +03:00
Ilija Lazoroski adea9cc2a7 Common: Fix error logging for wait_commands
* Add Timer TODO
2022-04-19 14:00:14 +02:00
Mike Salvatore 587331dbdb
Merge pull request #1893 from guardicore/1888-rename-monkey-endpoint
1888 rename monkey endpoint
2022-04-19 07:37:31 -04:00
vakarisz 9f7f3c2498 UI: Rename "StartOverModal" to "ResetIslandModal" 2022-04-19 13:14:18 +03:00
vakarisz 91059a57ba UI: Rename "Start over" to "Reset" 2022-04-19 12:58:25 +03:00
Ilija Lazoroski ab24bf0d72 Island: Remove bitness functionality from RemoteRunAws service 2022-04-19 11:27:20 +02:00
Shreya Malviya 704cc8cca3 Agent: Remove kerberos cred type from pypykatz handler 2022-04-19 12:03:58 +03:00
Mike Salvatore 825fe33885
Merge pull request #1895 from guardicore/1889-remove-client-monkey-endpoint
Remove "/api/client-monkey" endpoint
2022-04-18 10:23:09 -04:00
Shreya Malviya 7b53008ce8 UI: Add logs' download buttons to Island node in the map
Fixes #1894
2022-04-18 10:22:16 -04:00
Ilija Lazoroski 9d22185064 Island: Remove "/api/client-monkey" endpoint 2022-04-18 14:48:53 +02:00
Ilija Lazoroski 3597e08628 Agent: Rename api/monkey endpoint to api/agent 2022-04-18 13:53:15 +02:00
Ilija Lazoroski c0da5b7103 Island: Rename api/monkey endpoint to api/agent 2022-04-18 13:53:15 +02:00
Mike Salvatore e9895a04f5
Merge pull request #1892 from guardicore/1888-fix-endpoint-urls
Fix endpoints urls
2022-04-15 09:55:26 -04:00
Mike Salvatore 65e28e987b Agent: Use MEDIUM_REQUEST_TIMEOUT for contacting the island
This will drop something like 30 seconds off of our tunneling test.
Generally speaking, 5 seconds seems like enough time for a simple HTTP
request to make a round trip within a local network. If we see issues in
practice, we can make this value configurable at runtime.
2022-04-15 09:48:48 -04:00
Mike Salvatore cbcb0dd1c1 Agent: Increase exploit threads from 4 to 6 2022-04-15 09:48:47 -04:00
Ilija Lazoroski 52ee31e326 Agent: Rename api/monkey_control to api/monkey-control 2022-04-15 13:17:26 +02:00