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 calculate tool in scripts/custom_tools.py uses the Python eval() 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-sdk Python package and the gh-copilot extension 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: description and code parameters in scripts/code_generation.py. 2. Boundary markers: Absent. 3. Capability inventory: CLI command execution and dynamic evaluation (eval). 4. Sanitization: Absent.
Audit Metadata
Risk Level
MEDIUM
Analyzed
Jul 4, 2026, 04:36 PM