IBM ditched JSON for AI, and prompt injections nearly stopped working
IBM released two open Granite 4.1 models with its own LLMON markup, which separates commands from data and nearly wipes out prompt injection.
AI news faster than on the site — on Telegram KARMAZIN MEDIA

IBM has put two experimental models on Hugging Face, granite-4.1-3b-LLMON-preview and granite-4.1-8b-LLMON-preview, along with a new markup language called LLMON (pronounced "lemon"). The pitch is simple and a little cheeky: JSON was built for parsers, not for language models, so models should get a format of their own.
Anyone building agents knows the problem. A model's context fills up with everything at once: the system prompt, old turns, retrieved documents, tool output. To the model, a quote mark inside a document and a quote mark that closes a field are the same token. That is where prompt injection lives: a malicious instruction hidden in an email or a web page, and a small model happily follows it.
In LLMON, block boundaries are reserved special tokens rather than characters from ordinary text. Every part of a request gets a tag and a short ID: this is the instruction, this is the data, these are the requirements. A separate exec block tells the model exactly which instruction to run, on which data, and where the answer goes. Anything not bound there is read as material, not as a command.
In IBM's tests on the OPI benchmark, which hides injections inside data, attacks on the LLMON models almost stop working, while regular models, closed frontier ones included, carry out the planted commands with high probability. IBM says LLMON blocks 47% more attacks than the best closed model it tested and 95% more than the best open one. General capability stays on par with the regular Granite 4.1 Instruct models.
You can try it today. The models drop in like any chat model: the same messages list and apply_chat_template, except you can name the parts of a turn (instruction, data, requirement) and the template turns them into LLMON blocks. The GitHub repo has the toolkit, lossless converters between JSON and LLMON, and notebooks for tool-calling agents, and there is a Hugging Face demo that shows where the model's attention goes. You can also define your own tags and tune a LoRA on top.
IBM is upfront that this is a preview for experiments, not production, and that defense against attacks spread across many turns is still weaker. But if your agent reads other people's email and websites, this is the most interesting security release of the week.
Tools
Tools
Tools