Commit Graph

5865 Commits

Author SHA1 Message Date
VakarisZ fcb52b8223 Island UI: alter ransomware report to contain a section describing manual executions 2021-07-26 11:29:13 +03:00
VakarisZ 7360b3c4f8 Island: add an endpoint and service to get manual runs/exploitations 2021-07-26 11:28:40 +03:00
VakarisZ 91ca828c72 Monkey: add launch time to the monkey collection
Launch time is needed if we want to tell the user when exactly the exploit occurred/monkey got run
2021-07-26 11:28:40 +03:00
Mike Salvatore 52207c15b8 UI: Add lateral movement section to ransomware report 2021-07-23 15:16:51 +03:00
Mike Salvatore 3da4aee3d4 Tests: move test_encryptor.py to the right directory 2021-07-23 07:28:55 -04:00
Mike Salvatore 5a703580fc
Merge pull request #1348 from guardicore/appimage_improvements
appImage improvements
2021-07-23 06:51:04 -04:00
VakarisZ 3694f584f1
Merge pull request #1343 from guardicore/aws_exporter_bugfix
Bugfix: AWS exporter
2021-07-23 09:59:25 +03:00
VakarisZ 35b96321b4 Island: fix the AWS exporter to export most of the issues and not crash if unknown issues were generated 2021-07-23 09:54:43 +03:00
VakarisZ 690a535e27 appimage: set the setting for clrf conversion skip to be used only during appimage build rather than setting a global config value 2021-07-23 09:51:01 +03:00
VakarisZ d03c4ebb01
Merge pull request #1356 from guardicore/numbered-report-section-component
UI: Use CSS instead of style for FontAwesomeIcon in Reports
2021-07-23 08:54:16 +03:00
Mike Salvatore 9e2f20ca84 UI: Add a "NumberedReportSection" component 2021-07-22 14:29:04 -04:00
VakarisZ 96627837b2 Island UI: fix a race condition between setting island scenario on the UI and on the backend 2021-07-22 10:03:56 -04:00
dependabot[bot] 7245580fa0 build(deps): bump impacket in /monkey/infection_monkey
Bumps [impacket](https://github.com/SecureAuthCorp/impacket) from 0.9.22 to 0.9.23.
- [Release notes](https://github.com/SecureAuthCorp/impacket/releases)
- [Changelog](https://github.com/SecureAuthCorp/impacket/blob/master/ChangeLog)
- [Commits](https://github.com/SecureAuthCorp/impacket/commits)

---
updated-dependencies:
- dependency-name: impacket
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
2021-07-22 09:37:04 -04:00
VakarisZ b12aef7dda appImage: add island directory copy timeout and disable autocrlf feature for the branch being checked out
these changes will help developers in the following cases: trying to create an appImage from already established development environment and trying to create appImage on WSL
2021-07-22 14:45:31 +03:00
Mike Salvatore 2bc0f739dc
Merge pull request #1335 from guardicore/ransomware-mode-default-config-values
Ransomware mode default config values
2021-07-21 09:04:37 -04:00
Mike Salvatore abe8fc268b Tests: Fix flakey elastic blackbox test
Fixes #1117
2021-07-21 08:39:24 -04:00
Shreya 34495d36d4 tests: Fix function path in monkeypatch statement as per previous commit changes 2021-07-21 18:06:52 +05:30
Shreya 736c8008a0 island: Update config after mode set in island mode resource instead of island mode service 2021-07-21 18:06:34 +05:30
Shreya ad24a35acb tests: Fix function path in monkeypatch statement as per previous commit changes 2021-07-21 18:06:34 +05:30
Mike Salvatore 61c3efdf83 Tests: Speed up blackbox tests by 1 minute each
The "keep_tunnel_open_time" option adds an unnecessary 60 second delay
to each test (except the tunneling test, where it is necessary). By
setting the time to 0, each test now runs 60 seconds faster.
2021-07-21 08:23:02 -04:00
Shreya af7651c53b island: Move `get_mode()` and `set_mode()` to a single file `island_mode_service.py` 2021-07-21 17:49:28 +05:30
Shreya 79be5d5a22 cc: Set island mode in `Main.tsx`'s constructor
`Main.tsx`'s `updateStatus()` was being called every 10 seconds,
which meant that `islandMode` was updated every 10 seconds.
If you were on the configuration page, and you refreshed the page
at the right moment (as soon as/just before `updateStatus()`
was being called), the config tabs showed were correct according to
the mode. If you refreshed at the wrong moment, you would get the
default tabs i.e. the tabs shown for the advanced mode (see
`ConfigurePage.js`'s `getSectionsOrder()`).
2021-07-21 08:04:38 -04:00
VakarisZ 64787faf77
Merge pull request #1334 from guardicore/ransomware_mode_at_sidebar
Island UI: add island scenario/mode to side navigation
2021-07-21 08:54:09 +03:00
Mike Salvatore 320d7b48d0 Tests: Skip batching telemetry tests on Windows
The batching telemetry tests do not function properly on Windows. They
sometimes pass and sometimes fail due to a race condition. I've been
unable to get this race condition to manifest on Linux and I believe
this is likely due to differences in how threads and the GIL are handled
between the two operating systems.
2021-07-20 12:29:47 -04:00
Mike Salvatore 4affb11128 Tests: Ensure cleanup of batching_telemetry_messenger
Since an "assert" halts a test, the BatchingTelemetryMessenger may not
be deconstructed. This results in pytest hanging. By adding a finally
clause, we ensure the cleanup of the BatchingTelemetryMessenger.
2021-07-20 12:23:13 -04:00
VakarisZ e3921ed454 Island UI: improve the side navigation with an icon of the chosen scenario 2021-07-20 17:10:16 +03:00
Mike Salvatore 42dcb697e9
Merge pull request #1340 from guardicore/config_UI_bug_on_submit
Island UI: fix config import UI bug
2021-07-20 09:29:14 -04:00
Mike Salvatore 5f3182298c
Merge pull request #1336 from guardicore/speed-up-unit-tests
Speed up unit tests
2021-07-20 09:04:51 -04:00
VakarisZ d9cf28251f Island UI: fix a bug that caused the config UI to remain the same even on configuration submit 2021-07-20 14:43:53 +03:00
Shreya 7b79c297b9 island: Replace config "filter" for "manipulator" as file names/constants/functions 2021-07-20 16:31:36 +05:30
Shreya af86cb088f island: Fix stuff in `config_manipulator.py` after testing 2021-07-20 16:26:32 +05:30
Shreya 42b558674e tests: Fix/add unit tests based on addition of `config_manipulator.py` 2021-07-20 16:11:35 +05:30
Shreya eabbca4f32 island: Fix circular import error in `config_manipulator.py` 2021-07-20 16:10:22 +05:30
Shreya 9b2ec5c316 island: Move config manipulator functions from `config.py` to `config_manipulator.py` 2021-07-20 15:43:03 +05:30
Shreya 5159a577e4 tests: Add tests for config manipulator per mode 2021-07-20 14:15:27 +05:30
Shreya 9c48c115be island: Return and log if config update was not successful on mode set 2021-07-20 14:01:20 +05:30
Shreya fab7738174 island: Add config filter for advanced mode 2021-07-20 13:17:30 +05:30
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
VakarisZ ff9d649b76 Island UI: rename a method in Main.tsx to be more specific: getSideNavHeader -> getIslandModeTitle 2021-07-20 08:58:21 +03:00
Mike Salvatore adb1006b57 Update the CHANGELOG 2021-07-19 15:01:40 -04:00
Mike Salvatore d9a1f22969 Tests: Mark ZeroLogon tests as slow
The ZerologonExploiter relies on impacket. Importing impacket is slow
(approximately .72s). By moving the import statement in zerologon tests
and marking them as slow, the import (and tests) can now be skipped by
running `pytest -m 'not slow'`.
2021-07-19 14:26:40 -04:00
Mike Salvatore 2496ed0889 Tests: Use SSHExploiter instead of WmiExploiter in expliot telem tests
WmiExploiter relies on impacket. Importing impacket is slow, which has a
negative impact on the speed of pytest collection. SSHExploiter is much
quicker to import.
2021-07-19 14:06:31 -04:00
Mike Salvatore 0000486f20 Agent: Minor changes to ransomware_readme.txt 2021-07-19 13:38:47 -04:00
Mike Salvatore 845c9d9ac3 Tests: Address deprecation warning in config.py 2021-07-19 12:41:35 -04:00
Mike Salvatore 41cf0f07c3 Tests: Address mongomock deprication warnings 2021-07-19 12:38:56 -04:00
Mike Salvatore ac52c308f3 Tests: Mark slow tests with @pytest.mark.slow
This allows you to skip slow tests by running `pytest -m 'not slow'`.
2021-07-19 12:34:12 -04:00
Mike Salvatore f0033d0c7c Tests: Convert test_get_all_mitigations() from unittest to pytest 2021-07-19 12:26:32 -04:00
Mike Salvatore ac9bd8dee7 Tests: Remove two extra calls to encrypt_string()
Calls to encrypt_string() result in calls to pyAesCrypt.encryptStream().
These calls are very slow (about .150ms). Modifying these tests to use
static ciphertext instead of encrypting the file each time saves
approximately 300ms when running the unit test suite.
2021-07-19 08:56:48 -04:00
Mike Salvatore 162e375c87 Tests: Make flask_client a session-scoped fixture 2021-07-19 08:14:49 -04:00
Mike Salvatore 5222230487 Tests: Add monkeypatch_session fixture 2021-07-19 08:14:35 -04:00