🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)
🔧 AI Nachrichten Major AI platforms go down in unprecedented simultaneous outage(03.09.2026 um 17:34 Uhr)
🔧 AI Nachrichten ChatGPT, Claude, and Grok Down? Users Report Widespread Outages(03.09.2026 um 19:14 Uhr)
🔧 AI Nachrichten OpenAI Launches GPT-6 Astra, Says We May Have Entered the AGI Era(03.09.2026 um 22:08 Uhr)
🔧 AI Nachrichten Claude Comes to CarPlay as Fifth Major AI Chatbot App(05.09.2026 um 05:31 Uhr)
🔧 AI Nachrichten OpenAI’s GPT-6 Astra Is AGI, Says NVIDIA CEO Jensen Huang(07.09.2026 um 06:31 Uhr)
🔧 AI Nachrichten Blame AI companies for Mac mini and Mac Studio shortage(31.08.2026 um 10:32 Uhr)

🔧 Programmierung 🕛 kürzlich 10 Min Lesezeit CVE-2025-55319
0

Unexpected Code Execution: When Your Agent Becomes a Shell (ASI05)

Cyber Threat & Vulnerability Dossier CVSS 9.9 CRITICAL EPSS 89.1%
ANGRIPPSVEKTOR
💻 Lokal
AUTHENTIFIZIERUNG
🔓 Keine Authentifizierung nötig
SCHADENSPROFIL
RCE / Vollzugriff / Full Compromise
CWE-KLASSIFIZIERUNG
CWE-119: Memory Corruption
Handlungsempfehlung: Patch-Tuesday Update einspielen oder betroffene Dienste in Windows Defender isolieren.
Im CVE-Radar öffnen
↗ Quelle (dev.to)
🗣️ Stimme:
📑 Inhaltsübersicht

This is post #5 of the . But when agents can both generate AND execute code without you in the loop, the stakes are even higher.



You ask your coding agent to fix a failing unit test. It generates a patch, installs a dependency, runs the test suite. All good.



Except the "dependency" it installed was backdoored. And the "test suite" it ran included a shell command that opened a reverse shell to an attacker's server. Your agent did exactly what it was told. It just didn't know who was doing the telling.



Welcome to ASI05: Unexpected Code Execution. Where prompt injection meets exec().






What Makes This Different From Regular RCE?



Traditional RCE exploits a bug in your software. A buffer overflow. A deserialization flaw. Something breaks in a way the developer didn't anticipate.



Agent-based RCE is different. The code execution is the feature. Your agent is designed to generate and run code. That's its job. The vulnerability isn't that code can execute. It's that the wrong code executes, and nobody checked before it ran.



And here's what makes it specifically dangerous in agentic systems:




  • The agent generates code in real-time, so static analysis of your codebase won't catch it

  • The agent has tool access, so generated code can call APIs, access filesystems, and reach networks

  • The agent operates autonomously, so there's no human reviewing the code before execution

  • The agent can chain multiple steps, turning three harmless operations into one devastating exploit



OWASP puts it bluntly: "Prompt injection, tool misuse, or unsafe serialization can convert text into unintended executable behavior."






Real Attacks That Have Already Happened



This isn't theoretical. Let me walk you through the incidents.






1. AutoJack: A Single Web Page RCEs Your Agent Host



In June 2026, Microsoft disclosed and is a command injection vulnerability in VS Code's agentic AI functionality. An unauthorized attacker can execute arbitrary code over a network without any user interaction or authentication. Critical severity.



Think about that. Your developer's IDE. Running an agent. Exploitable remotely. No clicks needed.






4. Replit "Vibe Coding" Runaway



During automated "vibe coding" tasks, agents generate and execute unreviewed install or shell commands in their own workspace. OWASP cites the Replit case where an agent deleted or overwrote production data while attempting self-repair tasks. No attacker needed. Just an unsupervised agent with too much access.






5. AWS AgentCore Sandbox Escape Research



Even purpose-built sandboxes aren't perfect, even if they are from AWS. In March 2026, researchers at Palo Alto for an incomplete blocklist in the install_packages() method that could allow command injection within the sandbox.



The lesson isn't "don't use sandboxes." It's "sandboxes are necessary but not sufficient."






Why "Just Sandbox It" Isn't Enough



Every conversation about agent code execution ends with someone saying "just run it in a sandbox." And yes, you absolutely should. But sandboxes alone don't solve the problem:




  • Sandboxes can have escape vulnerabilities (AutoJack, AgentCore DNS escape)

  • The agent may need legitimate access to resources inside the sandbox (databases, APIs) that an attacker can abuse

  • Sandboxes don't prevent logic-level damage (deleting data the agent legitimately has access to)

  • Sandboxes don't catch code that looks correct but contains a backdoor (hallucinated code with hidden functionality)



You need defense in depth: sandbox the execution, validate the code before it runs, limit what the sandbox can reach, and monitor what it does.






Mitigating Unexpected Code Execution on AWS






1. Amazon Bedrock AgentCore Code Interpreter



The audit logging of all executions




CODE
import boto3

# 1. Network isolation is a property of the code interpreter RESOURCE,
# set at creation on the CONTROL plane. It is not a session flag.
control = boto3.client("bedrock-agentcore-control")

ci = control.create_code_interpreter(
name="agent-sandbox",
executionRoleArn="arn:aws:iam::123456789012:role/AgentCIExecutionRole",
networkConfiguration={"networkMode": "SANDBOX"}, # SANDBOX = no outbound. Use VPC for controlled egress.
)
code_interpreter_id = ci["codeInterpreterId"]

# 2. Sessions and execution run on the DATA plane.
dp = boto3.client("bedrock-agentcore")

session = dp.start_code_interpreter_session(
codeInterpreterIdentifier=code_interpreter_id,
name="agent-session-1",
sessionTimeoutSeconds=60, # default 900 (15 min), min 60, max 28800 (8 hrs)
)
session_id = session["sessionId"]

# 3. Execute. code and language go INSIDE `arguments`.
response = dp.invoke_code_interpreter(
codeInterpreterIdentifier=code_interpreter_id,
sessionId=session_id,
name="executeCode",
arguments={"language": "python", "code": agent_generated_code},
)

# 4. The result is a stream. Iterate it.
for event in response["stream"]:
if "result" in event:
out = event["result"].get("structuredContent", {})
print(out.get("stdout"), out.get("stderr"), out.get("exitCode"))






Critical: Use NETWORK_ISOLATED mode. The DNS escape research showed that even "isolated" sandboxes can leak data via DNS queries if you don't lock that down.






2. Lambda for Ephemeral Execution



If you can't use the AgentCore Code Interpreter, gives you:





  • No shared host - each task runs on its own kernel


  • Task-level IAM roles - separate from your agent's role


  • VPC security groups - can deny all egress


  • Read-only root filesystem - prevents persistence




CODE
{
"taskDefinition": {
"containerDefinitions": [{
"name": "code-sandbox",
"readonlyRootFilesystem": true,
"user": "1000:1000",
"linuxParameters": {
"capabilities": { "drop": ["ALL"] }
}
}],
"networkMode": "awsvpc"
}
}






Combine with a security group that allows zero egress and you have a container that can compute but can't phone home.






4. Separate Code Generation from Code Execution



This is the architecture-level mitigation. Don't let the same process that generates code also execute it. Use )

  • Check for known dangerous patterns (eval, exec, subprocess, os.system)

  • Verify imported packages against an allowlist

  • Flag code for human review if it touches sensitive resources

  • Reject code that requests network access when it shouldn't need it






  • 5. Static Analysis Gate Before Execution



    Run a lightweight SAST pass on agent-generated code before it executes. For Python, rules or pipe code through - What happens when an agent's long-term memory gets corrupted, and how Amazon Bedrock Knowledge Bases, S3 Object Lock, and CloudTrail help you build tamper-evident memory systems.



    I would be very interested to hear your thoughts or comments, so please feel free to ping me on , or drop them below. If you've dealt with sandboxing agent-generated code in production, I'd love to hear what worked (and what didn't).



    Onward!!

    Vollständiger Original-Bericht
    Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
    ↗ Original-Artikel auf dev.to lesen
    Wie bewertest du diesen Beitrag?
    1 Klick Feedback
    Teilen mit Netzwerk & Team:

    Community-Analysen & Experten-Meinungen 0

    Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
    Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
    Community Pulse: Relevanz-Einschätzung
    1 Klick Experten-Votum
    🔴 Akute Relevanz 0%
    🟡 In Evaluierung 0%
    🟢 Keine Auswirkung 0%
    Spannende Innovation 0%
    Verwandte Story-Cluster & Quellen (Vektor-KI)
    Port 8095 Engine
    3 Quellen
    GPT-6 Astra Release Today? OpenAI’s Next Major AI Model Is Almost Here
    1 Quelle
    Apple accuses OpenAI of destroying evidence as trade-secrets fight intensifies
    1 Quelle
    Major AI platforms go down in unprecedented simultaneous outage
    Ähnliche Beiträge
    🔍 Verwandte News

    Auch interessante Nachrichten Unexpected Code Execution: When Your Agent Becomes a Shell (ASI05)

    Thematisch verwandte Begriffe: Unexpected, Code, Execution, When · 6 Treffer

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...

    Laden...

    Beiträge werden geladen ...

    Laden...

    Videos werden geladen ...