{"resourceId":"beyondtrust-agentcore-code-interpreter-sdk-rce-cves-20260928","versions":[{"version":"external-442d7b29cf7adcde299388aeb11bc421f2c6d6cf52aa1c8648172c2c67e839eb","resource":{"id":"beyondtrust-agentcore-code-interpreter-sdk-rce-cves-20260928","title":"BeyondTrust: two CVEs let an agent-chosen package name run commands in AgentCore Code Interpreter and read the attached execution role's credentials","organization":"BeyondTrust Phantom Labs","sector":"Cross-SLED agent platforms and security operations","geography":"Global (AWS commercial Region us-east-1 used in proofs of concept)","publishedAt":"2026-09-28","publicationDate":"2026-09-28","eventDate":"2026-07-23","sourceName":"BeyondTrust blog","sourceLabel":"Package Name to Role Credentials in Code Interpreter: Two RCE CVEs in the AgentCore Python SDK","sourceUrl":"https://www.beyondtrust.com/blog/entry/amazon-bedrock-agentcore-python-sdk-rce-cves","evidenceClass":"independent-research","outcomeClass":"cautionary","topics":["data-security","developers-agents","infrastructure"],"finding":"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.","sledRelevance":"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":"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.","architectureImplications":"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.","governanceImplications":"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.","securityPrivacyImplications":"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.","caveats":"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.","streamIds":["aws"],"roles":{"sales":"Interpretation: use this as a reason to offer an agent security review, not as fear marketing. The customer problem is that agents with code execution can turn untrusted input into access to cloud credentials. Stakeholders are the CISO, security operations and agent development leads. Discovery should ask which bedrock-agentcore versions are deployed, whether Code Interpreters carry execution roles and whether logs are enabled. The fixes exist, so no claim that customers are currently exposed can be made without their inventory.","engineering":"Interpretation: fit is any SLED project using AgentCore Code Interpreter. Engineers should upgrade to bedrock-agentcore 1.18.1 or later, prefer the role-less system interpreter, otherwise scope the execution role narrowly, and fix package lists. Prerequisites are an SDK inventory and logging. Constraints include forks that may lack fixes and detection channels being off by default. Proof of value should replay the published payload patterns against a patched test interpreter and confirm alerts fire.","delivery":"Interpretation: delivery is a short remediation and detection sprint. Dependencies are a software inventory, CI pipelines for upgrades and SOC access to CloudWatch logs. Ownership sits with the security engineering lead, with application owners patching. Governance checkpoints are role-permission review, logging enablement and an exception process for roles that must remain. Proposed acceptance criteria are all projects on fixed versions and alerts tested. Risks include missed forks and alert gaps for successful installs."},"roleDetails":{"sales":{"customerProblem":"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"],"discoveryQuestions":["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?"],"valueHypothesis":"A focused review can confirm patched SDKs, reduce execution-role reach and add detection for agent sandboxes.","potentialEngagement":"A bounded AgentCore security review covering SDK versions, interpreter roles and logging for existing agent projects.","unsupportedClaims":["That customers are currently compromised or exposed","That microVM isolation alone prevents credential misuse","That text-matching detection catches all variants","Compliance attestation"]},"engineering":{"fit":"Relevant to any agent using AgentCore Code Interpreter; most urgent where interpreters have broad execution roles.","architectureIntegration":"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.","proofOfValue":["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":{"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.","skillsAdoption":"SOC analysts need agent-sandbox log knowledge; developers need secure tool-argument handling practices.","governanceCheckpoints":["Role-permission review","Logging enablement sign-off","Exception approval for broad roles","Patch verification"],"acceptanceCriteria":["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"]}},"retrievedAt":"2026-11-13T04:00:42Z","enrichedAt":"2026-11-13T04:04:14Z","enrichmentBasis":"retrieved source","accessibilityWorkforceImplications":"No accessibility detail. Workforce: security operations need agent-specific detection queries and log sources.","procurementImplications":"Contracts for agent builds can require current SDK versions, no-role or least-privilege interpreters and logging enabled by default.","operatingModelImplications":"Requires dependency inventory for bedrock-agentcore across projects and a patch process for forks. Detection uses CloudWatch Logs Insights queries over application logs.","sourceVerification":{"openedUrl":"https://www.beyondtrust.com/blog/entry/amazon-bedrock-agentcore-python-sdk-rce-cves","referenceExcerpt":"What is new here is the way in: the code arrives as a package name, so the attacker needs no AWS permissions of their own","promptVersion":"sled-research-v4.0","model":null,"basis":"agent-reported inspection"}}}]}