m365-entra-attack
Warn
Audited by Gen Agent Trust Hub on Oct 1, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDYNAMIC_EXECUTIONPRIVILEGE_ESCALATIONINDIRECT_PROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The skill instructs the agent to execute shell commands to install several external packages and tools using pip and go.
- Evidence:
pip install --break-system-packages msftrecon o365spray,go install -v github.com/projectdiscovery/.... - [EXTERNAL_DOWNLOADS]: The skill downloads and installs software from external, non-whitelisted sources.
- Evidence: Installation of
msftreconando365sprayvia PyPI, and security tools fromgithub.com/projectdiscovery/...via Go. - [PRIVILEGE_ESCALATION]: The provided scripts explicitly bypass standard security controls by disabling SSL/TLS certificate verification and hostname checking, which are critical for preventing man-in-the-middle attacks.
- Evidence (Python):
ctx = ssl.create_default_context(); ctx.check_hostname=False; ctx.verify_mode=ssl.CERT_NONE. - Evidence (Playwright):
args=["--ignore-certificate-errors"]andignore_https_errors=True. - [DYNAMIC_EXECUTION]: The skill relies on the execution of dynamically provided Python and Playwright scripts to perform network authentication attempts and browser automation.
- Evidence: Inclusion of logic for
m365_validator.pyand a Playwright-based SAML validation function within the skill body. - [INDIRECT_PROMPT_INJECTION]: The skill is designed to process untrusted external data (email lists and leaked credential dumps) and use them in network operations, creating an attack surface for indirect injection.
- Ingestion points: The
attempt()andsaml_validate()functions ingest email addresses and passwords from external lists, and the script reads/writes toengagement_log/o365_attempts.json. - Boundary markers: None. The script directly interpolates variables into URL-encoded bodies and automated browser inputs.
- Capability inventory: The skill uses
urllib.request.urlopenfor network communication,json.dumpfor file system writes, and Playwright for full browser automation. - Sanitization: There is no evidence of input validation or sanitization for the external email or password data processed by the scripts.
Audit Metadata