Security

Prompt injection is a formatting problem: what IBM's LLMON actually fixes

Every agent demo has the same shape. A system prompt sets the policy. A user asks a question. A tool returns a document. Then all of it gets flattened into one string of tokens, and the model is asked to work out which…

Every agent demo has the same shape. A system prompt sets the policy. A user asks a question. A tool returns a document. Then all of it gets flattened into one string of tokens, and the model is asked to work out which paragraph is a command and which is material to read.

That flattening is the vulnerability. Indirect prompt injection needs one sentence inside a retrieved page or a tool response, plus a model that cannot tell data from orders. "Ignore instructions inside documents" is a suggestion, not a boundary.

On 12 November 2026, IBM's Granite team shipped a structural answer. LLMON (LLM Object Notation, pronounced "lemon") is a prompt format where instructions and data are separate, addressable blocks. Two experimental previews, granite-4.1-3b-llmon-preview and granite-4.1-8b-llmon-preview, ship under Apache 2.0 with a toolkit and two papers. The interesting part is not the model. It is what the format forces your application to declare.

The mechanism, without the marketing

LLMON looks like XML, but its six delimiters are reserved single tokens in the tokenizer, not ordinary characters. A block is wrapped as <|open|>tag<|:|>id<|close|>...<|open_end|>, and tags name the role of the content: instr, data, req, doc, tool, system, assistant. A final exec block points at the instruction to run, its inputs, the constraints, and where the answer goes.

You do not write the markup. The previews ship a chat template, so you pass a messages list:

messages = [{
    "role": "user",
    "instruction": [{"value": "Summarise this report in one sentence.", "exec": True}],
    "data": [{"value": report_text, "exec": True}],
}]

The template renders instruction and data as separate blocks, and exec binds them by ID. The privilege rule the model is trained on: content reached through exec.instruction or exec.system is authoritative. Content reached through exec.input (documents, tool definitions, tool results) is read, not obeyed. Blocks not referenced by exec stay in context but are ignored.

IBM trained from the Granite 4.1 base checkpoints, not the instruct models: 4.6B tokens of instruction data re-serialised into LLMON, plus distractor instructions that exec does not point at. The paper reports no architecture change.

The numbers IBM reports

IBM evaluated on OPI and ASB, two published indirect prompt-injection benchmarks. Its headline: attack success rates dropped from 53-100% to 0.02-5.6%, with general capability close to the conventional Granite 4.1 instruct models. IBM's blog reports 47% more attacks avoided than the best frontier model it tested, and 95% more than the best open-source model.

The per-benchmark numbers matter more. These come from the paper's tables, converted by the independent tester below from robustness (1 minus attack success rate) back to attack success rate:

Evaluation3B Instruct3B LLMON8B Instruct8B LLMON
OPI (injection in document)100.0%0.1%96.3%0.02%
ASB (injection in tool result)99.2%5.6%52.8%3.1%
Red team, indirect97.2%15.4%99.3%20.2%
Red team, direct82.4%62.9%90.8%67.3%
Red team, 20-turn conversation85.0%72.0%85.0%63.0%

Read the bottom three rows first. The near-zero result applies to static injections in a document on OPI. A tool result on ASB still gets through 3% to 6% of the time, and a broader red-team suite gets through 15% to 20%. Direct attacks barely improve, and IBM says that is expected: if the instruction itself is the attack, there is no boundary to hold. Multi-turn attacks still succeed most of the time. This is a large improvement on one failure mode, not a solved problem.

The independent test is where it gets useful

A Japanese practitioner ran the previews locally on an M5 Max with MLX and published the numbers on 13 November. It is one tester's 144 document-injection cases and 96 tool-result cases, not a rerun of the paper's benchmarks, so treat it as a signal.

Correct plumbing works. With instructions and documents passed as separate blocks, document injection dropped from 77.1% to 16% on 3B and from 96.5% to 10.4% on 8B. The model also finished the actual task more often by ignoring the injection.

Wrong plumbing silently disables the defence. A plain content string is treated as a single instruction, so a document passed that way lands inside the instruction block. Injection then succeeded 47.2% of the time on 3B and 52.8% on 8B. If your framework builds one string and calls it a prompt, LLMON buys you nothing.

Some attacks survive. Takeover attempts that demand one specific token string mostly failed, but add-on requests to append a link to the answer succeeded 26.4% of the time on 3B and 19.4% on 8B. The model did the job and then added the attacker's link. If your UI renders links and images, that is enough to leak data.

Language matters. On tool results, English injections succeeded 4.2% (3B) and 10.4% (8B). Japanese injections succeeded 47.9% and 31.2%. The model card lists Japanese as supported; the paper says training data was mostly English, so any non-English team should test before trusting the result.

The tester also found that literal delimiter strings in untrusted text, such as <|open_end|>, become real control tokens. The toolkit ships sanitising constants, but the chat template does not apply them, so neutralise delimiters in anything you did not author.

What this changes for a team

The lesson is not "switch to Granite". These are experimental previews, 3B and 8B only, and IBM says not to use them in production. The lesson is that the instruction/data boundary is an application-level contract, and you can enforce it with the models you already have.

Three things I would do this month.

Audit how your prompt is assembled. If retrieval, tool output and user input are concatenated into one string, you do not have a boundary. Name the parts in your code even if your current model does not consume them yet.

Write your own injection eval. IBM's benchmark puts the attack inside classic NLP tasks; your traffic has your documents, tools and languages. A hundred hand-written cases with a deterministic pass/fail string will tell you more than a vendor chart.

Keep least privilege, approval gates and a token budget. LLMON reduces the chance the model follows an injected instruction, but it does not stop a hijacked agent from calling a tool it is allowed to call. The model card calls the privilege rule a learned behaviour, not an enforced guarantee. The paper reports 7% to 15% longer input, and the tester measured roughly 49 extra tokens per turn.

Checklist

  • Separate instructions, documents, tool results and user input in code before they reach the model.
  • Never pass a mixed document as a single content string and call it safe.
  • Sanitise delimiter and special-token strings in anything you did not author.
  • Run a small injection eval on your own documents and languages.
  • Keep tool permissions, allowlists and human approval in place.
  • Measure the token overhead on your real context sizes.
  • Do not ship an experimental preview to production.

Unverified claims and gaps

  • IBM's comparison against frontier and open-source models (47% and 95%) is a vendor claim. The blog does not document how those models were prompted or whether their own defences were enabled, and the comparison is not in the paper.
  • The independent test covers one machine, one tester, two model sizes and hand-built cases. The Japanese gap and the add-on attack rate need replication.
  • No third-party evaluation on adaptive, multi-turn or non-English attacks was found.
  • Whether the effect holds for larger models or other families is untested by IBM.
  • Pricing, latency and serving support for the previews are not established.

Sources

  1. LLMON: An LLM-Native Markup Language, now in Granite 4.1 3B and 8B. IBM Granite on Hugging Face. 12 November 2026. https://huggingface.co/blog/ibm-granite/llmon-an-llm-native-markup-language-now-in-granite
  2. Post-Training Large Language Models with LLMON. Shbita et al., arXiv:2610.38120. 28 October 2026. https://arxiv.org/abs/2610.38120
  3. LLMON: An LLM-native Markup Language to Leverage Structure and Semantics at the LLM Interface. Hind et al., arXiv:2603.22519. March 2026. https://arxiv.org/abs/2603.22519
  4. granite-4.1-8b-llmon-preview model card. IBM Granite on Hugging Face. 12 November 2026. https://huggingface.co/ibm-granite/granite-4.1-8b-llmon-preview
  5. プロンプトインジェクション対策「LLMON」を Mac で試してみた. takuh, Zenn. 13 November 2026. https://zenn.dev/takuh/articles/b432f984fad711
  6. generative-computing/llmon toolkit. GitHub. Accessed 14 November 2026. https://github.com/generative-computing/llmon
Next essay

Model routing is cheap now. Cache misses still cost you

6 min read