So… You Found AWS Access Keys (Part 1) - #406
Open
carlospolop wants to merge 1 commit into
Open
carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://trustedsec.com/blog/so-you-found-aws-access-keys-part-1 Content Categories: Based on the analysis, this content was categorized under "AWS Pentesting > AWS - Post Exploitation > AWS - EC2, EBS, SSM & VPC Post Exploitation, with cross-references from AWS - Basic Information and AWS - Unauthenticated Enum & Access". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Scope and security impact
This is a practical AWS cloud penetration-testing guide for determining what leaked access material represents, where additional credentials may be found, and how to validate the permissions of a discovered identity. AWS has more than 200 services, and not all services use identical authentication methods or token formats. The post focuses on long-term IAM access keys, temporary role credentials, S3 presigned URLs, local credential discovery, cloud metadata e...
🔧 Technical Details
Credential-type triage and account discovery: Fingerprint exposed AWS material by its prefix and required components. An AKIA value indicates a long-term IAM-user access key and normally requires the matching 40-character secret. An ASIA value indicates temporary credentials and requires the access key ID, secret access key, and session token. A standalone AKIA identifier cannot normally authenticate but can still be used with account-identification techniques such as the linked Hacking the Cloud method to obtain the associated 12-digit account ID. Treat S3 presigned URLs separately because their embedded key-looking values authorize only the specified object for a limited time.
Local AWS credential harvesting: After obtaining access to a host, inspect
~/.aws/credentials,~/.aws/config,~/.aws/sso/,~/.aws/cli/, environment variables,~/.bash_history, application logs, and CI/CD ...🤖 Agent Actions
Plan:
Repository review is complete. Existing pages already cover key prefixes, CLI profiles, SSO caches, presigned URLs, and basic identity checks, so I’ll avoid duplicating them. The update will add the missing post-compromise workflow—correct workload credential-provider handling and VPC-endpoint/CloudTrail attribution—then add lightweight cross-references from the two suggested entry pages.
Implemented the HackTricks update.
Changes
Validation
git diff --checkpassed.mdbookwas unavailable in the environment, so a full build could not be run.This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.