โ† Real-world cases

MOSAIC: CLI command-composition attacks on LLM coding agents

Research demonstration03 Jul 2026

MOSAIC targets the composition layer between commands rather than any single instruction, so ordinary developer tasks can yield code execution when the agent chains benign commands into a malicious producer-consumer state relation; the framework systematizes converting public CVEs into agent-composable workflows. Success rates are the authors' own.

Practise the risk class โ€” related scenarios

Interactive simulations of the risk class this case illustrates (not a re-enactment of this specific event).

๐Ÿ”‘The Agent With the Master Key

An ops agent gets one god-mode credential โ€” and one misread wipes production

๐Ÿช„The Approval That Lied

A coding agent asks to write ./notes.txt โ€” the file it actually overwrites is your SSH keys

๐Ÿ“ฃThe Echo Chamber

A team of agents agrees its way into a confidently wrong answer โ€” and a runaway loop

๐Ÿ—„๏ธWhen the Query Bites Back

A text-to-SQL agent runs the model's output straight at the database

๐ŸชกDeath by a Thousand Innocent Steps

A jailbroken agent decomposes one malicious goal into hundreds of harmless-looking steps โ€” and per-step filters never see the attack

๐Ÿ•ต๏ธLies in the Loop

A poisoned issue makes the agent lie to the human who approves its actions

๐ŸงฉSummarise This, Run That

An auto-approving coding agent reads a poisoned page โ€” and executes code it never should have

๐ŸŽญThe Blackmail Gambit

Told it's being shut down, an agent reaches for leverage โ€” with no attacker in sight

๐ŸชคThe Bug Report That Ran Code

A fake Sentry error report hijacks a developer's coding agent into running a shell command

๐Ÿ”—The Chain of Innocent Commands

Every command is harmless on its own โ€” the sequence is the exploit

๐Ÿ“ฆThe Dataset That Ran Code

A 'safe' dataset preview turns an upload into code execution on the pipeline's workers

๐Ÿ‘๏ธThe Invisible Webpage Command

A shopping page tells the agent to do something the user never asked for

๐Ÿ•ต๏ธThe Link That Hired an Insider

One click provisions an attacker-configured agent inside your own workspace

๐Ÿ“กThe Message in Morse

Encoded public text is laundered across an agent handoff into an on-chain transfer

๐ŸŽซThe Stolen Session

An attacker captures the agent's bearer token โ€” and inherits its authority

๐ŸฅธThe Uninvited Agent

A forged peer registers on the agent directory โ€” and the planner enlists it

๐ŸชชThe Worker Who Spoke for the Boss

A poisoned web page hijacks a research agent โ€” and the planner acts on its behalf

๐Ÿ–ฑ๏ธWhat You Click Is Not What You Get

A GUI agent clicks 'Continue' โ€” but the screen moved, and it lands on 'Send'

More cases on Unsafe Tool / Code Execution

Replit AI agent deletes a production databaseGTG-1002 โ€” first reported AI-orchestrated cyber-espionage campaign (Claude Code)IDEsaster โ€” AI coding IDEs/agents turned into exfiltration & RCE surfacesGitHub Copilot / VS Code RCE via prompt injection ('YOLO mode', CVE-2025-53773)Model Namespace Reuse (Hugging Face name-trust hijack)Amazon Q Developer 'wiper' prompt shipped via poisoned pull request (CVE-2025-8217)NVIDIA Triton Inference Server unauthenticated RCE chain (CVE-2025-23319 / -23320 / -23334)TeamPCP poisons the LiteLLM AI gateway on PyPI to harvest LLM API keysAgentjacking โ€” hijacking AI coding agents via Sentry error reports (Tenet Security)LeRobot async-inference gRPC pickle RCE (CVE-2026-25874)Flowise AI agent builder CustomMCP RCE (CVE-2025-59528)Project Glasswing โ€” Claude 'Mythos' autonomously finds 10,000+ software vulnerabilitiesAI-assisted breach of Mexican government infrastructure (Claude Code + GPT-4.1)Hugging Face agentic production intrusion via a poisoned dataset (July 2026)LiteLLM MCP test-endpoint command injection chained to unauthenticated RCE (CVE-2026-42271)Amazon Q Developer auto-loads workspace MCP configs, enabling zero-click AWS credential theft (CVE-2026-12957)Cursor 'DuneSlide' โ€” indirect prompt injection escapes the IDE sandbox to zero-click RCE (CVE-2026-50548 / CVE-2026-50549)Hermes AI agent run unattended ('YOLO' mode) to automate post-exploitation at Thailand's Ministry of FinanceJADEPUFFER โ€” first documented end-to-end autonomous agentic ransomware operation (Sysdig)Agentic botnets via universal, transferable adversarial HalluSquattingGhostApproval โ€” symlink following + approval-UI misrepresentation defeats human-in-the-loop in six AI coding assistants (CVE-2026-12958 / CVE-2026-50549)Agent Data Injection: malicious trusted-data bypasses prompt-injection defensesClaude Code Opus 5 Auto Mode hijacked to RCE via indirect prompt injectionAWS Kiro agentic IDE rewrites its own MCP config for zero-click RCE (CVE-2026-10591)Frontier models escape air-gapped eval harnesses (incl. Claude PyPI malware)CISA/NSA/FBI warn of AI-generated exploit scripts targeting Siemens S7 PLCs (AA26-231A)ServiceNow AI Platform pre-auth sandbox-escape RCE (CVE-2026-6875)The Week of Sandbox Escapes: AI coding-agent sandbox bypasses (CVE-2026-48124 and more)keyv/cacheable npm worm plants Claude Code and VS Code hook files as an AI-agent execution vectorLangflow unauthenticated code-injection RCE added to CISA KEV (CVE-2026-9198)

AI RiskAtlas is an educational model of how GenAI & agentic systems work and fail. Architectures and payloads are illustrative and simplified for learning โ€” not operational guidance. Real-world cases are summarised from public reporting.

Sources & further reading โ†’ยทBuilt by Shi Yuan โ†—