SQL Copilot prompt-only guardrails bypassed: EXEC via variable escalates from SELECT to SYSADMIN
wunderwuzzi23 · x · 2026-10-09
Researcher wunderwuzzi (Johann Rehberger) presents BlueHat Asia research on Microsoft's SQL Copilot in SSMS: its read-only behavior relied on system prompt plus a regex blocklist, and calling EXEC through a variable bypassed both, enabling elevation from SELECT to SYSADMIN. Key lesson: only permissions (not prompts) enforce read-only — if the connection can write, the agent can write. Microsoft patched quickly; he also proposes a database "CONSTITUTION.md" concept. Blog includes full technical details and video demos.
More from coding & agent
- NVIDIA launches Nemotron 4, built for long-running coding agents that work for days — nvidia · 2026-12-02
- Solo filmmaker makes 3.5-min AI short film: 21 shots with Midjourney, Seedance 2.5 and ElevenLabs — DavidmComfort · 2026-12-02
- Claude Code + ARIA via MCP: debugging agent evals from 4/12 to 9/12 — CoreWeaveDevs · 2026-12-02
- GitHub Copilot Fusion Max reportedly tops Terminal-Bench at 71.2% while undercutting rivals — DanWahlin · 2026-12-02
- Ali Ghodsi's 2016 take: the hardest part of AI is all the code around it — a16z · 2026-12-02
- Claude Opus 5.5 + Unreal Engine 5.9 used to rapid-prototype a "Wedding Videographer Simulator" — gorkem · 2026-12-02