m365-entra-attack
Warn
Audited by Gen Agent Trust Hub on Nov 3, 2026
Risk Level: MEDIUMDYNAMIC_EXECUTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [DYNAMIC_EXECUTION]: The provided Python script template for ROPC password validation (
m365_validator.py) explicitly disables TLS certificate verification usingssl.verify_mode=ssl.CERT_NONE. This is a dangerous practice that bypasses the security of the connection to Microsoft's authentication endpoints, making the tool and the credentials it processes vulnerable to interception or modification by a network-based attacker. - [EXTERNAL_DOWNLOADS]: The skill instructs the user to install several external security tools, including
msftrecon,o365spray, and the ProjectDiscovery toolkit (github.com/projectdiscovery/...). While these are recognized tools in the security community, they are downloaded from public repositories at runtime without integrity verification. - [COMMAND_EXECUTION]: The skill provides multiple shell command examples for performing tenant discovery (
msftrecon), installing packages (pip install,go install), and managing project dependencies (brew install). - [INDIRECT_PROMPT_INJECTION]: The skill includes an attack surface for indirect injection as it processes untrusted user-supplied data (email lists and potential passwords).
- Ingestion points: The skill reads from an external email list and user-provided password candidates as documented in the
ROPC password validationandSAML SSO browser flowsections inSKILL.md. - Boundary markers: No explicit boundary markers or "ignore instructions" warnings are present in the scripts to delimit untrusted data from the script logic.
- Capability inventory: The skill possesses network capabilities (HTTP POST via
urllib) and browser automation capabilities (via Playwright). - Sanitization: While the Python script uses
urllib.parse.urlencodeto handle URL parameters for ROPC attempts, the browser automation (Playwright) logic relies on filling input fields where malicious payloads could potentially interfere with the automation flow if not handled correctly.
Audit Metadata