CoPhish: How Attackers Are Weaponizing Microsoft Copilot Studio for OAuth Phishing

CoPhish: How Attackers Are Weaponizing Microsoft Copilot Studio for OAuth Phishing

Alex Cipher's Profile Pictire Alex Cipher 4 min read

A new phishing threat, dubbed CoPhish, is turning trusted Microsoft Copilot Studio agents into unwitting accomplices in OAuth phishing attacks. By cleverly wrapping malicious OAuth consent requests within legitimate Microsoft domains, attackers are making it nearly impossible for users to spot the scam. This technique, highlighted by Datadog Security Labs, leverages the inherent trust users place in Microsoft’s ecosystem. The result? Even seasoned professionals can be caught off guard, as the attack seamlessly blends into normal workflows and evades traditional security tools.

What sets CoPhish apart is its use of social engineering—tricking users into granting access to malicious apps that appear completely above board. Once a user clicks “consent,” their session token is quietly whisked away to the attacker, all without raising any red flags. The attack’s sophistication is further amplified by its use of Microsoft’s own IP addresses, making detection even trickier. As organizations increasingly rely on AI-powered platforms like Copilot, understanding and defending against these emerging threats is more crucial than ever.

Understanding the CoPhish Technique

Exploiting Microsoft Copilot Studio

The CoPhish technique leverages the flexibility of Microsoft Copilot Studio to execute OAuth phishing attacks. This method involves the use of Microsoft Copilot Studio agents to send fraudulent OAuth consent requests through legitimate Microsoft domains. The technique is particularly insidious because it exploits trusted platforms, making it difficult for users to identify the phishing attempt. According to Datadog Security Labs, this approach introduces new, undocumented phishing risks that are not easily detectable by conventional security measures.

At the core of the CoPhish technique is social engineering, which manipulates users into granting access to malicious applications. The attack begins with a user receiving a seemingly legitimate OAuth consent request. Once the user consents, their session token is forwarded to the attacker via Burp Collaborator, as described by Datadog researchers. This token allows the attacker to hijack the session without the user receiving any notification of the breach. The use of Microsoft’s IP addresses further obscures the attack, as it does not appear in the user’s web traffic logs.

Technical Flow of the CoPhish Attack

The CoPhish attack is executed through a series of technical steps that seamlessly integrate with the user’s interaction with Microsoft Copilot. Initially, the victim accesses a malicious application that appears legitimate. The application then prompts the user to authenticate through Microsoft Copilot, during which the session token is captured and redirected to the attacker. The visual flow diagram provided by Datadog illustrates this process, highlighting the sophistication of the attack in bypassing traditional security measures.

Mitigation Strategies and Microsoft’s Response

In response to the CoPhish threat, Microsoft has outlined several mitigation strategies to protect users. These include limiting administrative privileges, reducing application permissions, and enforcing governance policies. Microsoft has also confirmed plans to address the underlying vulnerabilities in future product updates, as stated in their communication with BleepingComputer. These measures aim to reduce the attack surface and prevent unauthorized access to sensitive information.

Future Implications and Security Considerations

The emergence of the CoPhish technique underscores the evolving nature of phishing threats and the need for continuous adaptation in security practices. As attackers become more sophisticated in exploiting trusted platforms, organizations must remain vigilant and proactive in implementing robust security measures. The CoPhish technique serves as a reminder of the importance of user education and awareness in combating phishing attacks. By understanding the mechanics of such attacks, users can better protect themselves and their organizations from potential breaches.

Final Thoughts

The CoPhish technique is a stark reminder that even the most trusted platforms can be weaponized by cybercriminals. As attackers continue to innovate, leveraging AI and exploiting OAuth flows, organizations must double down on both technical defenses and user education. Microsoft’s ongoing efforts to patch vulnerabilities and tighten governance are steps in the right direction, but the human element remains a critical line of defense. Staying informed about evolving threats like CoPhish—and fostering a culture of skepticism around unexpected consent requests—can make all the difference. For a deeper dive into the technical details and mitigation strategies, check out the full analysis by Datadog Security Labs.

References