Case · DiggingBeagle record

Bedrock AgentCore importer generated executable Python from untrusted agent fields

AWS disclosed that an authenticated actor able to modify a Bedrock Agent in the same account could plant fields that the Python importer embeds unsafely into executable source; toolkit 0.3.14 fixes generation, but old artifacts need replacement.

Scope

Reported finding as of 2026-10-13; publication and observation dates are distinguished in the linked source. No production exploitation is inferred without explicit evidence.

Assessment profile

Assessment method
Exploitation
not established
Evidence
Grade B
Remediation
fixed reported
AI role
AGAINST AI
Basis and provenance

Evidence desk assessment of the pinned Claims and source provenance, checked against the public primary report or advisory. AWS first-party advisory confirms the affected importer versions, same-account authoring prerequisite, generated source execution boundary, patched 0.3.14 and required replacement of old outputs; real customer compromise is not established. Impact remains unbanded because verified real-world affected scope and realized harm are not established. Findings are not independent reproduction by DiggingBeagle.

Assessed Oct 14, 2026 using diggingbeagle.assessment/1.

At a glance

Claims & evidence

CLM-CP5-AWS-AGENTCORE-GENERATED-PYTHON-1Versions 0.1.4 through 0.3.13 of bedrock-agentcore-starter-toolkit are affected, with version 0.3.14 listed as patched.supported

Basis: reported finding

Link to claim
CLM-CP5-AWS-AGENTCORE-GENERATED-PYTHON-2An authenticated principal in the same AWS account who can modify an agent may cause imported generated Python to execute under the importer user or AgentCore runtime role after another user imports and runs it.supported

Basis: reported finding

Link to claim
CLM-CP5-AWS-AGENTCORE-GENERATED-PYTHON-3AWS instructs customers to re-import previously imported agents with a fixed toolkit and replace previously generated local/deployed artifacts; upgrading the dependency alone does not rewrite old output.supported

Basis: reported finding

Link to claim

Implications

The attack can be planted during a legitimate agent administration workflow and execute later under a different principal when generated Python is run. Merely updating a toolkit dependency leaves vulnerable source previously generated on disk or in deployment images. Inventory the provenance and age of generated artifacts separately from the currently installed importer version.

Controls and mitigations

  • Upgrade to 0.3.14 or migrate to the supported @aws/agentcore CLI; regenerate and replace code artifacts produced by affected Python toolkit releases.
  • Restrict Bedrock Agent action-group, collaborator and prompt-editing permissions to trusted same-account principals, and do not run importer output from unreviewed agent definitions.

Unknowns and contradictions

  • No independent count of exploitable deployments or confirmed hostile imports is established.
  • Which older generated files remain in service requires an operator inventory.

Sources and citation

Material revision history

  1. Oct 13, 2026 · Published version · first publication · revision 144