From the AWS edition of November 12, 2026
BeyondTrust: two CVEs let an agent-chosen package name run commands in AgentCore Code Interpreter and read the attached execution role's credentials
BeyondTrust Phantom Labs · Cross-SLED agent platforms and security operations · Global (AWS commercial Region us-east-1 used in proofs of concept)
- Publisher
- BeyondTrust blog
- Original publication
- 2026-09-28
- Source retrieved
- 2026-11-13
- Event date
- 2026-07-23
What happened
BeyondTrust Phantom Labs reports two vulnerabilities in the install_packages() helper of the bedrock-agentcore Python SDK. A newline (CVE-2026-12530, v1.1.3-1.6.0) and then a command substitution inside pip extras brackets (CVE-2026-16796, v1.6.1-1.18.0) let a package name run shell commands inside the Code Interpreter sandbox and read the execution role's credentials from the microVM metadata service. The attacker needed no AWS permissions, only influence over input, including prompt injection or untrusted dependency files. AWS fixed both in v1.18.1 (July 17, 2026), issued bulletins and CVSS 4.0 scores of 8.4. BeyondTrust says the Firecracker sandbox held; the damage depends on the execution role's permissions. Detection channels are off by default, and successful installs evade failure-based alerts.
Why it matters
Why now: tonight's AWS guidance on Managed Knowledge Base tools and the AgentCore runtime default both lean on model-driven tool calls and microVM isolation. This independent research, not previously in the archive, shows the same failure mode in practice: a value chosen by an agent became a command, and isolation did not limit what the attached role could reach. SLED teams running agents with code execution over student, case or justice data should check SDK versions and execution-role scope.
Evidence and measured results
Independent security research by a third-party vendor with proofs of concept, a disclosure timeline and AWS's public statement confirming fixes and CVEs. BeyondTrust sells identity security products; findings are corroborated by AWS's acknowledgement.
Limitations and uncertainty
Published September 28, 2026, before the last run; included for its direct bearing on tonight's AWS guidance and because it was not archived. Researcher is a security vendor. Fixed versions exist; current exposure depends on customers' SDK versions. Direct HTTPS fetch by curl returned 403; the page was read through a web-fetch tool without bypassing controls.
Put this evidence to work
Lighthouse Advisory interpretation, grounded in this source. Enriched 2026-11-13; this does not change the original publication date. Each role follows the same checklist so takeaways compare across sources.
Sales
Role takeaway
- Customer problem
- AI agents that execute code can let attacker-influenced input reach cloud credentials attached to the sandbox.
- Stakeholders
- CISO
- Security operations manager
- Agent development lead
- Cloud identity team
- Discovery questions
- Which bedrock-agentcore versions are in use, including forks?
- Do your Code Interpreters have execution roles, and what can they reach?
- Are CloudTrail data events and AgentCore application logs enabled?
- Can agents choose which packages to install?
- Value hypothesis
- A focused review can confirm patched SDKs, reduce execution-role reach and add detection for agent sandboxes.
- Potential engagement
- A bounded AgentCore security review covering SDK versions, interpreter roles and logging for existing agent projects.
- Unsupported claims
- That customers are currently compromised or exposed
- That microVM isolation alone prevents credential misuse
- That text-matching detection catches all variants
- Compliance attestation
Pre-sales engineering
Role takeaway
- Fit
- Relevant to any agent using AgentCore Code Interpreter; most urgent where interpreters have broad execution roles.
- Architecture and integration
- Code Interpreter in Firecracker microVM with MMDS-served role credentials; SDK install_packages() helper; CloudTrail data events and AgentCore Observability logs for detection.
- Prerequisites
- SDK inventory across repositories
- Access to IAM role policies
- Logging enablement
- CI/CD patch path
- Constraints
- Detection channels off by default
- Forked code may lack fixes
- Successful installs evade failure-based alerts
- Role-less interpreter only fits code that needs no AWS APIs
- Security
- Upgrade to v1.18.1+, use aws.codeinterpreter.v1 where possible, scope roles tightly, fix package lists and alert on metadata-address access.
- Proof of value
- Confirm every project resolves bedrock-agentcore 1.18.1 or later
- Replay published payload patterns against a patched test interpreter
- Verify an alert fires on metadata-address commands
- Review each interpreter role for wildcards and PassRole
Delivery
Role takeaway
- Work
- Inventory, patch, reduce interpreter roles and enable detection across agent projects.
- Dependencies
- Software composition analysis
- IAM review
- SOC log access
- Application owners
- Ownership
- Security engineering lead, with application owners responsible for patches.
- Skills and adoption
- SOC analysts need agent-sandbox log knowledge; developers need secure tool-argument handling practices.
- Governance checkpoints
- Role-permission review
- Logging enablement sign-off
- Exception approval for broad roles
- Patch verification
- Acceptance criteria
- Proposed: 100% of agent projects on bedrock-agentcore 1.18.1 or later
- Proposed: interpreter roles reviewed with no service wildcards
- Proposed: detection query tested and alerting
- Risks
- Unpatched forks
- Over-privileged interpreter roles
- Undetected successful payloads
- Assuming isolation limits blast radius
Implementation considerations
Lighthouse Advisory interpretation across the operating dimensions a public-sector buyer must settle before this evidence becomes a design. Each note answers the question under its heading for this specific source.
Architecture and integration
What must connect, and where does the AI sit in the workflow?
AgentCore Code Interpreter sessions run in Firecracker microVMs; the microVM Metadata Service at 169.254.169.254 serves execution-role credentials if a role is attached. The SDK helper built a pip command from names supplied by applications or agents. BeyondTrust recommends the system interpreter aws.codeinterpreter.v1, which has no execution role, when code does not call AWS APIs.
Governance
Who approves, reviews and stays accountable for outcomes?
Least privilege on the Code Interpreter execution role decides impact. Package lists should be fixed rather than agent-extensible. Forked or derivative code must incorporate the fixes, per AWS's statement.
Security and privacy
What data, permissions and controls need testing?
Upgrade bedrock-agentcore to v1.18.1 or later. Enable CloudTrail data events and AgentCore Observability Application Logs (both off by default); alert on commands referencing the metadata address rather than on failed tool calls. The CloudTrail user agent reveals SDK versions in use.
Accessibility and workforce
Who is affected, and what skills or accommodations follow?
No accessibility detail. Workforce: security operations need agent-specific detection queries and log sources.
Procurement
What should contracts, pricing and exit terms secure?
Contracts for agent builds can require current SDK versions, no-role or least-privilege interpreters and logging enabled by default.
Operating model
Which teams own the service once it runs?
Requires dependency inventory for bedrock-agentcore across projects and a patch process for forks. Detection uses CloudWatch Logs Insights queries over application logs.
Publication history
- 2026-11-12AWS · Issue 145 resources
Stable resource ID: beyondtrust-agentcore-code-interpreter-sdk-rce-cves-20260928