Skip to content

docs(aws): improve User-Agent guidance - #401

Open
n3rada wants to merge 5 commits into
HackTricks-wiki:masterfrom
n3rada:master
Open

n3rada wants to merge 5 commits into
HackTricks-wiki:masterfrom
n3rada:master

Conversation

@n3rada

@n3rada n3rada commented Sep 18, 2026

Copy link
Copy Markdown

Hi maintainers,

While going through the AWS material as part of the HackTricks ARTE course, I found the User-Agent guidance a little difficult to locate. The Boto3 example was under the AWS STS post-exploitation page, even though the technique is not specific to STS or federation.

I moved the guidance into the AWS pentesting methodology under a new "Evade Basic Detection" section, alongside related CloudTrail and GuardDuty context.

I was looking for techniques to override the User-Agent. At first, I wanted to PR aws-cli because it would be possible to add a proper argument --user-agent but I think they will never accept that. Therefore, I was trying to patch-it on the fly in order to have a good way to do that during engagements.

What I have found, is that AWS CLI v2 allow plugins. Therefore, I have added an example for overriding the full User-Agent header to the documentation, since I am pretty sure it could help other folks.

What do you guys think?

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.

1 participant