Security-Research
Security-Research copied to clipboard
error
raceback (most recent call last):
File "./aws_escalate.py", line 533, in
my AWS user doesn't have permission to run:
current_user = client.get_user()['User'] (line 41) and it stops there.
Can you do something about this?
Thanks, A
Considering this repo is no longer maintained and it popped on my radar today, i'll try helping you.
Essentially, this script "checks users" (and roles).
If you cannot query to get a list of users (the error) you have no use for this script.
If you want to run this script, then you will need the AWS Managed Policies (job-function/ViewOnlyAccess and SecurityAudit) as a shortcut, but it would be better to hand craft the right permissions for this python script based on the code in this script (if you can read the code) for your own IAM policy. Post the policy JSON here for others to find if you make the effort.