Microsoft Copilot Reveals Its Own Security Vulnerability Through Conversation with Researchers

Reviewed byNidhi Govil

2 Sources

Share

Security researchers at Varonis Threat Labs discovered a critical flaw in Microsoft Copilot by simply asking the AI assistant how to hack itself. The chatbot disclosed an undocumented autorun=1 parameter that allowed attackers to bypass user consent and exfiltrate sensitive data through malicious links. Microsoft patched the vulnerability in February 2026 after Varonis reported it in December 2025.

Microsoft Copilot Exposes Critical Security Flaw Through Self-Disclosure

Security researchers at Varonis Threat Labs uncovered a critical security vulnerability in Microsoft 365 Copilot Enterprise and Microsoft Copilot Personal using an unconventional method—they asked the AI assistant to explain how to hack itself. In a striking example of AI guardrails failing, Microsoft Copilot revealed an undocumented prompt parameter that allowed attackers to bypass user consent requirements and exfiltrate sensitive data.

1

The vulnerability, dubbed CoSnitch by Varonis, enabled attackers to execute malicious prompts automatically when victims clicked specially crafted phishing links. Microsoft silently began mitigating the issue in February 2026, three months after Varonis reported it in December 2025, with more comprehensive fixes deployed on Tuesday.

2

How Researchers Manipulated AI Guardrails to Reveal Security Secrets

Varonis Senior Researcher Lior Adar employed a technique called "meta-hacking"—social engineering the AI's reasoning engine to manipulate it into disclosing information it shouldn't reveal. The researchers engaged Microsoft Copilot in a dialogue resembling a game of 20 questions, repeatedly asking why auto-execution of prompts was impossible and what URL structures were involved.

1

"At the beginning, Copilot kept refusing, but every refusal revealed technical details about its internal architecture," Adar explained. "Copilot eventually disclosed undocumented parameters. I took those parameters and used them for prompts for running automatically."

1

Each answer provided deeper insights into the AI assistant's safety mechanisms and their limitations. Eventually, Microsoft Copilot disclosed the undocumented prompt parameter autorun=1, which completely bypassed the requirement for user consent—a critical Microsoft trade secret.

1

The Undocumented Parameter That Enabled Prompt Injection Attacks

The researchers discovered that combining the autorun=1 parameter with the well-known ?q= parameter created a potent exploit vector. When accompanied by this undocumented prompt parameter, malicious prompts silently executed the moment targets clicked on crafted URLs, with no visible indication of a prompt injection attack.

2

The attack URL format looked like: https://copilot.microsoft.com/?q=<malicious_prompt>&autorun=1

Copilot not only revealed the autorun=1 parameter but also described the exact session conditions required for auto-execution to work and explained content filtering behavior. "Critically, Copilot also described its own protections against this behavior and explained why the parameter 'no longer works,'" Varonis researchers noted. "When we tested the parameter exactly as Copilot described it, the one it told us was disabled, executed."

2

Data Exfiltration Through Malicious Prompts and Memory Poisoning

Source: Ars Technica

Source: Ars Technica

With the ability to bypass user consent, researchers crafted prompts that could exfiltrate sensitive data when victims clicked malicious links delivered via email, SMS, phishing pages, or QR codes. One example prompt instructed Copilot to search inboxes, extract the latest sender's email address, and transmit it to an attacker-controlled server at webhook.site.

1

The attack chain worked as follows: victims clicked the crafted URL, the browser loaded copilot.microsoft.com in their authenticated session, the autorun=1 parameter triggered auto-execution, and the ?q= prompt fired without any user gesture. Microsoft Copilot then processed the injected prompt with full access to the victim's session context, connected apps, and memory—even if the Copilot tab was closed immediately after loading.

1

To conceal data theft and prevent transmission errors, exfiltrated data was converted to base64 format before being appended to URLs pointing to attacker-controlled websites. Separate malicious prompts could search Gmail for emails containing passwords or credentials, or access Google Drive files named "credentials" or "HR."

2

Varonis also devised attacks that poisoned Copilot's permanent memory store through prompt injection embedded in webpages. This capability enabled disinformation attacks by modifying what AI assistants show users in future sessions, creating persistent security risks beyond immediate data exfiltration.

1

Microsoft's Response and Broader Implications for AI Security

Microsoft initially addressed the vulnerability by silently disabling the ?q= parameter's ability to inject text into the chatbot input, preventing third-party browser integrations from using the parameter as intended. Users instead had to click and type manually. More comprehensive fixes were deployed on Tuesday, with Microsoft planning to formally identify the CVE.

1

2

The CoSnitch vulnerability highlights fundamental challenges with AI guardrails and the security of AI assistants that have access to sensitive user data across connected apps like Gmail, Google Drive, and Google Calendar. "What makes CoSnitch unique is how Copilot surfaced its own vulnerabilities," Varonis researchers wrote. "Our researchers didn't have to reverse-engineer the flaw. The AI exposed the weakness during normal use."

2

This incident raises questions about whether AI systems should be designed to withhold technical details about their own security mechanisms, even when directly questioned. As organizations increasingly integrate AI assistants into enterprise workflows with access to OAuth connectors and sensitive data repositories, understanding and mitigating prompt injection vulnerabilities becomes critical for preventing data breaches and protecting against sophisticated social engineering attacks targeting AI reasoning engines.

Today's Top Stories

© 2026 TheOutpost.AI All rights reserved