skills/andreaskarz/ai-productivity-series-requirement-engineering-vibes/sharepoint/Gen Agent Trust Hub
sharepoint
Fail
Audited by Gen Agent Trust Hub on Mar 31, 2026
Risk Level: HIGHCREDENTIALS_UNSAFECOMMAND_EXECUTIONEXTERNAL_DOWNLOADSDATA_EXFILTRATIONPROMPT_INJECTION
Full Analysis
- [CREDENTIALS_UNSAFE]: The skill instructs the agent to retrieve a raw Microsoft Graph API access token via the
az account get-access-tokencommand. Exposing live authentication tokens within the agent's context is a high-risk practice that could lead to unauthorized access to the user's entire Microsoft 365 environment. - [COMMAND_EXECUTION]: Multiple PowerShell commands, including
Invoke-WebRequest,New-Item, andGet-PnPFile, are dynamically constructed using variables such as site names and file paths sourced from SharePoint page snapshots. This pattern is vulnerable to command injection if these strings contain malicious shell metacharacters. - [DATA_EXFILTRATION]: The skill uses
Invoke-WebRequestto fetch data from URLs extracted from browser snapshots. If a page or document contains malicious links, the agent could be tricked into sending requests to external, unauthorized domains, potentially exfiltrating information or downloading untrusted content. - [EXTERNAL_DOWNLOADS]: The skill automates the download of binary files (PDFs, Office documents) from external SharePoint sites to the local
.assets/directory. - [PROMPT_INJECTION]: The skill is susceptible to indirect prompt injection because it processes and summarizes content from untrusted SharePoint pages and documents.
- Ingestion points:
mcp_playwright_browser_snapshotand downloaded document content. - Boundary markers: No instructions are present to delimit untrusted content or warn the agent against following embedded instructions.
- Capability inventory: Shell command execution (PowerShell), browser control via Playwright, and local file system writes.
- Sanitization: Content is used directly for summaries and navigation workflows without escaping or validation.
Recommendations
- AI detected serious security threats
Audit Metadata