copilot-sdk
Warn
Audited by Gen Agent Trust Hub on Jul 4, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONEXTERNAL_DOWNLOADSPROMPT_INJECTION
Full Analysis
- [COMMAND_EXECUTION]: The
calculatetool inscripts/custom_tools.pyuses the Pythoneval()function to evaluate expressions. While it enforces a character whitelist (including numbers and basic operators), using dynamic evaluation on data that originates from a user prompt is a risky practice as it creates a path for potential exploitation if validation is bypassed. - [REMOTE_CODE_EXECUTION]: The use of
eval()on unsanitized strings from an agent provides a potential vector for code execution should the character whitelist be circumvented through unforeseen logic errors or encoding tricks. - [EXTERNAL_DOWNLOADS]: The skill requires the installation of external components, specifically the
github-copilot-sdkPython package and thegh-copilotextension for the GitHub CLI. These components are fetched from well-known sources (GitHub and PyPI). - [PROMPT_INJECTION]: The skill exhibits surfaces for indirect prompt injection. In
scripts/code_generation.py, user-controlled descriptions and external code blocks are interpolated directly into prompts without boundary markers or sanitization. This untrusted data could attempt to override agent instructions. 1. Ingestion points:descriptionandcodeparameters inscripts/code_generation.py. 2. Boundary markers: Absent. 3. Capability inventory: CLI command execution and dynamic evaluation (eval). 4. Sanitization: Absent.
Audit Metadata