Skip to content

Added "aws" module for console signins#93

Open
WebbinRoot wants to merge 3 commits intoknavesec:masterfrom
WebbinRoot:master
Open

Added "aws" module for console signins#93
WebbinRoot wants to merge 3 commits intoknavesec:masterfrom
WebbinRoot:master

Conversation

@WebbinRoot
Copy link

Basically just lifted code from https://github.com/WhiteOakSecurity/GoAWSConsoleSpray and embedded it in credmaster to take advantage of IP rotating, etc. Also does username enumeration to a degree for users with MFA codes so had to add a few bits of logic and a status code to main credmaster.py to handle that (see commit comments). Had some TODOs in commit comments not sure if they are possible in credmaster.

To run execute

python3 credmaster.py --plugin aws --account [account_number] --aws_region_spray [region_for_console_sign_in] --access_key [fireprox access key] --secret_access_key [fireprox secret access key] -u [usernamefile] -p [passwordfile]

- Made "aws" module based off https://github.com/WhiteOakSecurity/GoAWSConsoleSpray/. Think I covered most of the cases but open to adding more if needed/you see any per comments
- Added logic to credmaster.py to remove a user if they are flagged as having MFA to avoid repeat attempts with diff passwords (aws_mfa_blocked status). Lmk if there's a better way to do that within the tool, maybe a new unified status code? Would be cool if there was a way to show both password cracked + usernames enumerated as you just need to grep the log now for usernames enumerated
- Would be cool if there was a way to designate in username file what username goes with what AWS account. Can probably do so with but would require more credmaster.py logic rewriting so not sure if there's already an easier way to do so.
Changed status name to ensure username is excluded from future guesses. Might still guess 1-2 times depending on threading but should be removed now
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments