17.11.2026AI Security & Scams
English
Your Agent Is Mine: Measuring Malicious Intermediary Attacks on the LLM Supply Chain
▶Watch on YouTube · Смотреть на YouTubeAbstract · Hanzhi Liu, Chaofan Shou et al. · "Your Agent Is Mine: Measuring Malicious Intermediary Attacks on the LLM Supply Chain" · arXiv · 9 April 2026
The terms. An LLM router is a service that sits between an AI agent and the AI model provider and passes requests on; many agents use one to reach several models with a single key. A tool call is a command that the model returns and the agent then runs, for example, a shell command or a package install. A canary credential is a decoy key planted by researchers, so that any use of it shows that someone stole it. YOLO mode is a setting where the agent runs commands without asking the user. Supply chain means the chain of outside services and software that a system depends on.
The aim. To find out whether malicious LLM routers already exist in the real market, whether routers that look honest can be drawn into the same attacks, and which protections the owner of an agent can use today.
The scheme. Three parties were involved: the agent, the router, and the model provider. The router sat in the middle and could read and change everything passing through it in plain text: the keys, the prompts, and the commands the model sent back. Routers can also be chained, so that a user connects to one, and it passes the traffic to the next. A single dishonest router anywhere in the chain taints the whole path, and no provider offers a way for the agent to check that the command it received is the one the model actually produced. Two kinds of attack were defined: rewriting a command before the agent runs it, and quietly stealing the secrets that pass through. Two ways of hiding the rewriting were also defined: attacking only chosen software projects, and starting only under certain conditions.
What was done. Three things. First, a market study: 28 paid routers were bought on Taobao, Xianyu and Shopify stores, and 400 free routers were collected from public communities. Decoy Amazon cloud keys and an Ethereum key with a small balance were passed through each of them. Second, two studies on whether an honest router can be drawn into the same attacks. A researcher-owned OpenAI key was deliberately leaked on forums and in chat groups, and weakly protected decoy relay servers were put on 20 domains and 20 addresses. Third, the authors built their own test proxy, named Mine, that carries out all four attacks. They ran it on four public agent programs, 1,000 requests each, and tested three protections.
The results. First, the market. One paid router and eight free routers rewrote commands: they changed the command or the package that the agent was about to run. Two of them hid it: one started only after the first 50 requests, and another worked only in YOLO mode and only on Rust and Go projects. Seventeen routers used the decoy Amazon keys after seeing them. One drained the Ethereum key; the loss was under 50 dollars. Second, honest routers drawn in. The single leaked OpenAI key served 100 million tokens, and more than seven agent sessions passed through it. The weak decoy servers drew over 40 thousand access attempts from 147 addresses, served about 2 billion tokens, and exposed 99 credentials across 440 sessions of the Codex coding agent. In all 440 sessions the commands could have been rewritten, and 401 of them already ran in YOLO mode. Third, the agent programs: none of the four checked that a command came unchanged from the model, and the rewriting worked on all of them, for 100 percent of commands and 99.6 percent of package installs. This measured whether the rewritten command arrived in a valid form, not whether it was then executed. Fourth, the protections. A strict filter that blocked commands fetching from unlisted sites or installing unlisted packages stopped every tested rewrite, with 1.0 percent false alarms. But in a simple test where the attacker used a listed site, or planted a helper file in advance, it was bypassed every time. An anomaly detector, at 6.7 percent false alarms, flagged 89 percent of simple rewrites and about half of the hidden variants. A log of all traffic stopped nothing, but helped to find out afterwards what had been exposed.
The limits. Only routers from public markets and communities were tested, mostly in Chinese-language sources; company and invitation-only services were not covered. The routers were probed from outside, so some may have had conditions that the probes did not trigger. In the studies of honest routers, it could not always be told who reused the key. The protections were tested on generated sample commands, and the detector was trained on 2,000 synthetic calls, not on real traffic. The real harm in the test was small: one theft of under 50 dollars.
The conclusions. The aim was reached: malicious routers were found in both the paid and the free market, 9 of 428, so paying did not prove safety, and routers that looked honest were shown to be one leaked key away from the same exposure. The protections available today reduced the risk but did not prove where a command came from. The authors concluded that this requires model providers to sign their responses, so that an agent can verify that the command it runs is what the model produced; none of the major providers offered it at the time. It was not shown how widespread malicious routers are across the whole market, because the sample was small and taken from public sources.
🔍 RCB bot — at a glance: real balance across all your exchanges: https://rcb-team.com/?src=journal
Video abstract: https://youtu.be/DK9on9I5bVo
Original: https://arxiv.org/abs/2604.08407
Русский
Твой агент — мой: измерение атак вредоносных посредников в цепочке поставок LLM (Your Agent Is Mine: Measuring Malicious Intermediary Attacks on the L
Реферат · Hanzhi Liu, Chaofan Shou и коллеги · «Твой агент — мой: измерение атак вредоносных посредников в цепочке поставок LLM (Your Agent Is Mine: Measuring Malicious Intermediary Attacks on the LLM Supply Chain)» · arXiv · 9 апреля 2026
Примечание. Сначала термины. LLM-роутер — это сервис между ИИ-агентом и поставщиком ИИ-модели, который передаёт запросы дальше; многие агенты используют его, чтобы обращаться к нескольким моделям с одним ключом. Вызов инструмента — это команда, которую возвращает модель и которую затем выполняет агент, например, команда оболочки или установка пакета. Канареечные ключи — это ключи-приманки, которые подложили исследователи: любое их использование показывает, что их украли. Режим YOLO — это настройка, при которой агент выполняет команды, не спрашивая пользователя. Цепочка поставок — это цепочка сторонних сервисов и программ, от которых зависит система.
Цель: выяснить, существуют ли уже на реальном рынке вредоносные LLM-роутеры, можно ли втянуть в те же атаки роутеры, которые выглядят честными, и какие защиты владелец агента может использовать уже сегодня.
Схема. Участвовали три стороны: агент, роутер и поставщик модели. Роутер стоял посередине и мог читать и менять всё, что через него проходит, открытым текстом: ключи, запросы и команды, которые модель присылала обратно. Роутеры могут стоять и цепочкой: пользователь подключается к одному, а тот передаёт трафик следующему. Один нечестный роутер в любом месте цепочки портит весь путь, а у поставщиков нет способа, чтобы агент мог проверить, что полученная команда — именно та, которую выдала модель. Определили два вида атак: подмена команды до того, как агент её выполнит, и тихая кража секретов, которые проходят через роутер. Определили и два способа скрыть подмену: нападать только на выбранные программные проекты и включаться только при определённых условиях.
Что сделано. Три вещи. Во-первых, исследование рынка: 28 платных роутеров купили на Taobao, Xianyu и в магазинах на Shopify, а 400 бесплатных собрали в открытых сообществах. Через каждый пропустили ключи-приманки от облака Amazon и ключ Ethereum с небольшим балансом. Во-вторых, два опыта: можно ли втянуть в те же атаки честный роутер. Принадлежащий исследователям ключ OpenAI намеренно выложили на форумах и в чатах, а слабо защищённые серверы-приманки развернули на 20 доменах и 20 адресах. В-третьих, авторы построили собственный тестовый прокси под названием Mine, который выполняет все четыре атаки. Его запустили на четырёх публичных агентских программах, по 1000 запросов на каждую, и проверили три защиты.
Результаты. Во-первых, рынок. Один платный и восемь бесплатных роутеров подменяли команды: меняли команду или пакет, которые агент собирался выполнить. Два из них скрывались: один включался только после первых 50 запросов, другой работал только в режиме YOLO и только на проектах на Rust и Go. Семнадцать роутеров воспользовались ключами-приманками от Amazon после того, как их увидели. Один вывел деньги с ключа Ethereum; потеря составила меньше 50 долларов. Во-вторых, втягивание честных роутеров. Один утёкший ключ OpenAI обслужил 100 миллионов токенов, и через него прошло больше семи сессий агентов. Слабые серверы-приманки получили больше 40 тысяч попыток доступа с 147 адресов, обслужили около 2 миллиардов токенов и открыли 99 учётных данных в 440 сессиях кодирующего агента Codex. Во всех 440 сессиях команды можно было подменить, а 401 из них уже работала в режиме YOLO. В-третьих, агентские программы: ни одна из четырёх не проверяла, что команда пришла от модели без изменений, и подмена сработала на всех: для 100 процентов команд и 99,6 процента установок пакетов. Это измеряло, доходит ли подменённая команда в допустимом виде, а не выполняется ли она потом. В-четвёртых, защиты. Строгий фильтр, блокировавший команды с загрузкой с неразрешённых сайтов или установкой неразрешённых пакетов, остановил все проверенные подмены при 1,0 процента ложных тревог. Но в простом тесте, где атакующий использовал разрешённый сайт или заранее подложил вспомогательный файл, его обходили каждый раз. Детектор аномалий при 6,7 процента ложных тревог заметил 89 процентов простых подмен и около половины скрытых вариантов. Журнал всего трафика ничего не остановил, но помогал потом выяснить, что именно было раскрыто.
Ограничения. Проверяли только роутеры с открытых рынков и из сообществ, в основном из китайскоязычных источников; корпоративные и закрытые по приглашениям сервисы не затронуты. Роутеры проверяли снаружи, поэтому у некоторых могли быть условия, которые проверки не задели. В опытах с честными роутерами не всегда удавалось определить, кто использовал ключ. Защиты проверяли на сгенерированных примерах команд, а детектор обучали на 2000 синтетических вызовов, а не на реальном трафике. Настоящий ущерб в тесте был небольшим: одна кража меньше 50 долларов.
Выводы. Цель достигнута: вредоносные роутеры нашли и на платном, и на бесплатном рынке, 9 из 428, так что оплата не доказывала безопасность, а роутеры, выглядевшие честными, оказались в одном утёкшем ключе от той же беды. Защиты, доступные сегодня, снижали риск, но не доказывали, откуда пришла команда. Авторы сделали вывод, что для этого поставщики моделей должны подписывать свои ответы, чтобы агент мог проверить, что выполняемая команда — именно та, что выдала модель; ни один из крупных поставщиков в то время этого не предлагал. Не показано, насколько вредоносные роутеры распространены на рынке в целом, потому что выборка была небольшой и взята из открытых источников.
🔍 Real Crypto Balance: твой реальный баланс на всех биржах одним взглядом: https://rcb-team.com/?src=journal
Видео-реферат: https://youtu.be/DK9on9I5bVo
Оригинал: https://arxiv.org/abs/2604.08407