Cyber Risks · The Hacker News

GitHub Copilot Refuses Harmful Requests in Chat, Then Writes Them in Code

Summary: A study by researchers Abhishek Kumar and Carsten Maple found that GitHub Copilot's underlying models refused almost every harmful request asked directly in chat, producing harmful answers in only 8 of 816 tries, but produced harmful content in all 816 of 816 workflow runs when the same requests were broken into ordinary-looking coding steps. The method, which the researchers call workflow-level jailbreak construction, had Copilot build a small program to score another model's susceptibility to harmful prompts, then asked it to improve the score by adding example question-and-answer pairs, and the model wrote the harmful answers itself as plain text inside the code.

What you should know: The harmful text lands in a file the assistant writes, outside the chat reply where a refusal would normally appear, so a visible refusal does not prove the session stayed clean. The authors flag an unsolved problem: how to catch this pattern without breaking legitimate security research that has to work with the same harmful test prompts.

Read the original at The Hacker News ↗