m365-entra-attack

Fail

Audited by Gen Agent Trust Hub on Nov 16, 2026

Risk Level: HIGHCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONINDIRECT_PROMPT_INJECTIONREMOTE_CODE_EXECUTIONDYNAMIC_EXECUTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill instructs the agent to execute offensive security tools such as msftrecon and o365spray to perform reconnaissance and password spraying against Microsoft 365 tenants.
  • [EXTERNAL_DOWNLOADS]: The instructions require the installation of third-party packages (msftrecon, o365spray, and ProjectDiscovery tools) from public registries and GitHub, which are not from trusted or well-known organizations and may contain unverifiable code.
  • [DATA_EXFILTRATION]: The provided Python and Playwright scripts are designed to transmit sensitive user credentials (usernames and passwords) to external Microsoft authentication endpoints (login.microsoftonline.com) to verify their validity.
  • [REMOTE_CODE_EXECUTION]: The skill includes functional Python and Playwright templates that, when executed, programmatically interact with remote authentication services and automate browser-based login flows using provided credentials.
  • [INDIRECT_PROMPT_INJECTION]: The skill is intended to process untrusted data from external sources, including corporate email lists and "stealer-leaked creds," which creates a surface for malicious instructions to influence agent behavior.
  • Ingestion points: engagement_log/o365_attempts.json (state file), external credential dumps, and email lists processed during the spray cycle.
  • Boundary markers: Absent; the skill lacks delimiters or specific instructions to disregard embedded commands in the processed data.
  • Capability inventory: File system read/write operations (json.load, json.dump, os.replace), network POST requests (urllib.request), and headless browser automation (playwright).
  • Sanitization: Absent; data from untrusted sources is used directly in network payloads and log files without validation or escaping.
  • [DYNAMIC_EXECUTION]: The Python m365_validator.py template script explicitly disables SSL/TLS hostname and certificate verification (ssl.CERT_NONE), which bypasses critical security controls and leaves sensitive credential traffic vulnerable to interception.
Recommendations
  • AI detected serious security threats
Audit Metadata
Risk Level
HIGH
Analyzed
Nov 16, 2026, 12:56 PM