copilot-delegate
Warn
Audited by Gen Agent Trust Hub on Aug 17, 2026
Risk Level: MEDIUMCOMMAND_EXECUTIONREMOTE_CODE_EXECUTIONCREDENTIALS_UNSAFE
Full Analysis
- [COMMAND_EXECUTION]: The skill is designed to execute the GitHub Copilot CLI (
copilot), which acts as an AI implementer capable of modifying code and running project tools. The--allow-all-toolsflag explicitly grants the implementer full autonomy to run arbitrary shell commands in the local environment, which is a high-risk capability by design.\n- [REMOTE_CODE_EXECUTION]: Thescripts/relay.mjsscript is vulnerable to command injection on Windows systems. It useschild_process.spawnwithshell: trueand a customquotePathfunction that wraps paths in double quotes but does not escape existing quotes within the path. If an argument such as--out-diror--briefcontains a malicious path string (e.g., carrying shell operators like" & calc.exe & "), it can break out of the intended command and execute arbitrary code on the host system.\n- [CREDENTIALS_UNSAFE]: The skill handles sensitive GitHub authentication tokens (COPILOT_GITHUB_TOKEN,GH_TOKEN,GITHUB_TOKEN). While this is necessary for thecopilotCLI to function, these credentials are inherited by child processes and stored in the environment.\n- [INDIRECT_PROMPT_INJECTION]: The skill processes 'briefs'—instructions for the AI implementer—which are untrusted data sources. These could be manipulated to contain instructions to bypass security controls. While the skill documentation emphasizes manual review of changes, the risk of the implementer performing unauthorized actions remains inherent in the delegation model.
Audit Metadata