Skip to main content
Mallory
← Back to News
ai-platform-securityai-enabled-threat-activitydata-exfiltration-method

Hidden Instruction Attacks Against AI Assistants and Coding Agents

Emerging Technology Risk · 4 sources · Updated 5mo ago · First seen Mar 17, 2026

Hidden Instruction Attacks Against AI Assistants and Coding Agents

New research shows that AI assistants and coding agents can be manipulated by hidden or misleading instructions embedded in content they process, creating a practical path to social engineering, data leakage, and potentially malicious command execution. LayerX reported that a custom font and CSS-based rendering attack can make a webpage appear harmless in the DOM while showing different instructions to the user in the browser, exploiting the gap between what AI systems analyze and what humans actually see. In its proof of concept, a page that looked like benign fanfiction at the HTML level rendered instructions that could steer a user toward executing a reverse shell, and the company said major AI assistants it tested failed to detect the threat.

Separate research highlighted a related semantic injection risk in software repository README files used by AI coding agents. In testing, attackers embedded malicious setup-style instructions into documentation so agents would exfiltrate local files or other sensitive data to external servers during project setup, with reported success rates of up to 85%. The benchmark, ReadSecBench, used 500 open source repositories across multiple programming languages and found the attack worked across agents using models from Anthropic, OpenAI, and Google, indicating that hidden-instruction attacks are not limited to one interface or vendor but reflect a broader weakness in how AI systems interpret untrusted content and operational guidance.

Why it matters

Impact assessment

Hidden-instruction attacks against AI assistants and coding agents create a practical enterprise risk wherever users rely on AI to assess webpages or execute repository setup guidance. Affected populations include organizations using browser-based AI assistants, developer copilots, and autonomous or semi-autonomous coding agents from vendors including OpenAI, Anthropic, Google, Microsoft, xAI, Perplexity, and others named in testing.

The impact ranges from successful social engineering and false safety assurances to sensitive data leakage and potential user-driven malicious command execution. The web-rendering variant can steer users toward actions leading to reverse shell execution, while the README semantic-injection variant caused local file exfiltration to external servers in up to 85% of tests and about 91% when malicious instructions were placed in linked documentation two hops away.

The exposure is broad rather than vendor-specific because the weakness stems from how AI systems interpret untrusted content, not from a single CVE or browser flaw. The story describes proof-of-concept and benchmarked research rather than confirmed in-the-wild exploitation, but the reported success rates and cross-vendor failures indicate immediate operational relevance.

Affected entities and populations

  • AI web assistants and browser copilots that analyze DOM or raw HTML without full render verification
  • AI coding agents that consume README files and linked documentation during setup
  • Enterprises embedding AI assistants into employee browsing, support, and development workflows
  • Developers handling local source code, configuration files, logs, secrets, or other sensitive workstation data

Severity and business consequences

  • Social engineering risk: assistants may incorrectly declare malicious pages safe
  • Data exposure risk: coding agents may exfiltrate local files to attacker-controlled servers
  • Execution risk: users may be guided into running commands that lead to reverse shell access
  • Trust and governance risk: AI tools can lend false legitimacy to attacker content

Scope and exploitation status

  • Scope is cross-platform and cross-model
  • No CVE or browser exploit is involved; normal rendering and documentation-following behavior is abused
  • No confirmed in-the-wild incidents were cited in the references
  • Research demonstrated high success rates across multiple vendors and model families
New surface, new adversariesTrack how attackers are adapting to this technology.
Track this risk
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

4 events · Dec 1, 2025 – Mar 17, 2026
  1. Mar 17, 20269mo ago

    LayerX publicly reveals poisoned typeface attack details

    On March 17, 2026, LayerX publicly described the 'Poisoned Typeface' technique, explaining how normal browser font rendering can hide malicious instructions from AI assistants that rely on text-only DOM analysis. The disclosure included recommendations such as render-and-diff analysis, hidden-content detection, and font inspection to reduce AI-assisted social engineering risk.

  2. Mar 17, 20269mo ago

    Researchers document README-based semantic injection attack

    Researchers published findings on a semantic injection attack in which malicious instructions hidden in repository README files or linked documentation caused AI coding agents to exfiltrate sensitive local data. Using the 500-file ReadSecBench benchmark, they found the attack succeeded in up to 85% of cases and about 91% when the malicious content was placed two hops away in linked documentation, affecting major model families including Claude, GPT, and Gemini.

  3. Dec 17, 20251y ago

    LayerX discloses font-rendering issue to major AI vendors

    After developing the proof of concept, LayerX reported the font-rendering weakness to major AI vendors under a 90-day disclosure process. According to the report, Microsoft was the only vendor that fully engaged and addressed the issue, while others treated it as out of scope or as social engineering.

  4. Dec 1, 20251y ago

    LayerX tests custom-font attack against AI web assistants

    In December 2025, LayerX conducted a proof of concept showing that custom fonts and CSS could make a webpage appear benign in the DOM while rendering malicious instructions to users. The company found that multiple non-agentic AI assistants, including ChatGPT, Claude, Copilot, Gemini, Grok, and Perplexity, failed to detect the threat and often said the page was safe.

Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
ChatgptCopilot
Do you run this?Follow how adversaries are adapting to this technology, and where it touches your stack today.
Track This Risk
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.