Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability in the python_repl tool within Amazon Strands Agents Tools could allow remote actors to execute arbitrary Python code by bypassing security checks through crafted prompts. This bypass is possible when the `non_interactive_mode` is forwarded as a keyword argument via the batch tool.
- Malicious prompts can bypass consent to run code.
- This affects tools that use the python_repl feature.
- Confirm relevance and exposure for affected internal tools.
Attack Path
How an attacker could exploit the issue
An attacker could send a specially crafted prompt to an agent utilizing the vulnerable tool. This prompt would need to be designed to bypass the agent's usual safety checks, potentially tricking it into executing arbitrary Python code on the host system.
- Attacker sends a crafted prompt.
- Vulnerable Python tool processes the prompt.
- Arbitrary code execution on the agent's host.
Live Threat
Current exploitation, exposure, and threat context
When supported by the advisory, remote actors could execute arbitrary Python code on the agent's host by bypassing the human consent gate, via a crafted prompt.
- Agent host system data may be affected.
- Prompt injection could lead to code execution.
- Unauthorized code execution on agent host.
Operational Fix
Recommended remediation, mitigation, and detection steps
The python_repl tool within Amazon Strands Agents Tools is susceptible to a critical vulnerability, allowing remote attackers to execute arbitrary Python code. This exploit bypasses consent gates through crafted prompts. Ownership for remediation likely falls to teams managing the specific agent applications or workflows utilizing this tool. The immediate first step is to inventory where the affected tool is deployed, confirm its exposure and criticality, identify the accountable owner, and then meticulously plan remediation during a maintenance window.
- Application owners responsible for agent tools.
- Confirm agent tool deployment and reachability.
- Plan upgrade during next maintenance window.