Commit Graph

5752 Commits

Author SHA1 Message Date
Shreya 0681782505 island: Pass `mode` as an enum instead of enum value when updating config, and update typehints 2021-07-20 13:16:06 +05:30
Shreya 5603773083 island: Remove unused import and sort imports 2021-07-19 17:35:31 +05:30
Shreya 28461bd607 tests: Monkeypath `ConfigService.update_config_on_mode_set` for POST test in `test_island_mode.py` 2021-07-19 17:20:31 +05:30
Shreya Malviya 743619b81b island: Apply config filter as per mode 2021-07-19 15:37:53 +05:30
Shreya Malviya f1a3e1fc25 island: Separate `island_mode_service.py` to separate files for get and
set mode services
2021-07-19 15:34:48 +05:30
Shreya Malviya d3de80feed island: Add filters for default config as per mode 2021-07-16 19:45:32 +05:30
VakarisZ c760e06f03
Merge pull request #1332 from guardicore/ransomware_tab_by_default
Sort report tabs according to scenario
2021-07-16 15:47:59 +03:00
VakarisZ 7b695e6574
Merge pull request #1330 from guardicore/1324/submit-config-warning
Fix submit config when nothing is changed on Ransomware and Network
2021-07-16 15:47:17 +03:00
VakarisZ 0ee3e7be5e Island UI: change report UI to sort tabs according to island mode. In ransomware mode, ransomware tab is the first on the right. 2021-07-16 15:00:33 +03:00
VakarisZ 28e14b4c4c Island UI: change report side nav button to show ransomware report as default report when ransomware scenario is chosen 2021-07-16 15:00:33 +03:00
VakarisZ 5a2bb51789
Merge pull request #1326 from guardicore/ransomware_landing_page
Ransomware landing page
2021-07-16 14:58:43 +03:00
VakarisZ 67968459ae Island UI: fix a bug that causes page refresh to redirect to getting started page 2021-07-16 11:47:13 +03:00
VakarisZ 42936730a6 Island UI: improve Main.tsx readability and finish exporting of hard-coded routes into an enum 2021-07-16 10:39:53 +03:00
Ilija Lazoroski 752ea6af10 ui: Remove title and type from config schema 2021-07-16 09:31:14 +02:00
VakarisZ 63f885e3db Island UI: merge StandardLayoutComponent.js and DisabledSidebarLayoutComponent.tsx into one component to remove duplication 2021-07-16 08:52:49 +03:00
Ilija Lazoroski 8ee3ab4317 UI: Fix submit config when nothing is changed on Ransomware and Network
Tabs
2021-07-15 18:15:15 +02:00
Mike Salvatore b1fe850624 Travis: Use swimm version 0.5.0, and not "latest" from GitHub API
GitHub only allows so many API calls per hour. If this is exceeded, the
travis ci build will fail.
2021-07-15 12:13:16 -04:00
Mike Salvatore 23c298a5f1 Travis: Use hugo version 0.85.0, and not "latest" from GitHub API
GitHub only allows so many API calls per hour. If this is exceeded, the
travis ci build will fail.
2021-07-15 12:00:57 -04:00
Mike Salvatore ed2ebc79c3
Merge pull request #1325 from guardicore/ransomware-payload-refactor
Ransomware payload refactor
2021-07-15 11:54:12 -04:00
Mike Salvatore feda0718cc Agent: Set default self.target_directory to None 2021-07-15 11:52:17 -04:00
Mike Salvatore 4be442f814 Agent: Fix import error 2021-07-15 11:45:58 -04:00
Mike Salvatore 7966703f63 Agent: Rename readme_utils to readme_dropper 2021-07-15 11:36:10 -04:00
Mike Salvatore 8ae41907ba Tests: Remove accidental print() from test_file_selectors 2021-07-15 11:29:54 -04:00
Mike Salvatore 9044c587a6 Agent: Pass a RansomwareConfig to RansomwarePayload
Rather than RansomwarePayload being responsible fro translating the
config dictionary into something usable, it now just accepts a
RansomwareConfig object which contains pre-processed configuration
options.
2021-07-15 11:26:02 -04:00
Mike Salvatore 6f5a7faaa1 Agent: Add RannsomwareConfig class 2021-07-15 11:23:32 -04:00
VakarisZ 1a7b513ca3 Island UI: fix a bug that broke completed step checkmarks in the side navigation 2021-07-15 11:35:48 +03:00
VakarisZ e9094bdfd6 Island UI: fix a bug in side navigation that causes the report side navigation button to go out of "active" mode on ransomware report tab 2021-07-15 10:42:15 +03:00
VakarisZ dae669282d Island UI: implement scenario/mode reset upon starting over 2021-07-15 10:19:53 +03:00
VakarisZ 4dc138ca48 Island UI: finish the routing implementation related to landing page (if mode not chosen redirect to landing page, etc.) 2021-07-15 10:19:53 +03:00
VakarisZ 980f06ed73 Island UI: fix a bug in IslandHttpClient.tsx that caused the body of a Response object to be a promise instead of an object 2021-07-15 10:19:53 +03:00
VakarisZ 5743f8ea98 Island: Implements basics of page redirection when island mode is set 2021-07-15 10:19:53 +03:00
VakarisZ b03c6d9f92 Island: Add LandingPage.tsx and DisabledSidebarLayoutComponent.tsx 2021-07-15 10:19:52 +03:00
VakarisZ 93b90dbadf Island: refactor Main.js and SideNavComponent.js into typescript and add the ability to disable side navigation 2021-07-15 10:19:51 +03:00
Mike Salvatore f804d6cf5b UI: Left-align report table headers since contents are left-aligned 2021-07-14 14:56:42 -04:00
Mike Salvatore 7ae46339e0 UI: Show ransomware encrypted file count only in red or black 2021-07-14 14:56:42 -04:00
Mike Salvatore e241d46263
Merge pull request #1323 from guardicore/ransomware-show-relevant-configuration-tabs
Display relevant configuration tabs in ransomware mode
2021-07-14 14:31:59 -04:00
Mike Salvatore 6acd9061a3 Island: Set correct default config tab on refresh 2021-07-14 14:30:41 -04:00
Mike Salvatore fb7a615766
Merge pull request #1322 from guardicore/1241/ransomware-quickstart-hide-run-scoutsuite
Ransomware quickstart - Hide scoutsuite run options in ransomware mode
2021-07-14 14:29:41 -04:00
Mike Salvatore c0514e1359 Island: Pass island mode as a prop to ConfigurePageComponent 2021-07-14 14:26:14 -04:00
Shreya 7170efbf0d cc: Extract configuration tabs' order to a separate file and modify how the order is fetched 2021-07-14 13:58:19 -04:00
Shreya 6e3053cfc0 cc: Don't try rendering any monkey config tab if length of `this.state.configuration` is 0
The config is fetched in `componentDidMount()` (which is called
after `render()` finishes successfully). If you attempt to render
the configuration (i.e. call `renderConfigContent()`) before the
config is fetched, it throws an error.
2021-07-14 13:58:19 -04:00
Shreya 917d7dfb15 cc: Get configuration tabs' order based on Island mode 2021-07-14 13:58:19 -04:00
Shreya 035ce6c8b0 cc: Don't set `selectedSection` to 'attack' in `componentDidMount` in `ConfigurePage.js`
Remove a line which seems to do nothing useful.
Causes issues if the first tab in the configuration page
is not the ATT&CK tab.
2021-07-14 13:58:18 -04:00
Mike Salvatore a786428652 Island: Pass island mode as a prop from Main.js to child components 2021-07-14 13:26:30 -04:00
Mike Salvatore 918d233983 Agent: Add build_ransomware_payload() function 2021-07-14 12:48:37 -04:00
Mike Salvatore fd3cc46e55 Agent: Remove unused return value from RansomwarePayload._encrypt_files 2021-07-14 12:07:19 -04:00
Ilija Lazoroski f725efd41a ui: Refactor scoutsuite hiding functions 2021-07-14 16:30:41 +02:00
Mike Salvatore 0be919b805 Agent: Use mock encryptor in test_ransomware_payload.py 2021-07-14 09:18:59 -04:00
Ilija Lazoroski 6dbac85256 ui: Hide scoutsuite run options in ransomware mode 2021-07-14 15:00:21 +02:00
Mike Salvatore d9cc66de54 Agent: Inject InPlaceFileEncryptor into RansomwarePayload 2021-07-14 08:50:49 -04:00