M365Con 2027 – free online conference · 11–22 Jan 2027 · 120 sessions m365con.net

Prompt injection

Concept

An attack in which hidden or malicious instructions in a document, web page or email trick an AI system into ignoring its rules or leaking data. Defences include limiting permissions, filtering inputs and requiring human approval for sensitive actions.

✦ CONCEPTPrompt injectionM365.FM
Title graphic: Prompt injection (Concept)

Relationships

Prompt injection is closely related to AI agent and Prompt.

Description

Prompt injection is an attack in which hidden or malicious instructions placed in a document, web page or email trick an AI system into ignoring its rules or leaking data. It belongs to the broader field of generative AI security, because the attack targets how language models treat text. An injected instruction is, in the end, just text that the model processes like any other prompt, which is why the technique is difficult to separate cleanly from legitimate content.

The attack is most discussed in its indirect form. Instead of a user typing a harmful request directly, the malicious instruction is embedded in content the AI system later retrieves, such as trusted documents, emails, SharePoint content, Teams conversations or knowledge bases. The episode "Indirect Prompt Injection Security for Enterprise AI" describes how every piece of retrieved content becomes part of the model's context, so hidden commands, poisoned documents, metadata and embedded instructions can influence AI behavior without the attacker ever interacting with the system directly. The episode argues that many organizations see hallucinations as the biggest enterprise AI risk, while this less visible threat is among the most dangerous.

The underlying problem is architectural. The episode "Stop Microsoft Copilot Prompt Injection with Azure Logic Apps" says the core issue is not weak prompts or missing filters but the way AI models process information. Systems such as Microsoft Copilot retrieve data from multiple sources, and the model cannot reliably separate data from instructions. For that reason the episode treats prompt injection as a design and workflow question rather than something a single filter can fully solve, and it discusses using Azure Logic Apps for security workflows, including advice to use prewarmed instances and monitor performance so these workflows stay responsive when data volumes are high.

The risk grows when the AI system can act, not only answer. This links prompt injection closely to the AI agent: an agent that reads content and takes actions can turn a manipulated instruction into a real consequence. The episode "Stop Prompt Injection in LangChain4j and Copilot Studio" warns that over-scoped connectors, over-permissioned agents and missing logs can create reportable incidents, and it recommends strict access controls to prevent data leaks and unauthorized actions, along with regular monitoring of AI systems and a governance framework aligned with organizational goals and legal requirements.

The episode "Secure Microsoft Copilot with Entra ID and Zero Trust" frames the exposure through what it calls the "Lethal Trifecta": Microsoft Copilot can access sensitive data, read untrusted content and communicate externally. It names EchoLeak as an example of a prompt injection attack that can exploit such conditions. Microsoft's recommendation, as presented there, is explicit verification and least-privilege access, together with auditing permissions and treating AI agents as privileged accounts.

Across the sources, the typical defences are consistent: limit the permissions of the AI system, filter inputs, and require human approval for sensitive actions. The episode "Secure MLOps in Microsoft Cloud with Martin Dimovski [MVP-MCT]" places prompt injection within a wider AI security picture that also covers infrastructure, models, training data, inference pipelines and generated outputs, and it describes prompt injection as becoming one of the biggest AI security concerns today, alongside risks such as open-source model supply chains, compromised dependencies, API key leakage and poisoned public models.

In practice, decisions around prompt injection concern which data an assistant or agent may read, which external channels it may use, which actions require a person to confirm, and how activity is logged for later review. Combining narrow permissions, input handling and approval steps reflects the point made across the episodes that no single control removes the risk.

Overview compiled with AI from M365.FM episodes and the facts on this page. You can improve it with the edit button below.

TypeConcept
KindThreat

Key points about Prompt injection

Key points about Prompt injection from the episodes, each with its source episode:

Episodes about Prompt injection

Episodes in which Prompt injection is discussed:

Timeline of episodes about Prompt injection

Articles about Prompt injection (5)

Articles in which Prompt injection is a topic:

Frequently asked questions

Questions marked with AI were written with AI from the facts on this page.

What is the difference between direct and indirect prompt injection? (AI)

In the indirect form, the malicious instruction is hidden in content the AI system retrieves, such as documents, emails, SharePoint content or Teams conversations, rather than typed in by a user. The episode "Indirect Prompt Injection Security for Enterprise AI" focuses on this indirect route.

Why is prompt injection hard to prevent with filters alone? (AI)

According to the episode "Stop Microsoft Copilot Prompt Injection with Azure Logic Apps", the problem lies in the architecture: models cannot reliably separate data from instructions, so retrieved content becomes part of the model's context.

Which defences are commonly recommended? (AI)

The sources point to limiting permissions, filtering inputs and requiring human approval for sensitive actions. The episodes also recommend least-privilege access, permission audits, logging and treating AI agents as privileged accounts.

What is indirect prompt injection?

It is an attack where hidden instructions are embedded in content that an AI system processes, such as documents or emails, so the AI is manipulated without any compromise of the infrastructure. · From the episode: Indirect Prompt Injection Security for Enterprise AI

What is prompt injection in Copilot?

Prompt injection in Copilot is hidden instructions in content that Copilot treats as trusted. The risk comes from the architecture, since Copilot retrieves data from emails, SharePoint files and chats. · From the episode: Stop Microsoft Copilot Prompt Injection with Azure Logic Apps

What content can carry prompt injection?

Emails, SharePoint files, chats and forms can carry hidden instructions that Copilot may treat as trusted. · From the episode: Stop Microsoft Copilot Prompt Injection with Azure Logic Apps

What are Prompt Shields?

Prompt Shields are an AI Content Safety feature named as a protection against prompt injection in the Copilot setup. · From the episode: Stop Microsoft Copilot Prompt Injection with Azure Logic Apps

What is the Lethal Trifecta?

When Copilot can access sensitive data, read untrusted content and communicate externally, enabling attacks like prompt injection. · From the episode: Secure Microsoft Copilot with Entra ID and Zero Trust

Relationship map of Prompt injection: linked topics

Related topics in brief

Topics linked to Prompt injection, each briefly explained:

All relationships of Prompt injection, grouped by type of relationship:

Related to

Topics related to Prompt injection:

Glossary

Community wiki

Short info above, community knowledge below: add practical tips, examples or corrections. New contributions are reviewed first; trusted members publish directly.

Experts and companies for this topic

Community members with expertise in Prompt injection:

Experts on related topics

Experts on topics related to Prompt injection, each with the topic that connects them:

Sources

Maintained by Mirko Peters (Microsoft MVP) · Last updated: