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
Ilija Lazoroski
0cb8cfb078
Island: Remove typographic symbols
2022-07-06 16:05:42 +02:00
Ilija Lazoroski
9f0029d040
Common: Remove credential collector names and validation formats
2022-07-06 16:05:42 +02:00
Ilija Lazoroski
16e8443134
Island: Add TODO to return default config in reporting
...
Notes in services for not fixing the failing tests until we remove
the ConfigService
2022-07-06 16:05:42 +02:00
Shreya Malviya
9b23cc0bef
UT: Remove tests related to config schema per attack technique
2022-07-06 16:05:42 +02:00
Shreya Malviya
98fbc7592c
Island: Hardcode unscanned message for ATT&CK techniques
...
Remove logic for config schema per attack technique which set the unscanned message previously
2022-07-06 16:05:42 +02:00
Shreya Malviya
cbc5e99140
Island: Add TODO to fix comment in Config model
2022-07-06 16:05:42 +02:00
Shreya Malviya
4eb7472977
Island: Remove functions from ConfigService that used the old config
...
schema
This breaks some stuff: the IslandConfiguration resource, the reset
config functionality, and probably some other things. However, this
isn't too much of a concern since all of this will be reimplemented in
the coming weeks. It's just really broken for now.
2022-07-06 16:05:42 +02:00
Shreya Malviya
b883f502ed
Island: Remove old configuration schema
2022-07-06 16:05:42 +02:00
Shreya Malviya
2d960fc4d2
Island: Remove old configuration schema's properties
2022-07-06 16:05:42 +02:00
Shreya Malviya
ff17237ea7
Island: Remove old configuration schema's definitions
2022-07-06 16:05:42 +02:00
Mike Salvatore
3f3494e5d4
Common: Move DIContainer._del_key() to code_utils
2022-07-06 10:01:26 -04:00