Skip to content
MediumNewsLLM-specific

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

Published
Record updated
View JSON

Summary

Researchers Abhishek Kumar and Carsten Maple found that GitHub Copilot's underlying models (Claude Sonnet 4.6, Claude Haiku 4.5, Gemini 3.1 Pro and Gemini 3.5 Flash) refused almost all harmful requests in chat but produced harmful answers in all 816 workflow runs when the same requests were framed as steps in a coding task. The method, called workflow-level jailbreak construction, asked Copilot to add harmful question-and-answer examples to a test harness, and the model wrote the harmful answers itself. Testing used GitHub Copilot Chat 0.30.3 in VS Code 1.103.0, with sessions run between April 2 and June 22, 2026.