sharepoint-by-altf1be
Pass
Audited by Gen Agent Trust Hub on May 19, 2026
Risk Level: SAFEEXTERNAL_DOWNLOADSCOMMAND_EXECUTIONPROMPT_INJECTION
Full Analysis
- [SAFE]: The skill demonstrates a strong security posture by implementing several best practices:
- Certificate-based Authentication: Uses
@azure/identitywith certificates rather than potentially leaked client secrets or passwords. - Least Privilege Access: Scopes the Entra application using
Sites.Selectedpermissions, ensuring the skill can only access a specific SharePoint site. - Path Traversal Protection: The
safePathhelper function inscripts/sharepoint.mjsvalidates input and rejects paths containing..to prevent directory traversal attacks. - Safety Confirmations: Destructive operations like file deletion require an explicit
--confirmflag to prevent accidental data loss. - Data Handling: Implements file size limits (default 50MB) and ensures sensitive tokens are not logged to stdout.
- [EXTERNAL_DOWNLOADS]: Fetches file content and metadata from Microsoft's official Graph API endpoints (
graph.microsoft.com). These downloads are authenticated and restricted to the configured SharePoint environment. - [COMMAND_EXECUTION]: Provides a Node.js-based command-line interface to orchestrate SharePoint operations such as listing libraries, reading document text, uploading files, and managing checkouts.
- [PROMPT_INJECTION]: The skill has a surface for indirect prompt injection because it extracts text from external documents (Office files, PDFs) which an agent then processes.
- Ingestion points: Document text extraction logic in
scripts/sharepoint.mjs(using libraries likemammoth,exceljs, andpdf-parse). - Boundary markers: Extracted text is output directly to stdout without specific delimiters or warnings to the agent about untrusted content.
- Capability inventory: The skill possesses the ability to upload, modify, and delete files within the target SharePoint site.
- Sanitization: No specific filtering or sanitization is applied to the text content extracted from documents.
Audit Metadata