Commit Graph

119 Commits

Author SHA1 Message Date
VakarisZ 4fdd3370ca Island, UI: implement the endpoint for stopping all monkeys, change the UI to call this endpoint and send a timestamp of button press 2021-12-08 14:48:57 +02:00
VakarisZ 52369f0fae Island: rename "monkey_control" resource folder to "agent_controls" 2021-12-08 14:48:57 +02:00
Mike Salvatore 6a1b6c784e
Merge pull request #1643 from guardicore/1538-propagation-credentials-endpoint
Implement propagation credentials endpoint
2021-12-08 06:42:49 -05:00
Mike Salvatore 5052e21d97 Island: Remove /api/monkey_control/check_remote_port/<string:port> 2021-12-07 13:26:37 -05:00
Mike Salvatore 8ecf328b4c Island: Reimplement PropagationCredentials resource 2021-12-07 11:27:19 -05:00
Mike Salvatore 58d55f589d Island: Remove camel case from propagation credentials endpoint 2021-12-07 07:45:59 -05:00
Mike Salvatore 7cda2b8e58 Island: Add "/legacy" config format option to monkey config endpoint
The schema of the configuration that is given to the agent when it
requests configuration from the island is heavily influenced by the GUI
and how configuration options should be displayed to the user. It is not
formatted in a way that is easy for the agent to utilize. This commit
adds a `/api/monkey/<string:guid>/<string:config_format>` endpoint that
allows legacy code to continue to function, while the agent's new
AutomatedMaster component (issue #1597) can receive configuration in a
way that makes sense for the agent.
2021-12-03 09:13:08 -05:00
Mike Salvatore 21a9c4fa14 Island: Remove disused MonkeyConfiguration resource 2021-12-03 09:13:08 -05:00
Ilija Lazoroski 3aad64dff7 Island: Add endpoint to retrive propagation credentials 2021-11-23 15:17:01 +01:00
Ilija Lazoroski 7766e27f16 Island: Add mock endpoint to check if the agent should stop 2021-11-23 15:17:01 +01:00
Mike Salvatore f457635507
Merge pull request #1620 from guardicore/1506-remove-environments
Remove environments
2021-11-22 06:40:40 -05:00
Ilija Lazoroski ee16fa82a0 Island: Remove attack endpoint and config functions 2021-11-19 18:19:28 +01:00
Mike Salvatore e0fc3cec2a Island: Change Environment.get_auth_expiration_time() to a constant 2021-11-19 08:30:22 -05:00
VakarisZ 3b5dd6ac3e Remove database initialization during island startup
Database initialization can not be done because island doesn't know the key needed for encrypting collections. Since the key only appears after registration, database setup also should happen only after registration
2021-10-04 14:23:50 +03:00
Shreya Malviya 739a017e91 island: Remove API endpoints for standard environment 2021-09-01 16:19:32 +05:30
Mike Salvatore fceb52ba38
Merge pull request #1375 from guardicore/ransomware_exploits_table
Ransomware report: Exploits table in lateral movement section
2021-07-28 13:11:47 -04:00
Mike Salvatore bfd7d3cfbf Remove "__author__" lines from the source code
The "__author__" lines in numerous Python files serve little purpose.
At best, they are redundant. At worst, they are incorrect and
misleading.

The VCS (i.e. git) tracks all changes to files. Storing the author in
the files is redundant violates the DRY principle.

If the file changes, whose name belongs in the __author__ field? What if
it changes so drastically that it's almost unrecognizable? If there's
any circumstance where the __author__ name should change, what enforces
that this change takes place? Given the ambiguity of these scenarios,
the __author__ field could be misleading or incorrect.

Resolves #1345
2021-07-28 12:43:28 -04:00
VakarisZ 1448bb1850 Island: extract monkey exploitations into a separate service and a separate endpoint
This change not only removes complexity from the huge report service, but also allows different UI components to call the API without forcing the whole report to be generated
2021-07-28 12:14:38 +03:00
VakarisZ 7360b3c4f8 Island: add an endpoint and service to get manual runs/exploitations 2021-07-26 11:28:40 +03:00
VakarisZ f8b6277a88 Island: Add an endpoint for setting the island's mode. Also, add an enum of all the modes 2021-07-12 13:32:14 +03:00
Shreya 7b167ba0c4 island: Add API endpoint for ransomware report 2021-07-05 16:17:40 +05:30
VakarisZ 624fda10cb Renamed configuration import resource endpoint(url) and resource itself. 2021-06-03 17:01:59 +03:00
Shreya 338404799e Add initial implementation of encrypting config and saving it on export 2021-06-03 17:01:26 +03:00
VakarisZ 34024794c8 Implemented the skeleton of import config modal 2021-06-03 17:01:26 +03:00
Mike Salvatore f86bc7f943 island: Move run_local_monkey() to its own service 2021-05-12 08:35:46 -04:00
Mike Salvatore be0f7ac881 island: Decouple PBAFileDownload from environment_singleton 2021-05-11 14:40:53 -04:00
Mike Salvatore f048cf313c island: Pass data_dir to LocalRun instead of using global singleton 2021-05-11 14:40:53 -04:00
Shreya 025cb7851c Rename blackbox endpoint classes to match filenames 2021-04-14 15:33:02 +05:30
Shreya 6d43ce900c Rename blackbox test files under monkey_island/cc/resources/blackbox/ 2021-04-14 10:47:00 +05:30
Shreya 86c4f9f63d Rename directory "test" to "blackbox" in monkey_island/cc/resources/ 2021-04-14 10:47:00 +05:30
Shreya 26684bbb4e Rename files having endpoints for blackbox tests 2021-04-13 10:53:19 +05:30
VakarisZ 3149dcc8ec Fixed screwed up formatting with black 2021-04-07 13:40:01 -04:00
VakarisZ 03bcfc97af All E501 errors fixed, but formatting screwed up 2021-04-07 13:40:01 -04:00
Mike Salvatore f85e6fc7d0 Sort all imports using isort 5.8.0 2021-04-06 18:01:59 -04:00
Mike Salvatore c40f7bf6c9 Reformat all python with black v20.8b1 2021-04-06 09:20:18 -04:00
VakarisZ 263fa53ea5 Added an endpoint on the island for telemetry tests. This allows for tests like blackbox tests to send queries and check whether a certain telemetry is in the database or not 2021-03-08 11:13:31 +02:00
VakarisZ 3a9aa3191f Separated zero trust and security report resources 2021-01-15 15:10:07 +02:00
VakarisZ 46abff412d Grouped files used for serving flask into a "server_utils" package 2021-01-08 12:05:18 +02:00
VakarisZ 821024035e Specified line-wrap option to isort and skipped a file that's not correctly wrapped 2020-10-06 14:54:05 +03:00
VakarisZ 39523504c3 Fixed import statements and their ordering 2020-10-06 13:18:50 +03:00
VakarisZ dd3d5d317a Added interactive AWS key setup/scoutsuite configuration 2020-10-01 15:02:54 +03:00
VakarisZ 5a6a68fde0 Changed default flask json encoder so we could encode objects with custom fields, like field of type ObjectId 2020-09-18 09:28:31 +03:00
VakarisZ a365d2eb3c Exported telem categories into dict, moved scoutsuite submodule to a different dir 2020-09-03 12:06:20 +03:00
Shreya 989286857b CR changes 2020-08-24 19:02:58 +05:30
Shreya 79eeaa7904 Code review changes
- smaller executable file; fetches it from the island when pba needs to run
- technique configured off by default
- other implementation changes
2020-08-18 02:25:13 +05:30
Shreya 15210d260c Code review changes
- smaller executable file; fetches it from the island when pba needs to run
- technique configured off by default
- other implementation changes
2020-08-18 00:29:50 +05:30
Shreya 4b664031af Code review changes
- smaller executable file; fetches it from the island when pba needs to run
- technique configured off by default
- other implementation changes
2020-08-18 01:39:45 +05:30
Shreya b80e504400 Shift the config variable change to the allocated function 2020-07-31 23:21:57 +05:30
Shreya f6fd93bcb1 Set flask config 'JSON_SORT_KEYS' to false 2020-07-31 22:11:39 +05:30
Shay Nehmad 2bbb2d2c2c Some small CR fixes - improved doc and logs 2020-07-21 18:40:08 +03:00