Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

··Feeds·Contact·Privacy·© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
cve-2025-32711 — Proof-of-concept and analysis for CVE-2025-32711 | Kitploit
Tools/GitHubGitHub/daryllundy/cve-2025-32711
Vulnerability ScannersVulnerability AnalysisConfiguration AuditingCloud SecurityIncident ResponseEmail SecurityAI Security
GitHubdaryllundy/cve-2025-32711

cve-2025-32711

Proof-of-concept and analysis for CVE-2025-32711

View Repository
31 year agoNot yet reviewed

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Share

CVE-2025-32711 (EchoLeak) Detection Tool 🔐

PowerShell License Security GitLab Mirror

Overview

CVE-2025-32711, nicknamed "EchoLeak," is a critical zero-click vulnerability in Microsoft 365 Copilot that allowed attackers to exfiltrate sensitive organizational data without any user interaction. This repository contains detection and remediation tools to help organizations assess their exposure and implement protective measures.

Demo

asciicast

PowerShell-based detection and remediation tool demonstration

Vulnerability Details

  • CVE ID: CVE-2025-32711
  • Nickname: EchoLeak
  • CVSS Score: 9.3 (Critical)
  • Type: LLM Scope Violation / AI Command Injection
  • Affected Product: Microsoft 365 Copilot
  • Status: Patched server-side by Microsoft in May 2025
  • User Action Required: None (server-side patch applied)

Attack Mechanism

The vulnerability exploits how Microsoft 365 Copilot processes and retrieves data:

  1. Zero-Click Attack: Attacker sends a specially crafted email containing hidden prompt injections
  2. Bypass Security: The email bypasses XPIA (Cross-Prompt Injection Attack) classifiers by appearing as user instructions
  3. Data Exfiltration: When Copilot processes any query, it accesses the malicious email and executes the hidden instructions
  4. Silent Leakage: Sensitive data from Copilot's context (emails, OneDrive, SharePoint, Teams) is sent to attacker-controlled servers

Repository Structure

root@kitploit:~
cve-2025-32711-detection/
├── README.md                    # This file
├── detect.ps1                   # PowerShell detection script
├── remediate.ps1                # PowerShell remediation script
├── tests/
│   ├── test_detection.ps1       # Detection script test suite
│   └── test_remediation.ps1     # Remediation script test suite
└── logs/                        # Directory for log files

Prerequisites

  • Windows PowerShell 5.1 or PowerShell 7+
  • Administrative privileges on the system
  • Microsoft 365 PowerShell modules:
    • ExchangeOnlineManagement
    • Microsoft.Graph
    • AzureAD or AzureAD.Standard.Preview

Installation

  1. Clone this repository:
root@kitploit:~
git clone https://github.com/daryllundy/cve-2025-32711-detection.git
cd cve-2025-32711-detection
  1. Install required PowerShell modules:
root@kitploit:~
Install-Module -Name ExchangeOnlineManagement -Force
Install-Module -Name Microsoft.Graph -Force
Install-Module -Name AzureAD -Force
  1. Connect to Microsoft 365:
root@kitploit:~
Connect-ExchangeOnline
Connect-MgGraph -Scopes "User.Read.All", "Directory.Read.All", "SecurityEvents.Read.All"
Connect-AzureAD

Usage

Detection Script

The detection script checks for:

  • Microsoft 365 Copilot deployment status
  • Suspicious email patterns indicating prompt injection attempts
  • Security configuration vulnerabilities
  • Audit log anomalies

Run the detection script:

root@kitploit:~
.\detect.ps1 -OutputPath ".\logs\detection_report.json"

Parameters:

  • -OutputPath: Path for the detection report (default: .\logs\detection_report.json)
  • -IncludeEmailAnalysis: Perform deep email analysis (may take longer)
  • -Days: Number of days to look back in audit logs (default: 30)

Remediation Script

The remediation script implements:

  • Enhanced email filtering rules
  • DLP policies for prompt injection detection
  • Audit logging improvements
  • Security configuration hardening

Run the remediation script:

root@kitploit:~
.\remediate.ps1 -ConfigPath ".\config\remediation_config.json" -WhatIf

Parameters:

  • -ConfigPath: Path to remediation configuration file
  • -WhatIf: Preview changes without applying them
  • -Force: Apply changes without confirmation prompts

Testing

Run the test suites to verify script functionality:

root@kitploit:~
# Test detection capabilities
.\tests\test_detection.ps1

# Test remediation functions
.\tests\test_remediation.ps1

Detection Indicators

The tool looks for the following indicators of potential exploitation:

  1. Email Patterns:

    • Emails containing markdown-style links with excessive query parameters
    • Messages with hidden instructions targeting AI assistants
    • Reference-style markdown links that bypass standard filters
  2. Behavioral Anomalies:

    • Unusual data access patterns by Copilot service accounts
    • Spike in external data transfers
    • Suspicious audit log entries related to AI operations
  3. Configuration Weaknesses:

    • Missing or misconfigured DLP policies
    • Inadequate email filtering rules
    • Disabled audit logging for AI operations

Remediation Actions

The remediation script performs the following actions:

  1. Email Security:

    • Creates mail flow rules to detect prompt injection patterns
    • Implements content filtering for AI-specific threats
    • Blocks suspicious markdown patterns in emails
  2. Data Loss Prevention:

    • Creates DLP policies for AI prompt injection detection
    • Monitors for data exfiltration patterns
    • Alerts on suspicious content combinations
  3. Audit and Monitoring:

    • Enables comprehensive audit logging
    • Creates alert policies for AI-related anomalies
    • Configures retention policies for security logs
  4. Access Controls:

    • Reviews and restricts Copilot data access permissions
    • Implements conditional access policies
    • Enforces principle of least privilege

Best Practices

  1. Regular Monitoring: Run the detection script weekly to identify new threats
  2. Update Patterns: Keep detection patterns updated as new attack variants emerge
  3. Test Thoroughly: Always use -WhatIf parameter before applying remediation
  4. Document Changes: Maintain logs of all security configurations applied
  5. Stay Informed: Monitor Microsoft security advisories for updates

Limitations

  • This tool cannot detect past exploitation if audit logs have been purged
  • Server-side patches by Microsoft have already addressed the core vulnerability
  • Detection patterns may need updates as attack techniques evolve
  • Some remediation actions require specific Microsoft 365 licensing

Support

For issues, questions, or contributions:

  • Open an issue in this repository
  • Consult Microsoft's official documentation
  • Review the Microsoft Security Response Center advisory

References

  • Microsoft Security Advisory
  • NVD Database Entry
  • MITRE CVE Entry

License

This tool is provided as-is for security assessment purposes. Use at your own risk and ensure compliance with your organization's security policies.

Download Tool