Skip to content
MediumNewsLLM-specific

New font-rendering trick hides malicious commands from AI tools

Published
Record updated
View JSON

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.