Commit Graph

132 Commits

Author SHA1 Message Date
Kekoa Kaaikala 732751f007 Project: Fix vulture warnings 2022-09-09 08:13:02 -04:00
Mike Salvatore 4bff110f35 Merge branch '2216-add-tcprelay' into tcp-relay
PR #2231
2022-09-09 08:12:50 -04:00
Mike Salvatore 68bc73d86a Merge branch 'i-node-repository' into develop 2022-09-07 10:25:00 -04:00
Mike Salvatore 5f874356b1 Island: Remove INetworkMapRepository
Replaced by monkey_island.cc.models.Node and INodeRepository
2022-09-07 10:22:54 -04:00
Mike Salvatore 8c69780f4e Island: Add INodeRepository 2022-09-07 10:22:54 -04:00
vakaris_zilius 895de8c720 Common: Delete IJSONSerializable.py
This interface is no longer used (replaced by pydantic objects)
2022-09-07 13:19:39 +00:00
vakaris_zilius ece4d9383e Agent, Common: Refactor pydantic credentials to use SecretStr 2022-09-07 11:48:33 +00:00
vakaris_zilius ed24108bfa Project: Add temporary IJSONSerializable ignore 2022-09-07 11:48:28 +00:00
vakarisz f868f03ea7 Common: Refactor credentials from marshmallow to pydantic 2022-09-07 11:47:53 +00:00
Mike Salvatore 205848f2a5 Project: Remove PyPubSubIslandEventQueue from vulture_allowlist.py 2022-09-06 15:13:35 -04:00
Mike Salvatore 166588d00d Project: Remove PyPubSubAgentEventQueue from vulture_allowlist.py 2022-09-06 15:12:37 -04:00
Shreya Malviya 8f35a43591 Project: Fix import path in Vulture allowlist 2022-09-06 19:05:14 +05:30
Shreya Malviya fb4bfb7be1 Project: Fix PyPubSubIslandEventQueue entries to Vulture allowlist 2022-09-06 13:25:59 +05:30
Shreya Malviya 122e09426e Project: Add IIslandEventQueue entries to Vulture allowlist 2022-09-06 12:08:06 +05:30
Shreya Malviya e1e4b054cf Project: Use correct file path in Vulture allowlist 2022-09-05 19:30:32 +05:30
Shreya Malviya 21815291a0 Project: Use correct variable in Vulture allowlist 2022-09-05 19:29:37 +05:30
Shreya Malviya e14c1ea5f3 Project: Use correct file path in Vulture allowlist 2022-09-05 19:29:37 +05:30
Mike Salvatore de5da88c22
Merge pull request #2238 from guardicore/agent-repository
Agent repository
2022-09-02 15:04:16 -04:00
Shreya Malviya 4017f094cf Project: Add entries to Vulture allowlist 2022-09-02 12:25:08 +05:30
Shreya Malviya 5b1558ce53 Project: Include classes in Vulture allowlist 2022-09-02 12:05:29 +05:30
Shreya Malviya 96f213d4ee Project: Add pydantic validators to Vulture allowlist 2022-09-02 12:05:08 +05:30
Mike Salvatore ccffd1eaee Project: Update vulture_allowlist.py for IAgentRepository changes 2022-09-01 12:43:45 -04:00
Ilija Lazoroski 508b811939 Agent: Rename on_user_connected to add_relay_user 2022-09-01 13:41:50 +02:00
Ilija Lazoroski 94fba0fdf0 Agent: Rename RelayUser.time to last_update_time 2022-09-01 10:17:13 +02:00
Ilija Lazoroski 302cdaac70 Agent: Use event.wait() when running TCPRelay 2022-09-01 09:57:46 +02:00
Mike Salvatore 973a82e087 Merge branch 'machine-repository' into develop
PR #2228
2022-08-31 10:54:54 -04:00
Mike Salvatore ba7dab26d7 Island: Refactor how Machine objects are managed by IMachineRepository
- Replace `create_machine()` with `get_new_id()`
- Replace `update_machine()` with `upsert_machine()`

Benefits:
    The repository doesn't store Machine objects that only have the ID
    populated (unless that is the caller's desire).

    Upsert instead of update allows the interface to be more permissive.
2022-08-31 10:17:20 -04:00
Kekoa Kaaikala 70a9251c5b Agent: Fix type hints 2022-08-30 13:44:32 +00:00
Mike Salvatore eb3fe21b11 Island: Redefine IMachineRepository 2022-08-29 19:27:14 -04:00
Mike Salvatore 9a95cfbc8b Project: Add machine_hardware_id to vulture_allowlist.py 2022-08-25 11:51:17 -04:00
Mike Salvatore 4769b0edc8 Project: Add fields from some models to vulture_allowlist.py 2022-08-19 11:31:14 -04:00
Mike Salvatore 54db99350d Island: Add CommunicationType Enum 2022-08-19 11:31:14 -04:00
Mike Salvatore b6e04074a4 Island: Make Machine.network_interfaces immutable 2022-08-19 11:31:14 -04:00
Mike Salvatore a4a4613a66 Island: Add a Machine model 2022-08-19 11:31:14 -04:00
Mike Salvatore 09474ac1fe Island: Add base models for pydantic classes 2022-08-19 11:31:11 -04:00
ilija-lazoroski 808bf5fee9
Merge pull request #2205 from guardicore/2179-create-ieventserializer
Event serializer
2022-08-18 16:06:14 +02:00
Shreya Malviya 4be262657e Project: Remove Vulture entries no longer relevant
Issue #2176
2022-08-18 07:13:30 -04:00
Shreya Malviya 132f3a3473 Project: Add event serializer entries to Vulture allowlist 2022-08-17 21:31:35 +05:30
Ilija Lazoroski db8e1e50da Agent: Add add_credentials_from_event_to_propagation_credentials_repository
Callable class that adds credentials to the propagation credentials
repository
2022-08-15 09:30:04 +02:00
Mike Salvatore dc0f865f9b
Merge pull request #2192 from guardicore/2176-initialize-event-queue
Initialize IEventQueue
2022-08-12 10:14:20 -04:00
Ilija Lazoroski 21c9ea9d44 Agent: Initialize IEventQueue 2022-08-12 15:31:55 +02:00
Ilija Lazoroski 743d40abab Common: Rename StolenCredentialsEvent to CredentialsStolenEvent 2022-08-12 09:39:04 +02:00
Ilija Lazoroski 889863bb93 Common: Define StolenCredentialsEvent 2022-08-11 19:36:52 +02:00
Mike Salvatore 87cbdd9fb8 Common: Rename subscribe_all() -> subscribe_all_events() 2022-08-10 09:17:13 -04:00
Shreya Malviya 3938e2f377 Project: Add subscribe_all_event_types to Vulture allowlist 2022-08-09 19:00:05 +05:30
Shreya Malviya 7a77fd82df Project: Add event queue's entries to Vulture allowlist 2022-08-09 17:12:48 +05:30
Ilija Lazoroski 8586d89062 Island: Implement Version object 2022-08-03 16:43:04 +02:00
Mike Salvatore c7be5f6c68 Project: Add AbstractEvent to vulture_allowlist.py 2022-08-02 20:38:08 -04:00
Shreya Malviya 9c7b69dd7b Project: Add 'validate_windows_filename_not_reserved' to Vulture's allowlist 2022-07-27 12:32:07 +05:30
vakarisz 91e8ce62db Common: Freeze lists to tuples in agent configuration 2022-07-26 17:25:06 +03:00