Microsoft 365 Copilot Jailbreak Attempts via Prompt Injection
This detection identifies Microsoft 365 Copilot jailbreak attempts by detecting prompt injection techniques within exported eDiscovery prompt logs to circumvent built-in safety controls.
This threat brief addresses the risk of prompt injection attacks targeting Microsoft 365 Copilot. Attackers attempt to bypass safety controls and manipulate the AI's behavior through crafted prompts. The attacks leverage techniques such as rule manipulation, system bypass commands, and AI impersonation requests. Defenders need to monitor for these jailbreak attempts because successful prompt injections could lead to data exfiltration, policy violations, or other unauthorized activities within the M365 environment. The detection focuses on analyzing exported eDiscovery prompt logs, specifically the Subject_Title field, to identify prompts containing jailbreak keywords.
Attack Chain
- Attacker crafts a malicious prompt containing jailbreak keywords (e.g., "pretend you are", "act as", "rules=", "ignore", "bypass", "override").
- The attacker submits the crafted prompt to Microsoft 365 Copilot.
- The prompt is processed by Copilot, and an entry is logged in the M365 eDiscovery prompt logs, including the prompt text in the Subject_Title field.
- An analyst exports the M365 eDiscovery prompt logs from the Microsoft Purview compliance portal.
- The exported logs are ingested into a security information and event management (SIEM) system for analysis.
- The SIEM searches the Subject_Title field for jailbreak keywords.
- A risk score is assigned to the prompt based on the type of manipulation attempted.
- If the jailbreak score meets or exceeds a predefined threshold, an alert is triggered.
Impact
Successful prompt injection attacks on Microsoft 365 Copilot can lead to various negative consequences, including data exfiltration, unauthorized access to sensitive information, violation of acceptable use policies, and the potential for the AI to generate harmful or misleading content. The number of victims depends on the scope of the compromised Copilot instance and the attacker's objectives. The sectors targeted would be any utilizing M365 Copilot.
Recommendation
- Configure Microsoft Purview eDiscovery to export M365 Copilot prompt logs to a SIEM for analysis as described in the "how_to_implement" section of the source detection.
- Deploy the provided Sigma rules to your SIEM to detect jailbreak attempts based on prompt injection techniques, tuning the threshold based on your environment.
- Investigate triggered alerts, focusing on prompts with high jailbreak scores, to assess the potential impact and implement appropriate remediation measures.
- Review and update M365 Copilot acceptable use policies to explicitly address the risks associated with prompt injection attacks.
Detection coverage 2
Detect M365 Copilot Jailbreak Attempts via Keyword Matching
highDetects attempts to jailbreak M365 Copilot by searching for specific keywords indicative of prompt injection in the Subject_Title field of eDiscovery prompt logs.
Detect M365 Copilot Amoral Impersonation Jailbreak
mediumDetects attempts to jailbreak M365 Copilot by using amoral impersonation requests.
Detection queries are available on the platform. Get full rules →