Pentesting a Pentest Agent Here's What I've Found in AWS Sec...#268
Open
carlospolop wants to merge 1 commit intomasterfrom
Open
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://blog.richardfan.xyz/2026/03/14/pentesting-a-pentest-agent-heres-what-ive-found-in-aws-security-agent.html Content Categories: Based on the analysis, this content was categorized under "AWS Pentesting -> AWS - Post Exploitation (new subpage: "Abusing AWS Security Agent / Autonomous Scanner Runtimes"), with cross-links from Kubernetes/Containers topics (docker.sock escape) and Cloud SSRF/IMDS credential theft notes". 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
Title/Context: The post analyzes AWS Security Agent (an autonomous AI pentesting agent for web apps) and documents 4 security issues (a 5th is mentioned as pending, not covered). The findings focus on: (1) how VPC/private-target pentests perform domain verification and can be abused to hit public Internet victims, and (2) how a malicious target can trick the agent into executing OS commands...
🔧 Technical Details
Private-network domain verification bypass via split-horizon DNS (“DNS confusion”): If a pentest platform allows testing “Unreachable” domains only when a VPC/private network is configured, and its pre-run verification relies on VPC DNS resolution, an attacker controlling a private DNS zone can: (1) set the target domain’s
Arecord to a private IP (so the platform treats it as in-VPC), (2) set the platform-specific verification TXT (e.g.,_aws_securityagent-challenge.<domain>) to pass token checks, then (3) after the pre-run verification step completes, flip theArecord to the victim’s public IP. If the platform does not continuously re-verify ownership/DNS consistency and does not re-check “must stay private IP,” the job can be redirected to scan a public Internet target via NAT egress.Self-compromising autonomous scanners via link-following + shell interpolation: When an autonomous scanner/agent aggressively follow...
🤖 Agent Actions
Summary:
Added a new AWS post-exploitation page documenting abuse patterns from the AWS Security Agent blog (split‑horizon DNS verification confusion, malicious target RCE via link interpolation, HTTP‑tunneled shells, NOPASSWD sudo, Docker socket escape, IMDS credential theft).
Linked the new page from AWS Post Exploitation and added references.
Files changed:
src/pentesting-cloud/aws-security/aws-post-exploitation/README.mdsrc/pentesting-cloud/aws-security/aws-post-exploitation/aws-security-agent-abuse/README.mdTests: Not run (docs-only change).
Next steps:
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.
📚 Repository Maintenance
All .md files have been checked for proper formatting (headers, includes, etc.).