copilot-sdk
Warn
Audited by Gen Agent Trust Hub on Aug 10, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTIONREMOTE_CODE_EXECUTION
Full Analysis
- [COMMAND_EXECUTION]: The
mcpServersconfiguration supports alocaltransport type that allows for the execution of arbitrary system commands and binaries (e.g.,npx) with user-defined arguments. - [COMMAND_EXECUTION]: The
cliPathparameter in theCopilotClientconfiguration allows specifying a path to an executable file that will be run by the SDK, providing a direct vector for command execution. - [EXTERNAL_DOWNLOADS]: The documentation instructs users to install packages such as
@github/copilot-sdkandgithub-copilot-sdkwhich are not standard official releases from GitHub, posing a potential supply chain risk. - [PROMPT_INJECTION]: The skill presents an indirect prompt injection surface.
- Ingestion points: External logic and data are ingested via the
skillDirectoriesfeature and remotemcpServers(SKILL.md). - Boundary markers: The documentation does not specify the use of delimiters or 'ignore' instructions when loading external skill content.
- Capability inventory: The SDK facilitates local command execution via MCP and binary execution via
cliPath(SKILL.md). - Sanitization: The
onPreToolUsehook is provided for manual inspection and filtering of tool calls, though its implementation is optional. - [REMOTE_CODE_EXECUTION]: The
skillDirectoriesfeature enables the loading of external code and instructions into the agent's runtime environment, which could lead to the indirect execution of untrusted logic. - [DATA_EXFILTRATION]: The skill allows configuring external HTTP-based MCP servers and Bring Your Own Key (BYOK) providers, which involves transmitting potentially sensitive context and credentials to remote endpoints.
Audit Metadata