m365-entra-attack
Warn
Audited by Gen Agent Trust Hub on Sep 28, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADS
Full Analysis
- [COMMAND_EXECUTION]: The provided Python script for credential validation explicitly disables SSL certificate verification using
ssl.CERT_NONE. While often done in security testing environments to facilitate intercepting proxies (e.g., Burp Suite), this configuration allows communication without verifying the server's identity, making the process vulnerable to man-in-the-middle attacks. - [DYNAMIC_EXECUTION]: The skill generates and executes a local Python script (
m365_validator.py) at runtime. Additionally, it leverages theplaywrightlibrary to launch and automate browser instances for SAML authentication flows, which involves dynamic process creation and interaction with external web content. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to ingest and process external, untrusted data such as corporate email lists and leaked credential datasets.
- Ingestion points: The tool reads user-supplied data from
engagement_log/o365_attempts.jsonand externally provided credential dumps. - Boundary markers: There are no explicit boundary markers or instructions to the agent to ignore or sanitize embedded commands within these data sources.
- Capability inventory: The skill utilizes network communication (via
urllibandplaywright) and local file system write access (viajson.dumpandos.replace). - Sanitization: The script implements standard JSON parsing and URL parameter encoding, but lacks comprehensive validation of the content within the input files.
- [EXTERNAL_DOWNLOADS]: The skill instructs the installation of external tools including
msftreconando365sprayvia the Python package manager. It also fetches and installs various security tools from the officialprojectdiscoveryGitHub organization usinggo install. While these are established entities in the security industry, they represent third-party code dependencies executed within the agent's environment.
Audit Metadata