skills/encod3d-sec/torch/hunt-m365/Gen Agent Trust Hub

hunt-m365

Warn

Audited by Gen Agent Trust Hub on Oct 1, 2026

Risk Level: MEDIUMCOMMAND_EXECUTIONDYNAMIC_EXECUTIONINDIRECT_PROMPT_INJECTION
Full Analysis
  • [COMMAND_EXECUTION]: The skill instructs the agent to execute external command-line tools including msftrecon and curl. The curl commands are configured with the -k or --insecure flag, which bypasses SSL/TLS certificate validation when communicating with SharePoint endpoints.\n- [DYNAMIC_EXECUTION]: The skill provides a Python script for the agent to execute that performs ROPC (Resource Owner Password Credentials) authentication. This script explicitly disables SSL verification by setting ssl.CERT_NONE in the request context. This practice is inherently insecure as it allows for the interception of sensitive authentication credentials by an attacker on the network path.\n- [INDIRECT_PROMPT_INJECTION]: The skill handles data from external, untrusted network sources (Microsoft and SharePoint APIs), which creates a potential vector for indirect prompt injection.\n
  • Ingestion points: External API responses from login.microsoftonline.com and SharePoint personal site layouts.\n
  • Boundary markers: The skill does not implement delimiters or specific instructions to the agent to ignore potentially malicious content embedded within these external responses.\n
  • Capability inventory: The skill can execute shell commands (curl, msftrecon, python3), write to local files (engagement_log/o365_attempts.json), and perform POST requests to Microsoft's authentication services.\n
  • Sanitization: Although the script uses structured JSON parsing, it does not sanitize descriptive fields (like error_description) which could be manipulated to provide instructions to the AI agent.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Oct 1, 2026, 05:05 AM