← Learn
Dangerous
aws iam attach-user-policy --user-name svc-deploy --policy-arn arn:aws:iam::aws:policy/AdministratorAccess

cross-platform · bash · Intermediate

Grants a service account full administrative rights across the AWS account. It is an ordinary, well-formed API call with no shell metacharacters at all, and the only signal is recognising what that particular policy ARN confers.

Signals to notice

  • Attaches AdministratorAccess to a service principal
  • Account-wide privilege escalation
  • Looks like routine IAM administration

Think you can spot these under time pressure?

Start Training

More Cloud