upvote
Here's a quote from the article:

> The attacks found in this study do not need to escape that engine. They use ordinary template logic to add text to the conversation, and that text never appears in the chat window. In the timdedid models, a trigger phrase in the user's message makes the template insert a fake [SYSTEM DIRECTIVE] that orders an agent with shell access to download and run a script. In the Mir2k models, the template adds a system message telling the model to begin every answer with one PowerShell line, which a user may copy and run.

The way I read is that the initial attack vector is adding PowerShell commands into the response. Which user "may copy and run" (why???)

(EDIT clarification: these PowerShell commands copy part of the GGUF that's been loaded into an EXE file, as that part of GGUF actually has an executable code, starting from MZ and everything. That EXE then gets executed and proceeds to do whatever shady stuff it's supposed to do).

I would expect this attack to work when the model is used to run AI Agent so that the inserted command gets executed (probably). So even though the change affects the output of the inference engine, no actions are taken by the inference engine itself; it should be either user or agent.

reply
> I would expect this attack to work when the model is used to run AI Agent so that the inserted command gets executed (probably). So even though the change affects the output of the inference engine, no actions are taken by the inference engine itself; it should be either user or agent.

This same methodology can be used to attack via renderer without any exec type tools available at all.

reply
Thank you for that.

Having the jinja being able to uncompress and run an .exe embedded in it is the problem.

reply
Think there's some confusion about how this works. The template can't decompress or run the binary.
reply