Prompt injection in AI-enabled IoT and embedded devices, explained

Last updated:

Key takeaways

  • Against a physical device, yes — and recently.
  • Sanitize or mask the input layer before it reaches the model, not just the model's own prompt.

Prompt injection reaches an AI-enabled IoT or embedded device through whatever it already trusts as input — a camera frame, a microphone, a sensor reading — not just a chat box, and a 2026 academic study showed it working against real robots with nothing more than a printed sheet of paper. OWASP ranks prompt injection as the top risk in its Gen AI Security Project top-10 list; MITRE ATLAS catalogs it as technique AML.T0051 with documented direct and indirect sub-techniques; and NIST's own adversarial machine learning taxonomy treats indirect injection as a distinct, non-trivial attack class with real demonstrated techniques, not a theoretical edge case. For a device maker embedding a vision-language or language model directly in a product, the attack surface is every input channel the device already reads from the physical world.

This guide draws on OWASP's own Gen AI Security Project page, MITRE's own ATLAS data repository, NIST's own AI 100-2e2025 taxonomy PDF, and a peer-reviewed-style arXiv study of physical prompt injection against real vision-language-model-controlled robots — each fetched and read directly for this guide, not paraphrased from a secondary summary.

What makes prompt injection different from a normal AI output error?

Per OWASP's Gen AI Security Project, "a Prompt Injection Vulnerability occurs when user prompts alter the LLM's behavior or output in unintended ways," and the injected content "does not need to be human-visible/readable, as long as the content is parsed by the model." OWASP distinguishes direct prompt injection — a user's own input changes model behavior, intentionally or not — from indirect prompt injection, where the model ingests external content (a webpage, a file, or for an embedded device, a camera frame, an audio clip or a sensor reading) that carries instructions never meant to reach it. OWASP's own guidance flags multimodal systems specifically: attackers can "hide instructions in images that accompany benign text," and cross-modal attacks are, in OWASP's words, "difficult to detect and mitigate with current techniques" — a direct description of the attack surface a camera- or microphone-equipped embedded AI device exposes by design.

MITRE's ATLAS data repository catalogs the same failure mode as technique AML.T0051, LLM Prompt Injection: adversaries "craft malicious prompts to cause LLMs to act in unintended ways by ignoring original instructions and following adversary commands instead," with effects that "can serve as initial access vectors, bypass defenses, or enable privilege escalation" and can "persist throughout interactive sessions." ATLAS splits the technique into AML.T0051.000 (Direct) and AML.T0051.001 (Indirect) — the same two-way split OWASP uses, confirming this is a recognized, cross-framework attack category rather than one vendor's naming choice.

Has this actually been demonstrated against a physical device, or only against chatbots?

Against a physical device, yes — and recently. "Hijacking Robots with a Piece of Paper: A Systematic Study of Physical Prompt Injection in VLM-Controlled Robots" (Samarakoon, Muthugala, Sachinthana and Elara, arXiv:2608.05715, submitted 6 August 2026) tested three frontier vision-language models — GPT-4o, Gemini 2.5 Flash and Qwen3-VL-32B — each controlling a robot performing a sorting task across three physical scene layouts. The injection vector was, in the paper's own words, "adversarial text placed within the robot's visual field": printed signage that the robot's camera captures and the model reasons over as part of the scene, exactly the way it would reason over a legitimate object label.

Model Attack success rate (of 5,670 trials)
GPT-4o 27.0%
Gemini 2.5 Flash 29.4%
Qwen3-VL-32B 5.0%

The researchers also found that "successful compromise is nearly always conscious" — a 99.9% acknowledgment rate, meaning the model itself registered that it was following an injected instruction rather than silently misbehaving. They tested three mitigations with meaningfully different results: prompt-based defenses (75–100% effective), two-stage verification (85–100% effective), and text masking of the camera feed before it reaches the model (100% effective in their test setup) — a concrete signal that input sanitization at the sensor layer, not just better prompting, is where real mitigation leverage sits for this attack class.

What attacker techniques does NIST's own taxonomy document for indirect injection?

NIST AI 100-2e2025 ("Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations," March 2025) devotes Section 3.4 specifically to indirect prompt injection and names concrete techniques beyond a single malicious instruction:

  • Execution triggers — prompt fragments generated via optimization (the report cites the Neural Exec technique) that "can also persist through RAG processing pipelines that include multiple phases, such as chunking and contextual filtering" — relevant to any embedded system that pre-processes sensor or camera input before handing it to a model.
  • Knowledge-base poisoning — the report describes frameworks where "a single poisoned document can be crafted and inserted" into a retrieval system to induce a chosen downstream output, directly applicable to any device that augments its model with a local or cloud knowledge store.
  • Self-propagating injections — the report draws an explicit worm analogy: a compromised AI system can be instructed to re-inject the same malicious prompt into further content it generates or forwards, spreading the compromise to other systems or users without further attacker action.

On defense, NIST's own report is notably candid about current limits: because "current mitigations do not offer full protection against all attacker techniques," the report recommends designing systems "under the assumption that models with access to sensitive data or the ability to take undesirable actions may leak that data or take those actions" — containment by system design, not a claim that any single model-level fix closes the gap.

A workable starting point

  1. Map every input channel your embedded AI model reads from the physical world— camera, microphone, radio/sensor feed, Bluetooth pairing data, QR codes — and treat each one as an untrusted, potentially attacker-controlled prompt channel, the same way NIST and OWASP treat a retrieved document or webpage.
  2. Sanitize or mask the input layer before it reaches the model, not just the model's own prompt. The physical-robot study above found text masking of the camera feed was the single most effective of the three tested mitigations (100% in their trials), ahead of prompting the model to be suspicious of embedded text.
  3. Design for "the model will eventually be tricked," not "if."Following NIST's own framing, assume an embedded assistant with real-world actuation (a robot arm, a lock, a valve) will at some point receive and act on an injected instruction, and scope what that action can physically do accordingly — least-privilege actuation, not just least-privilege data access.

This is the same risk category the OWASP Top 10 for LLM Applications ranks first for conventional chatbot and agent deployments — the difference for an embedded or IoT device is only the channel the injected instruction arrives through. SoftWSP's device and firmware assessments can factor in an embedded vision-language model's camera, microphone or sensor input channels alongside conventional firmware risk: see Device & Firmware Security.

This guide summarizes OWASP's own Gen AI Security Project page, MITRE's own ATLAS data repository, NIST's own AI 100-2e2025 taxonomy, and the arXiv physical-prompt-injection robotics study cited above, each fetched directly for this guide on 5 November 2026. It is not a substitute for the current OWASP, MITRE or NIST publications or the cited paper itself, and does not constitute security advice.

Sources

  1. OWASP Gen AI Security Project: LLM01:2025 Prompt Injection (direct/indirect injection, multimodal injection risk, mitigations)
  2. MITRE ATLAS Data (GitHub repository, mitre-atlas/atlas-data) — AML.T0051 LLM Prompt Injection, with AML.T0051.000 Direct and AML.T0051.001 Indirect sub-techniques
  3. NIST AI 100-2e2025: Adversarial Machine Learning — A Taxonomy and Terminology of Attacks and Mitigations (March 2025), Section 3.4 Indirect Prompt Injection Attacks and Mitigations (PDF)
  4. Samarakoon, Muthugala, Sachinthana, Elara: "Hijacking Robots with a Piece of Paper: A Systematic Study of Physical Prompt Injection in VLM-Controlled Robots" (arXiv:2608.05715, 6 August 2026)

Frequently asked questions

What is prompt injection, and how is it different from a normal AI mistake?

Per OWASP's Gen AI Security Project, "a Prompt Injection Vulnerability occurs when user prompts alter the LLM's behavior or output in unintended ways," and critically, the input "does not need to be human-visible/readable, as long as the content is parsed by the model." OWASP splits it into two forms: direct prompt injection, where a user's own input directly changes the model's behavior, and indirect prompt injection, where the model ingests content from an external source — a webpage, a file, or (for an embedded device) a camera frame, an audio clip or a sensor reading — that carries instructions the model was never meant to follow. That is a structurally different failure than a model simply giving a wrong answer: the model is doing exactly what the injected instruction told it to do, correctly, just not on behalf of the device's legitimate owner.

How does MITRE ATLAS classify this, and why does the classification matter for a physical device?

MITRE's own ATLAS data repository lists LLM Prompt Injection as technique AML.T0051, defined as adversaries crafting "malicious prompts to cause LLMs to act in unintended ways by ignoring original instructions and following adversary commands instead," with the note that "these injections can serve as initial access vectors, bypass defenses, or enable privilege escalation" and that effects can "persist throughout interactive sessions." ATLAS splits the technique into two documented sub-techniques: AML.T0051.000 (Direct), where an adversary injects prompts directly as a user, and AML.T0051.001 (Indirect), where prompts arrive through a separate data channel the LLM ingests — ATLAS names databases and websites as examples, and for an embedded device that channel is just as often a camera, microphone or wireless sensor link. The classification matters because it tells a device maker which mitigation class applies: an indirect-injection vector is a data-provenance problem (what is this device willing to trust as input?), not an input-validation problem a developer can patch with a simple filter.

Has physical, indirect prompt injection against a real embedded AI system actually been demonstrated?

Yes. "Hijacking Robots with a Piece of Paper: A Systematic Study of Physical Prompt Injection in VLM-Controlled Robots" (Samarakoon, Muthugala, Sachinthana and Elara, arXiv:2608.05715, submitted 6 August 2026) tested three frontier vision-language models — GPT-4o, Gemini 2.5 Flash and Qwen3-VL-32B — controlling a robotic sorting task, where the injection was "adversarial text placed within the robot's visual field": printed signage the robot's camera reads and the VLM treats as part of the scene it must reason about. Across 5,670 trials, attack success rates were 27.0% for GPT-4o, 29.4% for Gemini 2.5 Flash and 5.0% for Qwen3-VL-32B, and the researchers found that "successful compromise is nearly always conscious" — a 99.9% acknowledgment rate, meaning the model registered that it was following an injected instruction rather than silently malfunctioning. No camera hack, radio exploit or firmware vulnerability was needed; a sheet of paper in the camera's field of view was the entire attack surface.

What does NIST's own adversarial ML taxonomy say about defending against indirect prompt injection?

NIST AI 100-2e2025 ("Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations," March 2025) devotes a full section to indirect prompt injection and documents concrete attacker techniques beyond a single bad instruction: "execution triggers" generated via optimization that "can also persist through RAG processing pipelines that include multiple phases, such as chunking and contextual filtering"; knowledge-base poisoning, where "a single poisoned document can be crafted and inserted" to induce arbitrary downstream behavior; and self-propagating injections the report explicitly compares to computer worms, where a compromised AI system is instructed to re-inject the same malicious prompt into further messages or resources it generates. On mitigation, the same report is candid about the limits of current defenses, stating that organizations "may design AI systems under the assumption that models with access to sensitive data or the ability to take undesirable actions may leak that data or take those actions" — treating successful injection as a when-not-if event that system design, not model behavior alone, has to contain.

In this cluster