CreateAccessKey

iam:CreateAccessKey to mint a second set of long-term keys for a more privileged user.

1 phút đọccập nhật 5 thg 10, 2026florianamette1 người đóng góp
Hỏi trợ lý của bạn (MCP)Sửa trên GitHub

iam:CreateAccessKey creates a long-term access key for a user. Run it against a more privileged user and you receive a working key pair for that identity, which you then use directly.

Mint keys for a target#

bash
aws iam create-access-key --user-name <privileged-user>
# returns AccessKeyId + SecretAccessKey; configure a profile and use them

Exploitation notes#

  • A user may hold at most two access keys; if the target already has two, this fails until one is deleted.
  • The new key is a durable credential that survives your current session, so it doubles as persistence.
  • No policy change is made on the target, so the escalation is quiet in policy-audit terms but does create a key-creation event.

Tools#

  • AWS CLI (iam create-access-key).
  • Pacu (iam__backdoor_users_keys): mints keys across users at scale.

References#