April 2019
Intermediate to advanced
508 pages
11h 57m
English
We can test our new method of persistence by trying to assume our target role from within our own attacker account. There is already a local AWS CLI profile named MyPersonalUser, which is a set of access keys that belong to my personal AWS account. Using those keys, I should be able to run the following command:
aws sts assume-role --role-arn arn:aws:iam::111111111111:role/Admin --role-session-name PersistenceTest --profile MyPersonalUser
We only need to supply the ARN of the role we want credentials for and a role session name, which can be an arbitrary string value that is associated with the temporary credentials that are returned. If everything went as planned, the AWS CLI should respond with something like the ...
Read now
Unlock full access