Mike Salvatore
4d753a808b
Common: Add Credentials.from_json_array()
2022-07-07 14:58:07 -04:00
Mike Salvatore
1ab190cd2a
Merge pull request #2065 from guardicore/1965-modify-clear-simulation-data
...
Modify /api/clear-simulation-data to clear stolen credentials
2022-07-07 12:56:50 -04:00
Mike Salvatore
bd810440af
Island: Remove unnecessary error handling
...
Flask automatically catches exceptions and returns a 500 response, so
there's no need to add extra code to do this.
2022-07-07 12:55:46 -04:00
Mike Salvatore
402a5f5860
Merge pull request #2067 from guardicore/1965-credentials-serialization
...
1965 credentials serialization
2022-07-07 11:31:41 -04:00
Mike Salvatore
5211045194
Common: Reformat docstring for del_key()
2022-07-07 11:30:05 -04:00
Mike Salvatore
d0fa9a7dcf
Common: Use the imperative in del_key() docstring
2022-07-07 11:29:08 -04:00
Mike Salvatore
08bb49af0f
Common: Add ssh-key-regex note to TODO
2022-07-07 11:25:33 -04:00
Shreya Malviya
d16b3e6bef
Island: Update HTTP status code when RemovalError is encountered in ClearSimulationData
2022-07-07 08:22:52 -07:00
Mike Salvatore
e921f90e00
Agent: Use Credentials.to_json() for CredentialsTelem serialization
2022-07-07 09:15:01 -04:00
Mike Salvatore
9ea0fb87ea
Common: Raise InvalidCredentialComponentError from Credentials
2022-07-07 08:52:33 -04:00
Mike Salvatore
06fc4aaad6
Common: Catch MarshmallowError instead of Exception
2022-07-07 08:47:41 -04:00
Mike Salvatore
540519e3c1
Merge pull request #2063 from guardicore/1965-retrieve-credentials
...
1965 retrieve credentials
2022-07-07 08:44:53 -04:00
Mike Salvatore
6bb6aa5250
Common: Remove INVALID_CONFIGURATION_ERROR_MESSAGE
2022-07-07 08:39:46 -04:00
Mike Salvatore
a18eb1cb73
Common: Add error trapping to Credentials deserialization
2022-07-07 08:31:53 -04:00
Mike Salvatore
3f61ddd584
Common: Fix type hints in credentials.py
2022-07-07 07:48:54 -04:00
Mike Salvatore
e76d72e07e
Common: Remove NOOP assignment
2022-07-07 07:45:44 -04:00
Mike Salvatore
907b35990d
Common: Fix COMPINENT -> COMPONENT
2022-07-07 07:45:28 -04:00
Mike Salvatore
008428e318
Common: Fix type hints in credentials.py
2022-07-07 07:43:12 -04:00
Mike Salvatore
59a9aa8a53
Project: Ignore decorated Schema methods in credentials.py
2022-07-07 07:37:15 -04:00
Mike Salvatore
c58d26a5e4
Common: Clean up credentials.py
2022-07-07 07:35:34 -04:00
Ilija Lazoroski
f806f848fa
UT: Return a list in Propagation Credentials
...
* Add TODOs to change to Credentials from common.credentials
2022-07-07 10:48:13 +02:00
Ilija Lazoroski
af1ab34aa3
Island: Return a list in Propagation Credentials endpoint
2022-07-07 10:48:12 +02:00
Ilija Lazoroski
777897cb74
UT: Compare actual propagation credentials vs expected
2022-07-07 10:48:12 +02:00
Ilija Lazoroski
794277797b
UT: Rename PropagationCredentialsRepository to
...
StubPropagationCredentialsRepository
2022-07-07 10:48:12 +02:00
Ilija Lazoroski
a27edfa94b
UT: Add test for GET propagation credentials
2022-07-07 10:48:12 +02:00
Ilija Lazoroski
dda5e37764
Island: Remove unneeded function from ConfigService
...
* get_flat_config
* get_config_propagation_credentials_from_flat_config
2022-07-07 10:47:54 +02:00
Ilija Lazoroski
dc1eb5f12c
Island: Use ICredentialsRepository to retrieve propagation credentials
2022-07-07 10:39:47 +02:00
Ilija Lazoroski
45b2558ddd
Island: Import ICredentialsRepository from __init__
2022-07-07 10:39:47 +02:00
Shreya Malviya
e34bb760e3
Island: Remove stolen credentials when clearing simulation data
2022-07-06 22:14:44 -07:00
Mike Salvatore
e4d38631b8
Common: Serialize/Deserialize Credentials
2022-07-06 20:45:49 -04:00
Mike Salvatore
82ce091063
Common: Export InvalidCredentialComponent from common.credentials
2022-07-06 19:32:18 -04:00
Mike Salvatore
d3859debbe
UT: Use valid NTLM hashes in test_mimikatz_collector.py
2022-07-06 19:28:36 -04:00
Mike Salvatore
82fb693f06
Common: Simplify raising of InvalidConfigurationError
2022-07-06 16:03:12 -04:00
Mike Salvatore
92416cb079
Common: Add validation to LMHash and NTHash
2022-07-06 16:02:31 -04:00
Mike Salvatore
0d477cef7c
Common: Add SSHKeypairSchema
2022-07-06 12:32:11 -04:00
Mike Salvatore
e92de42da9
UT: Use dict for key,value in credential components tests
...
The SSHKeypair credential component has two fields (public, private),
not just a single value. This commit modifies the tests to be able to
support credential components with multiple fields.
2022-07-06 12:27:39 -04:00
Mike Salvatore
58fcc3761c
UT: Add NTHashSchema
2022-07-06 12:07:44 -04:00
Mike Salvatore
def2381da6
Common: Add LMHashSchema
2022-07-06 12:02:49 -04:00
Mike Salvatore
68e52eb512
Common: Add ntlm_hash_validator
2022-07-06 12:02:25 -04:00
Mike Salvatore
031fce9fd8
UT: Add test_invalid_values()
2022-07-06 11:50:54 -04:00
Mike Salvatore
be9889c9d1
UT: Use parametrization to remove duplicate credential component tests
2022-07-06 11:31:24 -04:00
Mike Salvatore
9a45d777ca
Common: Add CredentialTypeField
2022-07-06 11:07:46 -04:00
Mike Salvatore
833513e383
Merge pull request #2056 from guardicore/2003-remove-old-schema
...
Remove old config schema
2022-07-06 11:03:58 -04:00
Mike Salvatore
a8747c9d5d
Common: Add CredentialComponentSchema
...
Extract common _strip_credential_type() post_load function from
PasswordSchema and UsernameSchema into a parent class.
2022-07-06 11:02:07 -04:00
Mike Salvatore
037b4ef8c5
Common: Add UsernameSchema
2022-07-06 10:52:13 -04:00
Mike Salvatore
0b887a2704
UT: Add unit_tests/common/credentials/__init__.py
2022-07-06 10:48:44 -04:00
Mike Salvatore
0be43157cf
Common: Add PasswordSchema
2022-07-06 10:46:05 -04:00
Ilija Lazoroski
439b4aca86
Island: Reformat ConfigService using black
2022-07-06 16:43:52 +02:00
Ilija Lazoroski
522376b065
Swimm: Remove two swimm units
...
* Add details about your new PBA
* Add a new Post Breach Action
2022-07-06 16:40:19 +02:00
Ilija Lazoroski
bbf40e446f
Island: Remove default_config and validator function from ConfigService
2022-07-06 16:05:42 +02:00