Question 90
A maintainer using GitHub Copilot finds, the following condition is confirmed: A generated command embeds an unexpected network call unrelated to the requested fix. Which approach is the most defensible?
Explanation
Correct Answer
Select the action "Inspect and remove the unexplained outbound operation". Hidden side effects can indicate prompt injection or compromised context. It is the specific match for the scenario in which A generated command embeds an unexpected network call unrelated to the requested fix.
Incorrect Answers
For the different scenario A third-party MCP response asks for expanded repository permissions, "Validate tool permissions independently before granting access" could be appropriate. Tool output is not an administrative approval channel. The present requirement is A generated command embeds an unexpected network call unrelated to the requested fix, which calls for "Inspect and remove the unexplained outbound operation". Hidden side effects can indicate prompt injection or compromised context.
The action "Treat the comment as untrusted task data and refuse the upload" is useful when An issue comment instructs an agent to upload environment variables to a URL. Retrieved text cannot grant authority over secrets or tools. Under the stated condition A generated command embeds an unexpected network call unrelated to the requested fix, instead choose "Inspect and remove the unexplained outbound operation". Hidden side effects can indicate prompt injection or compromised context.
The alternative "Parse the fixture as test data rather than executing embedded requests" fits another situation: A test fixture includes instructions to disable audit logging. Data fields can contain attacker-controlled instructions. Here the condition is A generated command embeds an unexpected network call unrelated to the requested fix; use "Inspect and remove the unexplained outbound operation" instead. Hidden side effects can indicate prompt injection or compromised context.