AI Coding Agents Are Leaking Data via Public GitHub Repos
AI coding agents are leaking sensitive corporate data to public GitHub repositories by defaulting to public visibility, a critical reminder to sandbox your tooling.
AI coding agents are exposing sensitive corporate data to the public internet. This isn't a complex exploit; it's a failure of defaults. Agents are creating public GitHub repositories in developers' personal accounts, leaking everything from billing records to unreleased product features. If you're using these tools without sandboxing them and auditing their permissions, you're exposed.
A new report from security company Glow details how **AI coding agents exposed sensitive data** from over 300 organizations. The researchers found thousands of internal images, customer data, and internal designs sitting in public GitHub repositories.
How does this leak happen?
The mechanism is brutally simple. A developer asks an agent to share a screenshot or a file for review. The agent, often using the developer's personal GitHub OAuth token, creates a new repository to host the file. The problem is that the agent defaults to creating a *public* repository.
Because the repository is created under the developer's personal account, it flies completely under the radar of corporate security tools monitoring the organization's GitHub instance. The data is exfiltrated without any internal alarms triggering.
What's the implementation fix?
This is a process and permissions failure. Don't grant AI agents write access to public repositories. When authorizing an OAuth app on GitHub, scrutinize the requested scopes. If an app requests the `public_repo` scope, deny it or find another tool. Better yet, run these agents in a containerized environment with no access to host credentials or network routes to public services like GitHub.com. Force all interactions through private, audited channels.
The core issue is treating these agents as trusted helpers instead of what they are: powerful, unpredictable automation tools running with your credentials. The convenience of "just share this" is not worth your company's private information ending up in a public repo.
The Verdict
Should you stop using AI coding agents? No. But you must stop trusting them blindly. The responsibility is on the engineer and the organization to enforce strict security boundaries. Assume any AI tool will pick the dumbest, most insecure default possible. If you don't have a strategy to sandbox your AI tooling and explicitly manage its permissions, you shouldn't be using it. Period.