SiegeSoft All articles
Game Security

Your Newest Contributor Has No Badge: Governing AI Coding Agents Before They Touch CI

SiegeSoft
Your Newest Contributor Has No Badge: Governing AI Coding Agents Before They Touch CI

Photo by Photo by AMONWAT DUMKRUT on Unsplash on Unsplash

The approval usually takes four minutes. A team lead enables an AI coding assistant, points it at a repository, and moves on. Nobody drafts a scope document. Nobody asks what the tool can read, what it can write, or which systems it can reach when it decides a task requires one more API call. Compare that to the onboarding of a human contractor, which in most studios now involves a background check, a scoped account, a signed access agreement, and a manager who signs off on each system.

The asymmetry is difficult to defend, and it is compounding quickly. What began as autocomplete inside an editor has become something closer to a participant: agents that open pull requests, triage issues, generate migrations, run test suites, and in some configurations hold credentials into the build pipeline.

A Contributor Without a Badge

The useful mental model is not a tool. It is an identity. An agent that authenticates to a source control provider has an identity there. An agent that calls a CI API has an identity there too, and that identity has permissions, an audit trail, and — if the team was in a hurry — a personal access token with far broader scope than the task requires.

Once framed that way, the questions become ordinary security questions. What is the principal? What can it reach? Who reviews its actions? How is it revoked? The difficulty is that almost nobody asks them before the integration goes live, because the integration feels like installing software rather than hiring staff.

Where the Threat Model Actually Bites

Four failure modes account for most of the exposure we see described in incident write-ups and studio postmortems.

Instruction injection through content. An agent reading a repository ingests more than code: issue descriptions, commit messages, dependency READMEs, configuration comments, and third-party documentation. Any of those can carry instructions. A pull request from an outside contributor that contains a note addressed to the reviewing assistant is not a hypothetical; it is a predictable consequence of giving a language model both untrusted input and the ability to act.

Hallucinated dependencies. When an assistant suggests a package that does not exist, an attacker can register that name and wait. The build pulls it, and now the compromise originates inside the supply chain with a perfectly legitimate-looking commit history. This is not a model error that resolves with a larger model. It is an error class that requires an allowlist.

Over-scoped credentials. The path of least resistance is a token that can do everything the human can do, because that is what is easiest to create. Personal access tokens with repository-wide write access, deploy keys shared across projects, and CI credentials pasted into an agent configuration file all convert a limited assistant into a broad one.

Silent privilege expansion. Agents that can install their own tool servers, extensions, or plugins will accumulate capability over time. Each addition is a new trust boundary, and none of them pass through a change review because none of them look like a change to the product.

The Scope Creep Nobody Reviews

There is a second-order problem that deserves attention in game development specifically. Studios run on long-lived proprietary codebases, licensed middleware, console platform SDKs under strict agreement, and unreleased content that has real market value. An assistant with read access to a repository in that environment is not merely reading code. It may be ingesting assets, design documents, and third-party code that the studio is contractually obligated to keep contained.

Data handling questions that would trigger a legal review for a human vendor are frequently resolved by a checkbox during installation. Teams should expect procurement and legal to catch up with reality within the next year, and should get ahead of it rather than rebuilding integrations later.

Before You Connect It: A Review Process

Six gates, applied before the first credential is issued.

  1. Define the principal. Decide whether the agent acts as a distinct bot identity or impersonates a human. Prefer the former, always. A shared account destroys attribution and makes revocation impossible without collateral damage.
  2. Enumerate the tools. List every system the agent can call — source control, package registry, CI, ticketing, chat, cloud APIs — and write it down. If the list cannot be produced, the integration is not ready.
  3. Scope to the task. Read-only where reading suffices. Branch-level write rather than default-branch write. Short-lived tokens issued through workload identity rather than static secrets stored in configuration.
  4. Require a human at the merge and deploy boundary. The agent may propose; a person approves. This single control absorbs a remarkable amount of residual risk.
  5. Sandbox the execution environment. Egress allowlists, no ambient cloud metadata credentials, no mounted developer home directories, ephemeral workspaces. Treat the agent's runtime as hostile to your network until proven otherwise.
  6. Set the review cadence. Quarterly re-approval of scopes, with automatic expiry if nobody renews. Capability that nobody defends should disappear.

Attribution and the Audit Trail

A recurring question during incident response is who performed an action. When an agent operates under a human's token, the logs answer a question nobody asked and obscure the one that matters. Every agent action should be attributable to the agent identity, linked to the human request that triggered it, and retained long enough to reconstruct a sequence of events weeks later.

This is also an operational convenience. Agent identities can be throttled, quarantined, and revoked without disrupting a person's workday — an advantage that becomes obvious the first time an assistant behaves unexpectedly at two in the morning.

Write the Policy First

The uncomfortable truth is that most organizations will connect several more assistants before they finish this sentence. That is fine. Speed of adoption is not the problem; unexamined adoption is. A one-page policy that names the principal, bounds the scope, requires human approval at the merge boundary, and sets an expiry date would have prevented a meaningful share of the incidents currently attributed to AI tooling.

Fortify the stack by deciding what the agent is allowed to be before deciding what it is allowed to do.

All Articles

Related Articles

The Calm Before the Flood: Rethinking Game Server Resilience in the Botnet Era

The Calm Before the Flood: Rethinking Game Server Resilience in the Botnet Era

Ring-0 and the Price of Trust: What Kernel-Level Anti-Cheat Teaches Enterprise Endpoint Defense

Ring-0 and the Price of Trust: What Kernel-Level Anti-Cheat Teaches Enterprise Endpoint Defense

Trojan Patches: How Malicious Code Rides Into Game Studios on Trusted Engine Updates

Trojan Patches: How Malicious Code Rides Into Game Studios on Trusted Engine Updates