To begin the authenticated recon portion of our assessment, we will need to use the swap_keys Pacu command to switch from our PersonalUser to the CompromisedUser:
- Run swap_keys in Pacu to switch to the CompromisedUser.
- The first thing to do for authenticated recon is to find out our own privileges so that we know what kind of access we have to the AWS account. This can be done by using the iam__enum_permissions Pacu module. It doesn't need any arguments for our current purpose, so we can run the following command:
run iam__enum_permissions
- Next, we can check out what permissions were enumerated with the whoami command:
Running iam__enum_permissions and checking out what data was enumerated with the whoami command
We can see that there are three IAM policies attached to our user, two of which are AWS-managed...