Commit Graph

8260 Commits

Author SHA1 Message Date
vakarisz 1077a84623 Project: Ignore unused classes created for dal layer 2022-05-24 10:27:07 +03:00
vakarisz e32689a2b0 Island: Fix IAttackRepository class name 2022-05-24 10:22:16 +03:00
vakarisz f43e76aca5 Island: Remove ITelemStoreRepository.py
Refactoring it is not worth it because we're not sure about the performance solution we'll need after the refactoring
2022-05-20 17:43:48 +03:00
vakarisz cfcb252df3 Island: Improved naming of the network map interface 2022-05-20 17:42:14 +03:00
vakarisz ec4af2cc57 Island: Add INetMapRepository.py and a mock entities for it 2022-05-20 17:24:18 +03:00
vakarisz f2a4be8de0 Island: Rename /dal to /repository 2022-05-19 10:41:01 +03:00
vakarisz 3b0ec975d2 Island: Add comments in services and models
These comments explain/elaborate on changes needed for DAL implementation
2022-05-18 17:31:19 +03:00
vakarisz 4bbd998197 Island: Add remaining repository interfaces 2022-05-18 17:29:38 +03:00
vakarisz 8f048a9b34 Island: Delete IRepository.py, because it's split up 2022-05-18 17:28:26 +03:00
Ilija Lazoroski ca951af5d0 Island: Add ITelemStoreRepository interface 2022-05-18 13:44:23 +02:00
vakarisz e0b4037270 Island: Add notes/explanations/thoughs in the services 2022-05-18 13:03:24 +03:00
vakarisz 6438afbcd5 Island: Add a bunch of IRepository interfaces for data entities 2022-05-18 13:02:48 +03:00
vakarisz aaa3aade20 Island: Define repository interfaces for config and edge 2022-05-17 15:29:55 +03:00
Mike Salvatore 77702fcfbd Merge branch '1928-aws-service-refactor' into develop
Resolves #1928
2022-05-12 07:23:47 -04:00
Mike Salvatore 95979e6e71
Merge pull request #1944 from guardicore/1928-report-exporter-removal
1928 report exporter removal
2022-05-12 07:17:52 -04:00
Mike Salvatore 592fb1538f Island: Remove disused Exporter class 2022-05-12 07:12:25 -04:00
Mike Salvatore 25cfa58c69 UI: Use single quotes instead of double quotes in AWSInstanceTable.js 2022-05-12 07:08:16 -04:00
Mike Salvatore e0cec77ec6
Merge pull request #1938 from guardicore/1781-rework-windows-agent-deletion
Mark monkey agent for deletion on boot
2022-05-12 06:50:49 -04:00
vakarisz 499fec2574 Island: Improve _aws_command_results_to_encodable_dict
By calling __dict__ we avoid the need to specify each dictionary key and make it the same as AWSCommandResults. This will allow for easier modification of AWSCommandResults.
2022-05-12 11:21:47 +03:00
vakarisz 70ae745a52 Island: Remove report exporter manager
We only have AWS report exporter, no point to keep this infrastructure
2022-05-12 09:22:03 +03:00
Mike Salvatore 7bb1aeb42c UT: Add __init__.py to avoid test file name collisions
See https://github.com/pytest-dev/pytest/issues/3151 for more details.
2022-05-11 18:30:14 -04:00
Ilija Lazoroski d9046b39a8 Agent: Mark monkey agent for deletion on reboot
Each windows agent which will be runned, we are going to
to mark it for deletion on boot and also try it to delete it using
delayed command.
2022-05-11 23:47:11 +02:00
Mike Salvatore 8fe9b32366 UT: Expect WindowsPath in assert_windows_permissions() 2022-05-11 12:12:24 -04:00
Mike Salvatore c685ce3725 Merge branch '1928-run-agent-on-remote-instance' into 1928-aws-service-refactor 2022-05-11 10:38:51 -04:00
vakarisz 7ed7164a03 Island: Export AWS findings without report_exporter_manager.py 2022-05-11 17:09:48 +03:00
Mike Salvatore f83832dc3c Island: Change method order in RemoteRun 2022-05-11 10:00:35 -04:00
Mike Salvatore ae0e8ddb8e Island: Refactor RemoteRun.post() results encoding 2022-05-11 10:00:04 -04:00
Mike Salvatore 43d8fd87ed UT: Add unit tests for RemoteRun resource 2022-05-11 09:52:21 -04:00
Mike Salvatore cb29c9ed88 Island: Add RemoteRun to resources/__init__.py 2022-05-11 09:51:49 -04:00
Mike Salvatore c865bf3c15 UT: Remove unneeded tmp_path from test_pba_file_download.flask_client() 2022-05-11 09:49:44 -04:00
Mike Salvatore 7c0616eecd Island: Add timeout parameter to start_infection_monkey_agent() 2022-05-11 08:20:48 -04:00
vakarisz 3702ecbc8c UI: Fix AWSInstanceTable.js to show status of run commands 2022-05-11 15:15:15 +03:00
Mike Salvatore d1d960abc2 UT: Fix faulty logic in test_multiple_status_queries
The test is checking that some calls return "in progress" and subsequent
calls return success. Using itertools.repeat allows all future calls to
return success.
2022-05-11 08:09:56 -04:00
Mike Salvatore 825c7b9ecf Island: Refactor logic to start threads in AWSService 2022-05-11 08:04:25 -04:00
Mike Salvatore 680dbca574 UT: Use only Python3.7 features in test_aws_command_runner 2022-05-11 07:56:15 -04:00
vakarisz b8006a6274 Island: Add instance ID to AWSCommandResults
Instance id tells us where the command was launched
2022-05-11 14:32:39 +03:00
vakarisz 0b5a507f38 Island: Make AWSCommandStatus enum json serializable 2022-05-11 13:48:56 +03:00
VakarisZ b9f71cd41c
Merge pull request #1936 from guardicore/1883-setup-docs-linux
Add documentation to run IM as service on boot
2022-05-11 12:26:34 +03:00
vakarisz 30fb57c37f Island: Fix a bug where agent run threads won't start 2022-05-11 11:10:45 +03:00
Shreya Malviya 7e997b5403 Docs: Add instructions about root permissions for AppImage systemd unit installation 2022-05-11 13:32:35 +05:30
vakarisz aa159a4240 Island: Improve aws_command_runner.py readability a bit 2022-05-11 10:20:27 +03:00
Mike Salvatore 94fd2a26d9 Island: Remove disused AwsCmdResult
This was replaced by monkey_island.services.aws.AWSCommandResults.
2022-05-10 13:37:44 -04:00
Mike Salvatore 60229f4a65 Island: Run multiple AWS commands concurrently 2022-05-10 13:31:14 -04:00
Mike Salvatore 487d1c55af Common: Add queue_to_list() 2022-05-10 13:30:10 -04:00
Mike Salvatore 2804ba9b07 Island: Return AWSCommandResults from start_infection_monkey_agent() 2022-05-10 13:09:56 -04:00
vakarisz e5285f2f78 Island: Add custom error and sketch out AWS command results 2022-05-10 16:57:36 +03:00
Mike Salvatore 109ea87196 Island: Fix negative sleep time bug in aws_command_runner 2022-05-10 09:47:58 -04:00
Mike Salvatore 27f8195be5 UT: Add unit tests for aws_command_runner 2022-05-10 09:47:46 -04:00
Shreya Malviya 0c95f66782 Docs: Add instructions to run IM as service on boot through the AppImage 2022-05-10 18:56:34 +05:30
Mike Salvatore 79eb584c5d Island: Skip try_add_aws_exporter_to_manager()
This is causing the island to crash at the moment and will be completely
removed later in #1928.
2022-05-10 08:50:47 -04:00