<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>agentcore | Kinnaird's Blog</title><link>https://kmcquade.com/tag/agentcore/</link><atom:link href="https://kmcquade.com/tag/agentcore/index.xml" rel="self" type="application/rss+xml"/><description>agentcore</description><generator>Wowchemy (https://wowchemy.com)</generator><language>en-us</language><copyright>© 2026</copyright><lastBuildDate>Mon, 20 Oct 2025 00:00:00 +0000</lastBuildDate><image><url>https://kmcquade.com/media/icon_hua50979d1c93a9ee7bfc0f4bebb43a683_25893_512x512_fill_lanczos_center_2.png</url><title>agentcore</title><link>https://kmcquade.com/tag/agentcore/</link></image><item><title>Pwning AgentCore Code Interpreter</title><link>https://kmcquade.com/project/pwning-agentcore-code-interpreter/</link><pubDate>Mon, 20 Oct 2025 00:00:00 +0000</pubDate><guid>https://kmcquade.com/project/pwning-agentcore-code-interpreter/</guid><description>&lt;h2 id="overview">Overview&lt;/h2>
&lt;p>AWS Bedrock AgentCore Code Interpreter&amp;rsquo;s &amp;ldquo;Sandbox&amp;rdquo; network mode is supposed to be walled off from the internet. It isn&amp;rsquo;t. Despite a &amp;ldquo;no external network access&amp;rdquo; configuration, the sandboxed interpreter can still issue &lt;code>A&lt;/code> and &lt;code>AAAA&lt;/code> DNS queries — and that&amp;rsquo;s enough to smuggle a full command-and-control channel out of the sandbox.&lt;/p>
&lt;p>This project documents the research (disclosed via HackerOne) and ships a working proof-of-concept:&lt;/p>
&lt;ul>
&lt;li>&lt;strong>DNS tunneling C2&lt;/strong> — a bidirectional protocol over DNS queries and responses that delivers commands and exfiltrates output, yielding a fully interactive reverse shell. Commands are base64-encoded into &lt;code>A&lt;/code>-record responses (Route 53 delegating to an attacker-controlled nameserver on EC2); output is base64-encoded into subdomain query labels.&lt;/li>
&lt;li>&lt;strong>S3 exfiltration channel&lt;/strong> — an alternative path using presigned GET/PUT URLs to poll for commands and upload results to an attacker-controlled bucket.&lt;/li>
&lt;li>&lt;strong>Blast radius&lt;/strong> — because the interpreter runs with an IAM role, the same code execution can exfiltrate data from S3 buckets and DynamoDB tables and invoke any AWS API the role permits.&lt;/li>
&lt;/ul>
&lt;p>The takeaway for defenders: AI agent code interpreters execute attacker-influenceable code by design, so &amp;ldquo;sandbox&amp;rdquo; guarantees have to be verified — DNS is a frequently-overlooked egress path.&lt;/p>
&lt;p>Presented at &lt;strong>BSides SF 2026&lt;/strong> and &lt;strong>fwd:CloudSec 2026&lt;/strong>. Full write-up on the &lt;a href="https://www.beyondtrust.com/blog/entry/pwning-aws-agentcore-code-interpreter" target="_blank" rel="noopener">BeyondTrust blog&lt;/a>.&lt;/p></description></item></channel></rss>