What I learned by putting GitHub Copilot behind a MitM proxy
- AI
- Security
- Developer Tools
- Open Source
The post is a reverse-engineering walkthrough of GitHub Copilot’s client-side harness. By intercepting traffic with mitmproxy and then checking VS Code source against what appeared on the wire, the author mapped how Copilot discovers models and capabilities, routes requests, injects context for ghost completions, and uses a local SQLite store tied to Chronicle to keep prior prompts and responses. The sharpest finding was not some exotic backend trick. It was that recent edits can pull context from files beyond the one in focus, including `.env`, which means secrets can leak through ordinary editing flow rather than an explicit prompt.
Treat coding agents like untrusted code with broad filesystem access, not like a harmless autocomplete feature. If your team uses them, lock down secret exposure, isolate development environments, and verify what context your tools actually upload instead of trusting vendor defaults.
-
lighthousenewsletter.com
- Discuss on HN