copilot-sdk
Pass
Audited by Gen Agent Trust Hub on Sep 22, 2026
Risk Level: SAFEINDIRECT_PROMPT_INJECTIONEXTERNAL_DOWNLOADSCOMMAND_EXECUTION
Full Analysis
- [INDIRECT_PROMPT_INJECTION]: The skill describes an architecture for AI integrations that process untrusted data (such as user prompts and tool outputs), creating a surface for potential indirect prompt injection attacks.
- Ingestion points: The
onUserPromptSubmittedandonPostToolUsehooks handle strings provided by users or external tools. - Boundary markers: Documentation examples show simple string concatenation for prompt modification without explicit delimiters or isolation for untrusted content.
- Capability inventory: The SDK allows creating tools and MCP servers with capabilities including file system access, process execution, and network operations.
- Sanitization: Examples demonstrate result redaction for privacy but do not show explicit sanitization to prevent prompt injection.
- [EXTERNAL_DOWNLOADS]: The documentation references installation commands for SDK packages from official registries and GitHub repositories.
- Evidence: Mentions
npm install @github/copilot-sdkandpip install github-copilot-sdk. - [COMMAND_EXECUTION]: The skill documents the configuration of Model Context Protocol (MCP) servers, which involves spawning external processes via command-line interfaces.
- Evidence: The MCP integration section provides examples using
npxto launch filesystem servers and other local utilities.
Audit Metadata