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
ilija-lazoroski
568a10e2f9
Merge pull request #2061 from guardicore/file-repository-decorators
...
File repository decorators
2022-07-06 15:18:45 +02:00
Mike Salvatore
bce20fb687
Merge pull request #2062 from guardicore/1965-common-credentials
...
1965 common credentials
2022-07-06 08:29:17 -04:00
Mike Salvatore
e4edfd8ded
Agent: Remove shallow i_puppet.credential_collection subpackage
2022-07-05 14:41:59 -04:00
Mike Salvatore
33b04934aa
Island: Use common.credentials.Credentials in ICredentialsRepository
2022-07-05 13:30:55 -04:00
Mike Salvatore
7bc8ed649a
Common: Add common.credentials package
...
Migrate all objects that represent credentials from their present home
in the agent to their new home in common. This allows these classes to
be shared by the island. Furthermore, it will simplify
serialization/deserialization and clear a path to remove other redundant
classes in the Island.
2022-07-05 13:28:17 -04:00
Mike Salvatore
bc1ff393b7
Project: Use Focal for travis builds
...
Xenial has been EOL for over a year. Use Focal instead.
2022-07-05 11:44:10 -04:00
Mike Salvatore
545f35710f
Island: Add class docstrings for IFileRepository decorators
2022-07-05 11:24:34 -04:00
Mike Salvatore
a8b54f69f9
Island: Use read/write lock in FileRepositoryLockingDecorator
2022-07-05 11:17:03 -04:00
Mike Salvatore
1efea21269
Merge pull request #2060 from guardicore/1965-modify-i-stolen-credentials-repository
...
Modify IStolenCredentialsRepository
2022-07-05 11:07:47 -04:00
Mike Salvatore
0ab30d02a2
Island: Add class docstring for ICredentialsRepository
2022-07-05 11:02:27 -04:00
Mike Salvatore
64e548957f
Island: Reorder methods in ICredentialsRepository
2022-07-05 10:59:28 -04:00
Mike Salvatore
cbed178549
Island: Reword docstrings in ICredentialsRepository
2022-07-05 10:57:36 -04:00
Mike Salvatore
035734992c
Island: Change parameter names in ICredentialsRepository.save_*()
2022-07-05 10:50:28 -04:00
Mike Salvatore
2736f058d7
Island: Fix docstring formatting in ICredentialsRepository
2022-07-05 10:50:07 -04:00
Mike Salvatore
48cc6d6dd2
Island: Add readerwriterlock as a dependency
2022-07-05 10:42:06 -04:00
Ilija Lazoroski
6695e5b4ac
Island: Modify IStolenCredentialsRepository
...
* Rename to ICredentialsRepository
* Add {get/remove/save}_{stolen/configured}_credentials
2022-07-05 16:25:39 +02:00
Mike Salvatore
4f6978c732
Island: Add TODO regarding gevent.lock()
2022-07-05 09:53:18 -04:00
ilija-lazoroski
8873ef891b
Merge pull request #2051 from guardicore/2003-define-new-json-schema
...
2003 define new json schema
2022-07-05 13:34:20 +02:00
vakarisz
d0612f06d8
UI: Fix incorrect allPluginNames in AdvancedMultiSelect.js
...
All plugin names were in fact only the initially selected values
2022-07-05 10:32:07 +03:00
Ilija Lazoroski
3bbbca783d
UI: Fix UiSchema manipulators to use payloads section
2022-07-04 15:33:23 +02:00
Ilija Lazoroski
a37157b086
UI: Rename custom PBA filename options
2022-07-04 14:47:19 +02:00