Skip to content

arte-seslo82: Document AWS CLI User-Agent condition bypass - #367

Open
seslo82 wants to merge 2 commits into
HackTricks-wiki:masterfrom
seslo82:arte-seslo82-aws-cli-user-agent-bypass
Open

arte-seslo82: Document AWS CLI User-Agent condition bypass#367
seslo82 wants to merge 2 commits into
HackTricks-wiki:masterfrom
seslo82:arte-seslo82-aws-cli-user-agent-bypass

Conversation

@seslo82

@seslo82 seslo82 commented Aug 23, 2026

Copy link
Copy Markdown

Summary

Documents how an AWS IAM condition that relies on aws:UserAgent can be bypassed by modifying the final outgoing User-Agent from AWS CLI v2.

HackTricks already documents changing the User-Agent from Boto3. This contribution extends the technique to the AWS CLI by using a legacy plugin and Botocore before-send hook to modify the fully prepared HTTP request immediately before transmission.

The page explains why aws:UserAgent is a client-controlled signal rather than a strong authorization boundary and documents the difference between changing the header during earlier request-building stages and at before-send time. Examples are generic and contain no lab-specific material.

This contribution is for the ARTE certification extra-points requirement.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants