Commit Graph

9259 Commits

Author SHA1 Message Date
Mike Salvatore 998d33a22c Project: Update python to 3.7.9 for Windows travisci job 2022-07-21 07:46:31 -04:00
Shreya Malviya 9acc249d48
Merge pull request #2101 from guardicore/2092-rebuild-test-configurations
2092 rebuild test configurations
2022-07-21 13:04:54 +05:30
Mike Salvatore c8ae719631 Island: Remove empty mode subpackage 2022-07-20 14:54:20 -04:00
Mike Salvatore db9238826f Island: Remove empty config_schema subpackage 2022-07-20 14:53:40 -04:00
Mike Salvatore fde69c7297 Island: Remove empty authentication subpackage 2022-07-20 14:52:22 -04:00
Mike Salvatore f049688160 BB: Add smb_download_timeout to test_configurations 2022-07-20 07:48:06 -04:00
Mike Salvatore 0e2cef181a BB: Add wmi_mimikatz_test_configuration 2022-07-19 14:19:43 -04:00
Mike Salvatore 0605470af9 BB: Move Hadoop and Log4Shell to vulnerability exploiters 2022-07-19 14:17:06 -04:00
Mike Salvatore 27197ee70a BB: Add smb_pth_test_configuration 2022-07-19 14:09:12 -04:00
Mike Salvatore e93455031a
Merge pull request #2093 from guardicore/1965-credentials-report
1965 credentials report
2022-07-19 13:50:55 -04:00
Mike Salvatore 367b6de901 BB: Add powershell_credentials_reuse_test_configuration 2022-07-19 13:48:29 -04:00
Mike Salvatore a605db7625 BB: Add Tests comment to depth_2_a.py 2022-07-19 13:31:16 -04:00
Mike Salvatore cde0474eb2 BB: Add "Tests" comment to depth_1_a.py 2022-07-19 13:29:46 -04:00
Mike Salvatore d354622f9a BB: Add depth_3_a_test_configuration 2022-07-19 13:29:39 -04:00
Mike Salvatore 6e730394bf BB: Add set_keep_tunnel_open_time() 2022-07-19 13:25:08 -04:00
Mike Salvatore 9bff20e92f BB: Add depth_2_a_test_configuration 2022-07-19 13:25:07 -04:00
Shreya Malviya d33d30824f
Merge pull request #2095 from guardicore/2047-replace-pycryptodome
Remove `pycryptodome`
2022-07-19 21:32:17 +05:30
Mike Salvatore 3794f735af Island: Remove unnecessary type from docstring in KeyBasedEncryptor 2022-07-19 09:50:34 -04:00
Mike Salvatore 061c002c94 Island: Remove protected self._formatted_key member 2022-07-19 09:49:31 -04:00
Mike Salvatore 9654e869a7 Island: Modify error messages in EncryptionKey32Bytes 2022-07-19 19:17:18 +05:30
Shreya Malviya 2e443f229a UT: Wrap encryption key with EncryptionKey32Bytes in test_key_based_encryptor.py 2022-07-19 19:17:18 +05:30
Shreya Malviya 37b8db6a6c Island: Wrap missed encryption key with EncryptionKey32Bytes in DataStoreEncryptor 2022-07-19 19:17:18 +05:30
Shreya Malviya 6d6b7e8cba Island: Remove unneeded docstring fields in KeyBasedEncryptor 2022-07-19 19:17:18 +05:30
Shreya Malviya a7b4bbbd52 Island: Rename variable in KeyBasedEncryptor 2022-07-19 19:17:18 +05:30
Shreya Malviya 11aff1f7fe UT: Add tests for EncryptionKey32Bytes 2022-07-19 19:17:18 +05:30
Shreya Malviya 6000fdcaf1 Island: Check type of 'key' in EncryptionKey32Bytes 2022-07-19 19:17:18 +05:30
Shreya Malviya 74cb986e36 Island: Remove SizeError and use ValueError 2022-07-19 19:17:18 +05:30
Shreya Malviya 7f60fb4419 Island: Wrap encryption keys with EncryptionKey32Bytes in RepositoryEncryptor and DataStoreEncryptor 2022-07-19 19:17:18 +05:30
Shreya Malviya 72222105d6 UT: Change key in test_key_based_encryptor.py (generated using secrets.token_bytes(32)) 2022-07-19 19:17:18 +05:30
Shreya Malviya 4d31e0d56e Island: Switch back to using secrets for encryption key generation instead of cryptography.fernet in DataStoreEncryptor and RepositoryEncryptor 2022-07-19 19:17:18 +05:30
Shreya Malviya d022c65439 Island: Fix imports in encryption_key_types.py and key_based_encryptor.py 2022-07-19 19:17:18 +05:30
Shreya Malviya 80104381d7 Island: Use EncryptionKey32Bytes in KeyBasedEncryptor 2022-07-19 19:17:18 +05:30
Shreya Malviya 4e755bbd2f Island: Move SizeError to its own file 2022-07-19 19:17:18 +05:30
Shreya Malviya 0111dea47f Island: Move EncryptionKey32Bytes to its own file 2022-07-19 19:17:18 +05:30
Shreya Malviya d55e7b1455 Island: Create custom type EncryptionKey32Bit 2022-07-19 19:17:18 +05:30
Shreya Malviya cbe842029a Island: Add details about what kind of key is acceptable in KeyBasedEncryptor 2022-07-19 19:17:18 +05:30
Shreya Malviya bd1c788a4c Island: Add docstrings to KeyBasedEncryptor 2022-07-19 19:17:18 +05:30
Shreya Malviya ca420b8afc UT: Modify test_key_based_encryptor so it doesn't rely on KeyBasedEncryptor._BLOCK_SIZE 2022-07-19 19:17:18 +05:30
Shreya Malviya 24a119eb81 Island: Remove ununsed _BLOCK_SIZE variable from KeyBasedEncryptor 2022-07-19 19:17:18 +05:30
Shreya Malviya 978057b289 Project: Remove pycryptodome as an Island dependency 2022-07-19 19:17:17 +05:30
Mike Salvatore 3480b18e39 BB: Remove zerologon exploiter from depth_1_a_test_configuration 2022-07-19 09:00:51 -04:00
Mike Salvatore 4cd1c6bf3c BB: Reorder some things in depth_1_a.py 2022-07-19 08:59:10 -04:00
Mike Salvatore 87363d3096 BB: Rename credentials -> CREDENTIALS 2022-07-19 08:57:19 -04:00
Mike Salvatore 707aa97a65 BB: Add TCP ports to depth_1_a_test_configuration 2022-07-19 08:47:57 -04:00
Mike Salvatore 189e2ad3d1 BB: Add HTTP ports to depth_1_a_test_configuration 2022-07-19 08:13:09 -04:00
Mike Salvatore 0c6764daf5 BB: Add add_http_ports() 2022-07-19 08:12:46 -04:00
Shreya Malviya 53e366a677 Island: Remove unused _KEY_LENGTH_BYTES variables from DataStoreEncryptor and RepositoryEncryptor 2022-07-19 14:51:58 +05:30
Shreya Malviya f8eeda1e6f Island: Use cryptography.fernet to generate key in DataStoreEncryptor
and RepositoryEncryptor

We changed our encryption code to use cryptography.fernet instead of
pycryptodome. Using secrets.token_bytes() with fernet was causing
padding and encoding issues. This is a quicker and easier solution, and
also probably more reliable since everything to do with encryption is
from the same module now.
2022-07-19 14:51:58 +05:30
Shreya Malviya 5eb77dcbb6 UT: Change key in test_key_based_encryptor.py to be URL safe (cryptography.fernet requires this) 2022-07-19 14:51:58 +05:30
Shreya Malviya f542c9d0a8 Island: Fix KeyBasedEncryptor's encrypt function's logic 2022-07-19 14:51:58 +05:30