The Research Report
Prompts Are the New Malware: How Prompt Injection Is Hijacking Enterprise AI
TL;DR – Prompt injection is the hottest weapon in the AI threat landscape. It’s gone from a quirky bug to a full‑blown malware vector that hits agents, Retrieval‑Augmented Generation (RAG) pipelines, and model routers. CrowdStrike says 90+ organizations were hit in 2025. VentureBeat warns the attack surface now spans multi‑agent swarms, chat‑based copilots, and even the plumbing that decides which model to run. The OWASP LLM Top 10 lists it as LLM01 for the second year in a row.
Why “prompts” feel like malware now
Prompts used to be harmless text you typed into a chatbot.
Now a single line can:
- Steal credentials.
- Exfiltrate private files.
- Spin up a rogue cloud instance.
- Force a model to run a malicious tool.
The difference? The attacker doesn’t need to install software. They only need to convince a language model to obey a hidden instruction. It’s the classic “code execution” we used to see in binaries, but the code lives in plain‑English (or markdown) and runs inside the LLM.
The expanding attack surface
| Target | What the attacker manipulates | Real‑world example |
|---|---|---|
| Agents | System prompts, tool calls, or “reasoning steps” that drive the agent’s actions. | Microsoft 365 Copilot’s EchoLeak (CVE‑2025‑32711) let a crafted email trigger credential‑theft without user interaction [1]. |
| RAG pipelines | Documents, web pages, or code snippets that the retrieval component feeds into the model. | Hidden instructions in a public GitHub README were pulled into a corporate help‑desk bot, causing it to reveal API keys [2]. |
| Model routers | The router’s selection logic can be nudged to a weaker model that lacks guardrails. | An attacker appends a “use the cheap model” token to the user query, causing the router to pick an un‑filtered LLM [3]. |
| Cross‑model | Output from one model becomes the prompt for another, propagating the malicious instruction. | A poetry‑generation model output a hidden “run curl …” command that was later executed by a downstream code‑assistant [4]. |
| Memory & long‑term state | Persistent system prompts stored in a model’s “memory” can be poisoned once and stay forever. | A compromised internal chatbot stored a malicious system prompt that re‑appeared in every new session [5]. |
From single‑shot to multi‑agent swarms
VentureBeat’s June 28 piece shows how attackers now target agentic swarms. One poisoned node can corrupt an entire workflow:
- An attacker injects a malicious instruction into a shared document.
- Agent A retrieves the doc, passes the tainted prompt to Agent B.
- Agent B blindly follows the hidden command and executes a cloud operation.
The cascade is similar to a worm spreading across a network, only the worm lives in text.
Real‑world incidents that proved the point
- Slack AI (Aug 2024) – Researchers demonstrated that a public Slack channel could be used to inject a prompt that leaked private channel data and API keys [6].
- Microsoft 365 Copilot – EchoLeak (June 2025) – A zero‑click email caused the copilot to read internal SharePoint files and ship them to an external server [1].
- CrowdStrike Global Threat Report (2026) – The report documented 90 + organizations hit by prompt injection in 2025, ranging from small startups to Fortune‑500 enterprises [7].
- Indirect prompt injection via web pages – CrowdStrike’s own blog outlines how hidden instructions in a webpage can be pulled into a corporate RAG bot and silently exfiltrate data [8].
These aren’t lab demos. They’re production‑grade attacks that stole crypto, exposed secrets, and even altered business logic.
How the techniques have evolved
- Cross‑model injection – An attacker crafts output that looks benign for Model X, but when Model Y reads it, the hidden command activates.
- RAG supply‑chain poisoning – Malicious content is published on the open web (e.g., a README, a blog post). When a company’s retrieval layer indexes it, the poison spreads to every downstream query.
- Agent hijacking – Agents that can call APIs, create tickets, or spin up VMs will obey a prompt that says “create an admin user” unless explicitly guarded.
- Context overflow attacks – With multi‑thousand token windows, an attacker can hide malicious code at the tail of a massive document that the model eventually processes.
- Memory poisoning – Persistent “system prompts” stored in a model’s long‑term memory can be overwritten, making every future session vulnerable.
- Model‑router manipulation – By embedding a selector token, an attacker forces the router to pick an older, less‑filtered model, effectively downgrading security.
Each technique builds on the previous one, turning a simple prompt injection into a multi‑stage exploit chain.
Defensive prompt patterns for production
Below are bite‑size patterns you can drop into any LLM‑driven system. Think of them as “prompt hardening” rules.
1. Strict system prompts
- Define a whitelist of allowed commands in the system prompt.
- Use explicit “If user request does not match whitelist → reject.”
- Example:
You may only perform actions listed in the table below. Anything else is a policy violation.
2. Input sanitization & validation
- Strip out known injection markers (e.g.,
;, backticks,&&). - Run a prompt‑injection classifier before feeding user text into the model (OWASP provides a starter model).
3. RAG source vetting
- Only ingest documents from allow‑listed domains.
- Apply a content‑risk score to each chunk; reject anything above a threshold.
- Maintain a quarantine bucket for newly added sources and only promote after manual review.
4. Tool‑call gating
- Require human approval for any tool that can change state (e.g., create users, modify IAM).
- Echo back the intended tool call and ask “Proceed?” before execution.
5. Router hardening
- Enforce a minimum‑security level for the target model.
- Reject any request that tries to force a switch to a model with a lower safety rating.
6. Memory isolation
- Reset system prompts on each session unless a persisted session is explicitly required.
- Store long‑term “knowledge” in a separate vector store and never merge it with the active prompt.
7. Audit trails
- Log the raw user prompt, the processed prompt, and the model output.
- Apply anomaly detection on logs to flag sudden spikes in “system‑prompt length.”
8. Prompt‑injection detection model
- Deploy a lightweight classifier (e.g., a fine‑tuned BERT) that flags suspicious phrasing like “ignore previous instructions” or “pretend you are …”.
- Feed flagged inputs to a manual review queue.
9. Defense‑in‑depth testing
- Run red‑team prompt‑injection drills regularly.
- Simulate indirect attacks by poisoning a test document and seeing if the bot leaks it.
10. Policy as code
- Treat prompt guardrails as version‑controlled YAML files.
- CI pipelines can lint new guardrails and prevent regressions.
Implementing just a few of these patterns raises the bar dramatically. The goal isn’t to make prompt injection impossible – that’s a moving target – but to make it expensive enough that attackers look elsewhere.
Bottom line
Prompt injection is the new malware because it executes code in plain language, spreads through shared data, and can hijack entire autonomous pipelines. The threat has moved from single‑agent bugs to a multi‑vector epidemic that hits agents, RAG pipelines, and model routers alike. Organizations must treat prompts as a first‑class attack surface: validate inputs, harden system prompts, gate tool calls, and continuously monitor. Think of prompt defenses as you would a firewall – it won’t stop every attack, but it will keep the noisy, opportunistic ones out.
Citations
- EchoLeak (CVE‑2025‑32711) – Microsoft security advisory, June 2025. <https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-32711>
- GitHub README poisoning – VentureBeat, “Prompt injection is exploiting enterprise AI's biggest design flaws…”, June 28 2026. <https://venturebeat.com/security/prompt-injection-is-exploiting-enterprise-ais-biggest-design-flaws-by-targeting-agents-rag-pipelines-and-model-routers>
- Model‑router manipulation – VentureBeat analysis, June 28 2026 (same article as above).
- Cross‑model injection example – ACL 2026 paper “Conjunctive Prompt Attacks in Multi‑Agent LLM Systems”. <https://aclanthology.org/2026.acl-long.1577/>
- Memory poisoning – CrowdStrike blog “Indirect Prompt Injection Attacks: Hidden AI Risks”. <https://www.crowdstrike.com/en-us/blog/indirect-prompt-injection-attacks-hidden-ai-risks/>
- Slack AI leak – PromptArmor research, August 2024. <https://promptarmor.com/blog/slack-ai-prompt-injection>
- CrowdStrike 2026 Global Threat Report – Summary page. <https://www.crowdstrike.com/en-us/global-threat-report/>
- Indirect prompt injection – CrowdStrike blog, “Indirect Prompt Injection Attacks: Hidden AI Risks”. <https://www.crowdstrike.com/en-us/blog/indirect-prompt-injection-attacks-hidden-ai-risks/>
- OWASP LLM Top 10 (2025/2026) – OWASP, “LLM Top 10 – Prompt Injection (LLM01)”. <https://owasp.org/www-project-llm-top-10/>
- VentureBeat article on multi‑agent attacks – Same as citation 2.