microsoft-graph-gateway
Fail
Audited by Gen Agent Trust Hub on Oct 8, 2026
Risk Level: HIGHREMOTE_CODE_EXECUTIONCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSINDIRECT_PROMPT_INJECTION
Full Analysis
- [REMOTE_CODE_EXECUTION]: The
scripts/Install-MsGraphRunner.ps1script downloads a ZIP archive from an external GitHub repository (https://github.com/merill/msgraph/releases/latest/download/msgraph.zip), extracts its contents, and identifies a runner script for execution. This script is subsequently executed byscripts/Invoke-GraphGateway.ps1to perform Microsoft Graph operations.\n- [COMMAND_EXECUTION]: The scriptscripts/Invoke-GraphGateway.ps1uses the PowerShell call operator to execute a command defined by theRunnerPathparameter or environment variables. This allows for the execution of arbitrary local or downloaded tools with arguments derived from user and agent input.\n- [EXTERNAL_DOWNLOADS]: The skill is configured to download a third-party utility from GitHub to act as its primary execution substrate for Microsoft Graph requests.\n- [INDIRECT_PROMPT_INJECTION]: The skill processes untrusted data from Microsoft 365 sources (e.g., Outlook emails, OneDrive files) which may contain malicious instructions designed to manipulate the AI agent.\n - Ingestion points: Data retrieved from Microsoft Graph via the
Invoke-GraphGateway.ps1script and associated assets.\n - Boundary markers: The skill relies on high-level routing logic but lacks technical sanitization or boundary markers to prevent the agent from following instructions embedded in external data.\n
- Capability inventory: The skill possesses extensive capabilities including reading/writing emails and events, and executing local scripts.\n
- Sanitization: There is no evidence of sanitization, filtering, or escaping of data fetched from external Microsoft Graph endpoints.
Recommendations
- AI detected serious security threats
Audit Metadata