Shreya
2f5d33844c
Remove unused variable `PATH_TO_ACTIONS` from `infection_monkey/post_breach/post_breach_handler.py`
2021-05-05 19:20:05 +05:30
Shreya
6cc22afd9b
Remove unused `get_ip_for_connection()` in `infection_monkey/network/info.py`
2021-05-05 19:20:05 +05:30
Shreya
b7535dccb0
Remove unused variables `GENERAL_CMDLINE_LINUX` and `MONKEY_CMDLINE_HTTP` in `infection_monkey/model/__init__.py`
2021-05-05 19:20:05 +05:30
Shreya
b1ce5d3e2e
Remove unused variable `MAX_MONKEYS_AMOUNT_TO_CACHE` in `monkey_island/cc/models/monkey.py`
2021-05-05 19:20:05 +05:30
Shreya
eeaafc9a3b
Remove ununsed variable `user_id_table` in `monkey_island/cc/resources/auth/user_store.py`
2021-05-05 19:20:05 +05:30
Shreya
a5481c15f8
Remove unused `get_latest_attack_telem_time()` from `monkey_island/cc/services/attack/attack_report.py`
2021-05-05 19:20:05 +05:30
Shreya
e4c45153ea
Remove unused `get_monkey_critical_services()` and `get_monkey_label_by_id()` in `monkey_island/cc/services/node.py`
2021-05-05 19:20:05 +05:30
Shreya
9c629f964c
Remove unused variable `UPLOADS_DIR_NAME` in `monkey_island/cc/services/post_breach_files.py`
2021-05-05 19:20:05 +05:30
Shreya
f32e1e0a0f
Remove unused variable `is_auth` in `monkey_island/cc/services/remote_run_aws.py`
2021-05-05 19:20:05 +05:30
Shreya
9bcaa2ef8e
Remove unused `did_exploit_type_succeed()` from `monkey_island/cc/services/reporting/report.py`
2021-05-05 19:20:05 +05:30
Shreya
df7759e332
Remove unused variable `DETAILS_DTO` from `monkey_island/cc/services/zero_trust/test_common/monkey_finding_data.py`
2021-05-05 19:20:05 +05:30
Shreya
638e70e978
Remove unused code in unit tests
2021-05-05 19:20:05 +05:30
Mike Salvatore
33e74b1f3e
agent: Use consistent naming for parameters to __exit__()
...
Using these specific names prevents Vulture from identifying these
parameters as unused.
2021-05-05 19:20:05 +05:30
Mike Salvatore
9649f90cff
agent: Remove unused parameter securityFlags from create_smb()
2021-05-05 19:20:05 +05:30
Mike Salvatore
b41a2f2366
travis: Fail build if vulture finds dead code
2021-05-05 19:19:59 +05:30
Mike Salvatore
2f6803dc3d
Add vulture pre-commit hook
2021-05-05 19:09:07 +05:30
Mike Salvatore
e609094a59
Merge branch 'pwd-hash' into develop
2021-05-05 08:05:15 -04:00
Mike Salvatore
7772ea6e4e
island: Add FULL_USER_CREDENTIALS to test_environment.py
2021-05-05 07:45:59 -04:00
Mike Salvatore
9024a512b0
island: Move all bcrypt dependencies to password_utils
2021-05-05 07:45:41 -04:00
Mike Salvatore
0f49a2c96a
island: Remove UserCreds.from_cleartext()
2021-05-04 18:53:43 -04:00
Mike Salvatore
f73b048169
island: Remove parameter names from UserCreds() init in tests
2021-05-04 17:21:05 -04:00
Mike Salvatore
e4dec5501e
island: Add constants for user and hash to UserCreds tests
2021-05-04 17:20:03 -04:00
Mike Salvatore
c4c0b7217d
island: Add test for members of UserCreds
2021-05-04 17:17:54 -04:00
Mike Salvatore
e223126c16
island: Add tests for UserCreds.__bool__()
2021-05-04 17:14:54 -04:00
Mike Salvatore
d56cb5cd75
island: Simplify UserCreds constructor by removing defaults
...
The default values were only really used by the test code. We can
simplify the Usercreds's interface and test code by removing
functionality (read: complication) we don't really need.
2021-05-04 17:07:42 -04:00
Mike Salvatore
1aed5f37d1
monkey: Remove coupling between Registration and UserCreds
2021-05-04 17:07:31 -04:00
Mike Salvatore
4b3b7af3d2
island: Remove coupling between EnvironmentConfig and UserCreds
2021-05-04 16:58:30 -04:00
Mike Salvatore
5fa08f0447
island: Add UserCreds.from_cleartext()
2021-05-04 15:14:41 -04:00
Mike Salvatore
1be07a4828
monkey: Rename `get_from...()` methods in UserCreds to be more readable
2021-05-04 14:43:11 -04:00
VakarisZ
f28cd5305c
Refactored test_user_creds.py to pytest from unittests
2021-05-04 14:26:22 -04:00
Mike Salvatore
502bc3b296
island: Enable standard mode with bcrypted passwords
2021-05-04 14:24:49 -04:00
Mike Salvatore
060c4b0c40
island: Minor formatting fix
2021-05-04 12:32:07 -04:00
Mike Salvatore
904e51a365
island: Replace private static functions in Authenticator with functions
...
In python, private static methods serve no purpose. Python has
first-class functions; let's use them.
2021-05-04 12:28:17 -04:00
Mike Salvatore
c7d47fee9c
island: Extract method _create_access_token() from _get_credentials_from_request()
2021-05-04 12:14:25 -04:00
Mike Salvatore
a8646fc056
island: Give _authenticate() more descriptive name and remove comment
2021-05-04 12:09:04 -04:00
Mike Salvatore
39c274c4d9
island: Extract method get_credentials_from_request() from post()
2021-05-04 12:04:36 -04:00
Mike Salvatore
83f7f04929
island: Change order of methods in Authenticate to follow stepdown rule
2021-05-04 12:00:10 -04:00
Mike Salvatore
7684a2dcf8
island: Make return values of Authenticate._authenticate() explicit
2021-05-04 11:58:58 -04:00
Mike Salvatore
341af227b7
Merge pull request #1143 from guardicore/zerologon-tmp-dir
...
Create a temporary directory for zerologon artifacts
2021-05-04 09:38:38 -04:00
Mike Salvatore
93bb14f7bf
agent: Update changelog with zerologon tmp directory item
2021-05-04 08:36:22 -04:00
Mike Salvatore
85b079c1ab
agent: Create a temporary directory for zerologon artifacts
...
Not all users are guaranteed to have a $HOME. Use a temporary directory
instead.
2021-05-04 08:12:35 -04:00
Shreya
9c1096daa1
Add CHANGELOG entry for bcrypt work
2021-05-03 23:49:44 +05:30
Shreya
02f3b15c64
Split `get_from_dict()` into 2 functions as per usage
2021-05-03 23:28:55 +05:30
Shreya
d2083149dd
Convert hashed pwd to string before storing in server_config.json
2021-05-03 20:23:54 +05:30
Shreya
b5d05a1a78
Add bcrypt to monkey_island/Pipfile and monkey_island/Pipfile.lock
2021-05-03 20:23:54 +05:30
Shreya
09a37292b5
Remove unused import and repeated code in monkey_island/cc/ui/src/services/AuthService.js
2021-05-03 20:23:54 +05:30
Shreya
b5236d14c9
Use bcrypt for password hashing for authentication
2021-05-03 20:23:52 +05:30
PrajwalM2212
2ee6315bb8
Changes
2021-05-03 20:16:50 +05:30
PrajwalM2212
9363cadb09
Add functionality to hash passwords on server side
2021-05-03 20:15:24 +05:30
Mike Salvatore
7f06ec4034
Merge branch 'appimage-automated-build' into develop
2021-05-03 10:15:50 -04:00