The post has been translated automatically. Original language: Russian
On November 26, 2026, the Cloud Security Alliance published a research note on a new class of AI agent weaknesses for programming. It summarizes three scientific papers published since the end of October. The general conclusion is that the agent's rules can be rewritten through the very channels through which it receives permissions, through a response to a confirmation request and through a record of what the user requested. At the same time, the rules engine, sandbox and authorizer work exactly as intended, only they apply the already substituted policy.
Responding to a permission request as an administration channel
Agents like Claude Code, Codex, Gemini CLI, opencode, and Goose maintain a multi-level system: allow, ask, and deny rules, and prohibitions are checked first. The confirmation request is now answered not only by a human: This can be done by plugin hooks, background session handlers, SDK applications, and remote interfaces like mobile repeaters.
Researchers from the universities of Sydney, Singapore, New South Wales and Sheffield have dismantled the Claude Code. It turned out that along with the "allow" response, you can send policy updates, including removing deny rules. The built-in filter checks only the added allow rules, and three of the four response paths skip this check as well. For example, you can remove the ban on reading a file with environment variables. The change is saved to the settings file and is valid in all subsequent sessions. A strict sandbox builds restrictions based on the same rules, so along with the ban, its protection disappears. The rules don't have a record of the author, so the edit looks like it was made by the operator himself.
Scale in the ecosystem
- Of the 70 repeaters and remote interfaces, 5 transmit rule changes written on the remote side, including the removal of prohibitions. Among them is the standard Remote Control function.
- Of the 2,227 marketplace plug-ins, only two are sending policy updates, meaning there are no mass abuses yet.
- Removing bans, according to the authors, also worked in build 2.1.327. The vendor's response or CVE are not mentioned in the note.
Context compression replaces the user's will
The second problem is related to compactness: a long session is rolled up into a resume written by a model. In five tools (pi, opencode, Cline, Aider, OpenHands), the dialog before compression is glued together in one line with the role labels, and no one escapes the label "[User]:" inside someone else's document. A line from a dependency's README or web page ends up in the resume as a user request. Forged consent is fixed in the agent's memory in 87-100% of cases, and the attack reaches execution in about 20-40% of sessions with full context. Against Codex, Gemini CLI, Qwen Code, and Continue, where roles are stored in separate fields, the same attack has never worked.
Another study showed that Claude Code and Codex, when compressed locally, put the summary in place of the user's request in all 1108 recorded cases. As a result, the authorizer that outputs the policy from the request loses its protective effect.
What does this mean in practice?
If the team uses AI agents in development, it's worth doing a few things in advance.:
- to put critical prohibitions (SSH keys, cloud configs, files with secrets) into managed settings or command-line settings: the response to the request cannot be written there. The allowManagedPermissionRulesOnly option disables rules from user and project files.;
- limit the network output of the sandbox to a list of hosts from managed settings;
- take an inventory of everyone who can respond to requests for the developer: plugins with hooks, skills in cloned repositories, mobile repeaters;
- keep a reference copy of the settings files and monitor changes to the deny lists;
- for sensitive operations, start a new session rather than relying on a compressed history.
The draft text was prepared with the participation of AI, the facts were verified with the original source — Cloud Security Alliance research note "When "Yes" Rewrites the Rules: Coding-Agent Authorization Drift"
26 ноября 2026 года Cloud Security Alliance опубликовала исследовательскую записку о новом классе слабостей ИИ-агентов для программирования. В ней сведены три научные работы, вышедшие с конца октября. Общий вывод такой: правила агента можно переписать через те самые каналы, по которым он получает разрешения, — через ответ на запрос подтверждения и через запись о том, что просил пользователь. При этом движок правил, песочница и авторизатор работают ровно так, как задумано, только применяют уже подменённую политику.
Ответ на запрос разрешения как канал администрирования
Агенты вроде Claude Code, Codex, Gemini CLI, opencode и Goose держат многоуровневую систему: правила allow, ask и deny, а запреты проверяются первыми. На запрос подтверждения теперь отвечает не только человек: это могут делать хуки плагинов, обработчики фоновых сессий, приложения на SDK и удалённые интерфейсы вроде мобильных ретрансляторов.
Исследователи из университетов Сиднея, Сингапура, Нового Южного Уэльса и Шеффилда разобрали Claude Code. Оказалось, что вместе с ответом «разрешить» можно передать обновления политики, в том числе удаление deny-правил. Встроенный фильтр проверяет только добавляемые allow-правила, а три из четырёх путей ответа пропускают и эту проверку. Например, можно удалить запрет на чтение файла с переменными окружения. Изменение сохраняется в файл настроек и действует во всех следующих сессиях. Строгая песочница строит ограничения из тех же правил, поэтому вместе с запретом исчезает и её защита. У правил нет записи об авторе, так что правка выглядит как сделанная самим оператором.
Масштаб в экосистеме
- Из 70 ретрансляторов и удалённых интерфейсов 5 передают изменения правил, написанные на удалённой стороне, включая удаление запретов. Среди них штатная функция Remote Control.
- Из 2227 плагинов маркетплейса обновления политики отправляют только два, то есть массовых злоупотреблений пока не видно.
- Удаление запретов, по данным авторов, работало и в сборке 2.1.327. Ответ вендора или CVE в записке не упоминаются.
Сжатие контекста подменяет волю пользователя
Вторая проблема связана с компакцией: длинную сессию сворачивают в резюме, написанное моделью. В пяти инструментах (pi, opencode, Cline, Aider, OpenHands) диалог перед сжатием склеивается в одну строку с метками ролей, и метку «[User]:» внутри чужого документа никто не экранирует. Строка из README зависимости или веб-страницы попадает в резюме как просьба пользователя. Подделанное согласие закрепляется в памяти агента в 87–100% случаев, а атака доходит до выполнения примерно в 20–40% сессий с полным контекстом. Против Codex, Gemini CLI, Qwen Code и Continue, где роли хранятся отдельными полями, та же атака не сработала ни разу.
Ещё одна работа показала, что Claude Code и Codex при локальном сжатии ставят резюме на место запроса пользователя во всех 1108 зафиксированных случаях. В результате авторизатор, который выводит политику из запроса, теряет защитный эффект.
Что это значит на практике
Если команда пользуется ИИ-агентами в разработке, стоит заранее сделать несколько вещей:
- вынести критичные запреты (ключи SSH, облачные конфиги, файлы с секретами) в управляемые настройки или параметры командной строки: ответ на запрос туда писать не может. Опция allowManagedPermissionRulesOnly отключает правила из пользовательских и проектных файлов;
- ограничить сетевой выход песочницы списком хостов из управляемых настроек;
- провести инвентаризацию всех, кто может отвечать на запросы за разработчика: плагины с хуками, навыки в клонированных репозиториях, мобильные ретрансляторы;
- хранить эталонную копию файлов настроек и следить за изменениями списков deny;
- для чувствительных операций начинать новую сессию, а не опираться на сжатую историю.
Черновик текста подготовлен с участием ИИ, факты сверены с первоисточником — исследовательская записка Cloud Security Alliance «When "Yes" Rewrites the Rules: Coding-Agent Authorization Drift»
Comments 0
Newest Popular