As large language models (LLMs) become embedded in military, intelligence, and national security workflows, a class of vulnerability with no clear parallel in traditional cybersecurity has emerged as a central concern. Prompt injection -- the manipulation of AI systems through crafted inputs that override their intended instructions -- was ranked the number-one risk in the Open Worldwide Application Security Project's (OWASP) 2025 Top 10 for LLM Applications and Generative AI, appearing in over 73 percent of production AI deployments assessed during security audits. Unlike conventional software vulnerabilities, prompt injection exploits a fundamental architectural characteristic of how language models process information: they cannot reliably distinguish between instructions from their operators and data supplied by external sources. This makes the problem not merely a bug to be patched, but a structural condition inherent to the technology itself -- one with profound implications for counterintelligence and national security.
To understand why prompt injection represents a qualitatively different kind of threat, it is necessary to understand how large language models function at a basic level. An LLM does not "understand" text in the way a human reader does. It operates by predicting the most probable token -- essentially the word or word-fragment -- in a sequence. When an LLM receives a prompt, it treats every token in its input as part of a continuous stream. There is no internal mechanism that enforces a boundary between the system's own instructions (what the developer or operator told the model to do) and the data the model is asked to process (a document, a webpage, an email, a user query). Everything is simply text, fed into the same prediction engine.
This is the core of the problem. In traditional computing, the distinction between code and data is a well-established principle. SQL injection attacks, which plagued web applications for years, exploited failures to enforce this distinction in database queries. But SQL injection was ultimately tamed because developers could draw a firm line between commands and untrusted input, then enforce that line with parameterized queries, libraries, and frameworks. With LLMs, that line does not exist inside the model. Every token is fair game for interpretation as an instruction. The United Kingdom's National Cyber Security Centre (NCSC), a component of GCHQ, issued a formal assessment in December 2025 warning that prompt injection may never be fully mitigated in the way SQL injection was. David C, the NCSC's technical director for platforms research, characterized LLMs as "inherently confusable deputies" -- systems that can be coerced into performing actions that benefit an attacker because there is no robust internal separation between trusted instructions and untrusted content.
The NCSC assessment drew a sharp distinction between prompt injection and SQL injection that it described as "dangerous" to conflate. Where SQL injection is a well-understood vulnerability class with deterministic defenses, prompt injection is a probabilistic problem operating at the semantic layer rather than the syntactic layer. Security professionals who approach prompt injection with the mental model of SQL injection risk underestimating its severity and deploying inadequate mitigations. The NCSC warned that if generative AI is embedded into applications without prompt injection designed in from the start, a wave of data breaches comparable to the SQL injection era of the early 2000s -- and potentially exceeding it in scale -- could follow.
Prompt injection takes two principal forms. In direct prompt injection, the attacker interacts directly with the AI system through its user interface, crafting inputs designed to override the system's instructions. A simple example would be a user telling a chatbot to "ignore all instructions" and perform some unauthorized action. More sophisticated variants employ encoding tricks, role-playing scenarios, multi-turn conversational manipulation, or gradual boundary erosion across extended interactions. Direct prompt injection is significant but relatively constrained, because the attacker must have access to the system's input interface.
Indirect prompt injection is considerably more dangerous and more relevant to counterintelligence. In this variant, the attacker does not interact with the AI system at all. Instead, malicious instructions are embedded in external content that the AI system is likely to process -- a webpage, a PDF document, an email, a shared file, a database entry, or any other data source that the AI retrieves during its operation. The instructions can be hidden using techniques such as white text on a white background, non-printing Unicode characters, content in HTML , or text embedded in images. When the AI system retrieves and processes this content, it may follow the injected instructions rather than its operator's original directives. The user may never see the malicious content, and the AI system may appear to function normally while executing the attacker's commands in the background.
The concept of indirect prompt injection was formally defined in a February 2023 paper by Kai Greshake, Sahar Abdelnabi, and colleagues at CISPA Helmholtz Center for Information Security. Their research demonstrated that LLM-integrated applications blur the line between data and instructions, and that adversaries could remotely exploit such applications by injecting prompts into data likely to be retrieved at inference time. The paper showed that processing retrieved prompts could function as the equivalent of arbitrary code execution in traditional computing -- enabling data theft, persistent compromise across sessions, denial of service, and what the researchers termed "information ecosystem contamination." Their demonstrations against real-world systems, including Bing Chat and code-completion engines, established that these were not theoretical concerns but practical attack vectors.
Since that foundational work, the attack surface has expanded dramatically. Researchers have demonstrated prompt injection attacks that steal user credentials through AI browsers, exfiltrate data via hidden image requests, manipulate AI-assisted code reviews, and compromise AI agents performing multi-step tasks. By 2025, CrowdStrike reported tracking over 150 distinct prompt injection techniques and had analyzed more than 300,000 adversarial prompts, maintaining what it described as the most comprehensive taxonomy for this class of threat. The rise of "agentic AI" -- systems that can autonomously browse the web, execute code, send emails, and interact with other applications -- has further amplified the risk. A prompt injection against a chatbot that can only generate text is concerning; a prompt injection against an AI agent with access to email, calendars, file systems, and APIs has the potential to cause real-world harm at scale.
A further dimension of the threat became apparent as researchers demonstrated that prompt injection could be combined with traditional cybersecurity exploits to create hybrid attacks that evade both conventional security controls and AI-specific defenses. Research published in early 2026 documented how prompt injection could deliver cross-site scripting (XSS) payloads through AI-generated content, bypassing web application firewalls that were not designed to inspect AI outputs. In these scenarios, an attacker crafts a prompt containing a Base64-encoded XSS payload; the AI system processes the prompt as a legitimate content request and generates output containing embedded JavaScript; the web application renders the AI output without adequate XSS validation; and the malicious script executes in the user's browser, extracting authentication tokens and session data.
Similarly, cross-site request forgery (CSRF) attacks gain enhanced capabilities when combined with AI agent manipulation, particularly in environments where agents operate with elevated privileges. Traditional CSRF attacks are limited to triggering predefined browser requests, but AI agents can interpret and execute complex multi-step instructions, amplifying the potential damage. These compound attack vectors represent a qualitative shift in the threat landscape. They are not merely prompt injection or merely traditional web exploits -- they are novel combinations that neither traditional cybersecurity tools nor AI-specific defenses are designed to address in isolation.
From a counterintelligence perspective, prompt injection represents a new form of an old problem: the subversion of trusted systems by adversaries. Current and former military officers have publicly warned that adversaries are likely to exploit prompt injection to steal files, distort analysis, and manipulate decision-making. Liav Caspi, a former member of the Israel Defense Forces cyberwarfare unit, described the fundamental dynamic in counterintelligence terms: a successful prompt injection means that "an enemy has been able to turn somebody from the inside to do what they want" -- deleting records, biasing decisions, or exfiltrating data. Steve Wilson, chief AI officer at Exabeam, argued that defending AI agents is less like securing traditional software and "far more like defending the humans inside an organization," because agents, like people, are "messy, adaptive, and prone to being manipulated, coerced or confused." This makes prompt injection more analogous to an insider threat than to a conventional application vulnerability.
The analogy to insider threats is instructive. A successfully compromised AI system becomes, in effect, a trusted agent working for the adversary within the target organization's own infrastructure. It has the same access privileges as the legitimate user or system it serves. It processes the same sensitive information. And because its compromise operates at the semantic level rather than through detectable malware or unauthorized network access, traditional intrusion detection systems are unlikely to flag its behavior as anomalous. The compromised AI looks like a functioning AI; it simply produces subtly different outputs or takes subtly different actions than intended.
Several specific scenarios illustrate the counterintelligence implications. In intelligence analysis, AI systems increasingly assist analysts in processing large volumes of open-source intelligence, intercepted communications, satellite imagery descriptions, and other data. If an adversary can inject prompts into the data being processed -- through a poisoned webpage, a manipulated document, a crafted social media post, or an email containing hidden instructions -- it could skew the AI's analytical outputs. The AI might downplay the significance of certain indicators, emphasize misleading information, or fail to flag critical threats. This is a modern variant of deception and denial operations, exploiting the AI as the conduit for introducing disinformation into the analytical pipeline.
In federated military AI environments, where coalition partners AI models without sharing raw data, the risks are compounded. Research published in January 2025 by a team at the Korea Advanced Institute of Science and Technology (KAIST) identified four distinct attack scenarios against federated military LLMs: secret data extraction, where adversaries probe shared models to extract classified information through targeted prompts; free-rider exploitation, where participants gain military intelligence while withholding their own data contributions; system disruption, where crafted prompts create tactical blind spots in the shared model's analysis; and misinformation propagation, where false information is systematically injected through dual-channel attacks. In each case, a single prompt injection can propagate its effects throughout the federated system, potentially compromising the analytical integrity of multiple allied nations simultaneously.
These concerns acquired immediate practical urgency in December 2025, when the Department of War launched GenAI.mil, a platform deploying Google Cloud's Gemini for Government to the desktops of approximately three million military personnel, civilian employees, and contractors. The platform was authorized to handle sensitive but unclassified data at Impact Level 5 (IL5), including Controlled Unclassified Information (CUI). Defense Secretary Pete Hegseth mandated its use across the department, with Under Secretary of War for Research and Engineering Emil Michael announcing plans to extend AI capabilities to classified environments as well.
The rollout was rapid by any institutional standard. Service members reported receiving the platform on their desktops with minimal advance notice, limited training, and few published guidelines beyond prohibitions on uploading personal data. Five of six military branches formally adopted GenAI.mil as their enterprise AI platform within two months of launch. Multiple security experts raised concerns. Neal Bridges, chief information security officer at Query.ai, warned that if personnel began treating AI-generated text as authoritative rather than as a first draft, the consequences could include operational errors, legal missteps, and subtle security failures. Other experts noted the risks of data leakage, adversarial data poisoning, and the lack of rigorous evaluation processes before the department-wide mandate took effect.
The prompt injection implications of deploying commercial LLMs at this scale within a national security organization are substantial. GenAI.mil personnel use the platform to summarize policy handbooks, generate compliance checklists, extract terms from contracts, draft communications, and analyze documents. Each of these functions involves the AI processing external content -- content that, in a large and complex organization, may originate from sources of varying trustworthiness. A poisoned document in a shared repository, a manipulated webpage retrieved through the platform's web-grounding capability, or a crafted email forwarded for AI-assisted analysis could all serve as vectors for indirect prompt injection. The platform's web grounding against Google , while intended to reduce hallucinations, simultaneously expands the attack surface by connecting the AI to the open internet -- precisely the environment where adversary-controlled content is most readily deployed.
The department's multi-vendor strategy, which includes contracts with Google, OpenAI, Anthropic, and xAI, introduces additional complexity. Each model has different susceptibilities to different injection techniques, and defenses that work against one model may not transfer to another. As additional models are integrated into GenAI.mil, the overall attack surface grows, and the burden of security testing multiplies.
The defensive picture is sobering. No single technique or product can eliminate prompt injection, and the most authoritative assessments -- from the NCSC, OWASP, Microsoft, OpenAI, and Anthropic -- converge on this point. OpenAI, in a November 2025 assessment, characterized prompt injection as "a type of social engineering attack specific to conversational AI" and acknowledged that it is "unlikely to ever be fully solved." Microsoft described indirect prompt injection as "an inherent risk that arises from the probabilistic language modelling, stochastic generation, and linguistic flexibility of modern LLMs." Anthropic and Google have similarly emphasized that defenses must be layered and continuously updated.
The defensive approaches currently available fall into several categories, none of which is sufficient alone. Input filtering and validation can catch some known injection patterns but cannot address the effectively infinite variations of natural-language instructions that an attacker might craft. Output monitoring can detect anomalous behavior after the fact but cannot prevent the initial compromise. Privilege separation -- limiting the actions an AI system can take and the data it can access -- reduces the blast radius of a successful injection but does not prevent the injection itself. Hardened system prompts can increase the difficulty of overriding instructions but are not a reliable boundary, because the model's response to any given prompt is probabilistic rather than deterministic. Human-in-the-loop confirmation for sensitive actions provides a final safeguard but degrades the speed and automation advantages that motivate AI adoption in the first place.
Microsoft has invested in several specific techniques, including "Spotlighting," which attempts to isolate untrusted inputs through special formatting; Prompt Shields, a detection tool integrated with its Defender for Cloud platform; and deterministic blocking of known data exfiltration methods such as URL-based image rendering that could transmit data to attacker-controlled servers. OpenAI has developed an LLM-based automated red-teaming system that uses reinforcement learning to continuously discover new injection techniques against its own models, leveraging its white-box access to model internals -- an approach that external attackers cannot replicate. These represent genuine advances, but their developers are the first to acknowledge that they raise the bar for attackers without eliminating the underlying vulnerability.
The fundamental challenge is that any defense that operates within the LLM itself is probabilistic. A defense that works 99 percent of the time still fails one percent of the time, and a determined adversary with the resources of a nation-state intelligence service can iterate until that one percent is found. As the NCSC assessed, deterministic defenses are preferable for the hard guarantees they provide, but when dealing with inherently probabilistic systems, deterministic defenses may not be achievable in all cases.
The threat continues to evolve as AI systems grow more capable. Multimodal models, which process text, images, audio, and video simultaneously, introduce new injection surfaces. Malicious instructions can be hidden in images accompanying benign text, embedded in audio tracks, or encoded in video metadata. Cross-modal attacks -- where an instruction delivered through one modality manipulates the model's behavior in another -- represent a largely unexplored frontier that existing defenses are not designed to address.
Agentic AI systems, which autonomously perform multi-step tasks by interacting with tools, APIs, and other AI agents, represent the most alarming expansion of the attack surface. When an AI agent can browse the web, send emails, modify files, execute code, and make API calls, a successful prompt injection can trigger cascading real-world consequences. The agent's autonomy amplifies the attacker's reach: a single injected instruction can set off a chain of actions that would otherwise require sustained human effort to execute. The Model Context Protocol (MCP), an emerging standard for connecting AI agents to external tools and data sources, introduces additional risk when the data it exposes originates from untrusted sources. Researchers have demonstrated that poisoned tool descriptions, resource listings, and configuration files can influence agent behavior at the protocol boundary, before any application-level defenses have an opportunity to intervene.
A particularly concerning development was the demonstration of persistent compromise, in which an injected prompt causes the AI system to store part of the attack payload in its long-term memory or note-taking function. When the AI later reads from this memory, it re-poisons itself -- achieving persistence across sessions without any further action by the attacker. This transforms a single successful injection into an ongoing compromise that survives system resets, closely paralleling the behavior of persistent malware or a recruited human agent who continues to operate for the adversary over an extended period.
The counterintelligence community faces several imperatives in response to this emerging threat. The first is recognition that prompt injection is not merely a cybersecurity problem but a counterintelligence problem. An adversary that can manipulate an AI system processing intelligence data has achieved, through technical means, something functionally equivalent to recruiting an asset within the analytical chain. The corrupted AI does not need to be bribed, coerced, or ideologically motivated; it simply needs to encounter the right sequence of tokens in its input stream.
The second imperative is to treat AI outputs with the same source-evaluation rigor applied to human-source intelligence. An AI-generated summary, assessment, or recommendation should not be treated as authoritative merely because it comes from a sophisticated system. The AI's analytical outputs are only as trustworthy as the data it processes and the integrity of its instructions -- both of which are vulnerable to manipulation. Organizations should implement verification protocols that cross-check AI-generated analysis against independent sources, particularly for assessments that inform operational decisions.
The third imperative is to design AI-integrated workflows with the assumption that compromise is possible. This means applying the principle of least privilege rigorously: AI systems should have access only to the minimum data and capabilities necessary for their assigned tasks. Actions with significant consequences -- sending communications, modifying records, authorizing transactions, altering analytical databases -- should require human confirmation. Logging and auditing of AI interactions should be comprehensive, enabling anomaly detection and forensic investigation when compromise is suspected.
The fourth imperative is to anticipate adversary adaptation. Nation-state intelligence services with sophisticated cyber capabilities -- including those of China, Russia, North Korea, and Iran -- can be expected to develop prompt injection techniques tailored to specific target systems. The Virginia National Guard conducted a simulation exercise in September 2025 in which an AI-powered offensive system was pitted against human defenders protecting critical infrastructure networks. The human defenders were "absolutely defeated," even when they could observe the AI's actions in real time, because the speed and adaptability of AI-driven attacks exceeded human response capabilities. As AI is deployed on both sides of the intelligence competition, the race between offensive injection techniques and defensive countermeasures is likely to intensify.
Finally, the counterintelligence community should prepare for the possibility that prompt injection will be used not only against military and intelligence AI systems, but as a tool for influence operations against the broader information ecosystem. An adversary that can manipulate AI-powered engines, news summarization tools, or content recommendation systems through indirect prompt injection has a scalable mechanism for shaping public perceptions, amplifying disinformation, and eroding trust in information sources. The Greshake research team identified "information ecosystem contamination" as a potential impact of indirect prompt injection in 2023; as AI intermediation of information consumption grows, this risk scales accordingly.
Prompt injection is not a temporary problem awaiting a technical fix. It is a structural feature of how current AI systems work, and managing it will require sustained effort at the intersection of cybersecurity, counterintelligence, and institutional design. The organizations that approach it with appropriate seriousness -- treating AI as an inherently exploitable intermediary rather than a trusted oracle -- will be better positioned to capture the genuine benefits of AI while managing its novel risks. Those that do not may find that their most sophisticated analytical tools have become, in effect, the adversary's most productive agents.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
