New font-rendering trick hides malicious commands from AI tools
- Published
- Record updated
Summary
LayerX researchers demonstrated a font-rendering attack that hides a malicious command from AI assistants while displaying it to users. Custom fonts remap characters via glyph substitution and CSS conceals benign text, so assistants analyze only the harmless HTML. As of December 2025 the technique worked against several popular assistants, including ChatGPT, Claude, Copilot and Gemini.
Mitigation
The source reports that Microsoft fully addressed the issue after being contacted, while Google downgraded and closed its report. LayerX recommends that LLM vendors treat fonts as a potential attack surface, extend parsers to scan for foreground/background color matches, near-zero opacity and smaller fonts, and compare the rendered page with the text-only DOM.
Related items
- InfoAnthropic cryptography disclosure draws backlash after RSA panicSame vendor, BleepingComputer
- MediumGoogle and Anthropic AI Found an 18-Year-Old UEFI Flaw That Can Bypass Secure BootSame vendor, The Hacker News
- InfoOpenAI and AWS expand partnership at re:InventSame vendor, OpenAI Blog
- InfoGoogle lets users opt out of AI training on Search activity without disabling Search historySame vendor, BleepingComputer
- InfoQuoting Josh DunstervilleSame vendor, Simon Willison's Weblog