Epic is reportedly betting its next big shooter on code Claude writes and people review. Review is where that plan gets hard. AI-written code is not more dangerous than a junior developer's output, but it arrives at a volume that breaks human review capacity, so review, not coding, becomes the constraint. When a model writes most of a codebase, your security process stops being a mistake catcher and becomes quality control on an assembly line. Here is the pipeline I would build on day one, and the mistakes I would avoid in the checks themselves.

The facts, attributed correctly: a Bloomberg report cited by Ars Technica says Epic is pivoting an upcoming Marvel and Star Wars shooter to "AI first" development, with "no more hand-written code" and art "generated with full AI workflows," per internal employee messages [1]. Epic has not confirmed the details. CEO Tim Sweeney wrote on X about "a huge pivot underway here at Epic, moving developers around to retool for maximum AI acceleration" shortly after the story ran [2]. Everything below assumes the report is accurate, which is the assumption your security planning has to survive anyway.
The pipeline, piece by piece
These are starting points, not a finished product. Each piece is small enough to read in one sitting, which matters when the point of the whole exercise is to keep humans able to review things.
1. Semgrep for the shallow pass
Semgrep rules are YAML: an id, a message, the languages, a severity, and one or more patterns [4]. Its C++ support is thinner than its coverage of web languages, so keep the C++ rules to obvious patterns and leave the deep work to CodeQL.
# .semgrep/ai-code-patterns.yaml
rules:
- id: unbounded-c-string-call
languages: [cpp]
severity: ERROR
message: Unbounded C string function. In Unreal code use FString, or FCString with an explicit buffer size.
pattern-either:
- pattern: strcpy(...)
- pattern: strcat(...)
- pattern: sprintf(...)
- pattern: vsprintf(...)
- id: hardcoded-credential-literal
languages: [cpp, csharp, python]
severity: ERROR
message: A credential is assigned from a string literal. Load it from config or a secret manager.
patterns:
- pattern: $NAME = "$VALUE"
- metavariable-regex:
metavariable: $NAME
regex: (?i).*(passw(or)?d|secret|token).*Run it in CI with the official container image. --error makes the job fail when a rule matches:
# .github/workflows/semgrep.yml (job excerpt)
semgrep:
runs-on: ubuntu-latest
container: semgrep/semgrep
steps:
- uses: actions/checkout@v4
- run: semgrep scan --config .semgrep/ai-code-patterns.yaml --error --sarif --output semgrep.sarif2. CodeQL for the deep pass
CodeQL ships a security-extended suite for C and C++ that covers buffer overflows, use-after-free patterns and integer problems far better than any pattern matcher [5]. Start there. Custom queries are for house rules, such as banning C string calls in engine code:
/**
* @name Unbounded C string call
* @kind problem
* @id house/cpp/unbounded-c-string-call
*/
import cpp
from FunctionCall call
where call.getTarget().hasGlobalOrStdName(["strcpy", "strcat", "sprintf", "vsprintf"])
select call, "Unbounded C string call to " + call.getTarget().getName() + ". Use FString or FCString with a size."Put the query in a folder with a qlpack.yml that depends on codeql/cpp-all, then add it next to the standard suite. C++ needs a real build for CodeQL to see the code, so use manual build mode and your normal build command:
# .github/workflows/codeql.yml (steps excerpt)
- uses: github/codeql-action/init@v3
with:
languages: c-cpp
build-mode: manual
queries: security-extended,./codeql/house-queries
- run: ./build.sh # your normal build
- uses: github/codeql-action/analyze@v3For a codebase the size of a game engine, a full CodeQL build on every pull request is slow. Run it nightly on the main branch and run Semgrep plus clang-tidy on each pull request.
3. Routing the findings with n8n
Both tools write SARIF, so one small workflow handles both. A Webhook node receives the SARIF summary from the CI job; a Code node groups the results by severity; a Switch node sends errors to a Slack channel the security team watches, warnings to a Jira ticket, and notes to a pull request comment through the GitHub node. Keep the routing table in the workflow and the thresholds in n8n variables so changing who gets paged does not need a code change.
4. A throwaway microVM for agent-suggested commands
When an agent suggests shell commands (build this, run that test), run them in a Firecracker microVM with no network interface and no credentials. Firecracker can boot straight from a JSON config file with no API calls [6]. The outline:
- Bake a minimal rootfs once. Its init script mounts the second drive, runs
run.shfrom it with a time limit, writes the output back to the drive, and powers off. - For each job, pack the agent's script into a small ext4 image.
- Boot a VM with the read-only rootfs and the job image, and no
network-interfacesentry. - Read the output back from the job image, then delete it.
#!/bin/bash
# run-in-microvm.sh: run one agent-suggested script in a throwaway Firecracker VM
set -euo pipefail
JOB=$(mktemp -d)
cp "$1" "$JOB/run.sh" && chmod +x "$JOB/run.sh"
truncate -s 64M "$JOB.ext4"
mkfs.ext4 -q -d "$JOB" "$JOB.ext4" # -d copies the folder into the new filesystem
cat > "$JOB.json" <<EOF
{
"boot-source": {
"kernel_image_path": "/opt/firecracker/vmlinux",
"boot_args": "console=ttyS0 reboot=k panic=1 pci=off"
},
"drives": [
{"drive_id": "rootfs", "path_on_host": "/opt/firecracker/rootfs.ext4", "is_root_device": true, "is_read_only": true},
{"drive_id": "job", "path_on_host": "$JOB.ext4", "is_root_device": false, "is_read_only": false}
],
"machine-config": {"vcpu_count": 1, "mem_size_mib": 512}
}
EOF
# The guest powers off when run.sh finishes; the timeout is the backstop
timeout 300 firecracker --api-sock "$JOB.sock" --config-file "$JOB.json" > "$JOB.console.log" 2>&1 || true
mkdir -p "$JOB.out"
sudo mount -o loop,ro "$JOB.ext4" "$JOB.out"
cat "$JOB.out/output.log" 2>/dev/null || cat "$JOB.console.log"
sudo umount "$JOB.out"
rm -rf "$JOB" "$JOB.ext4" "$JOB.json" "$JOB.sock" "$JOB.out" "$JOB.console.log"In production, start Firecracker through its jailer so each VM also runs in its own chroot, namespaces and cgroup.
5. Splitting the review queue with CODEOWNERS
You do not need a custom routing service to split review by blast radius. GitHub's CODEOWNERS file assigns reviewers by path, and branch protection can require a code owner's approval before merge [7]. The last matching pattern wins, so put the general rule first:
# .github/CODEOWNERS
* @example-org/team-leads
# High blast radius: a named human reviews every change
/Source/Networking/ @example-org/security-team @example-org/network-leads
/Source/Online/ @example-org/security-team @example-org/network-leads
**/*PlayerController* @example-org/gameplay-leads @example-org/security-team
**/*SaveGame* @example-org/persistence-owners
**/*Serialization* @example-org/persistence-owners
# Fast lane: tests and generated code, owned by the CI bot team
**/Tests/ @example-org/ci-fast-lane
*.generated.h @example-org/ci-fast-laneThe fast lane then becomes a policy on that one team: approve automatically when the build, Semgrep, CodeQL and tests are all green, and send anything else back to a person.
What breaks first: review capacity
Most coverage of this story asks whether AI can write good code. That is the wrong question. The model's output quality matters less than the fact that a team reviewing an order of magnitude more code than normal will approve things it would have caught at normal speed. The failure mode is not bad code. It is tired review.
So the first automation is triage, not a clever scanner. Rank every model-written diff by how much surface it touches: new network handlers, parser changes, anything touching player input, anything touching persistence. Review those first, in person. Boilerplate and test scaffolding go to a fast lane with looser checks. If your team cannot split the queue like that, the model's volume will flatten all of it into one unreviewed blur.

The checks I would build, and the ones that do not work
CI runs the scans: Semgrep for the shallow patterns [4], and clang-tidy or CodeQL for the C++ memory and concurrency bugs [5], since Unreal is C++ and Semgrep's coverage there is thinner than its web-language coverage. n8n routes what the scans find: a Webhook node receives the CI result, an IF node on the exit code, and a Slack or Telegram message goes out with the findings attached.
Three tempting checks do not work as proposed:
Deterministic diffing against a "clean baseline" is noise. The same prompt to the same model produces different output each run, so your diff is a wall of random variation. If you want drift detection, hash the compiled artifacts or run behavioral tests, not the source text.
Scanning commit messages for prompt injection looks in the wrong place. Commit messages are written by the agent, not read as instructions, though agents do read git log in later tasks, so it is not a zero surface. The main injection surface is what the model reads while working: issue bodies, documentation, dependency READMEs, web content fetched during a task. Point the injection checks at those inputs, and treat every ticket body and vendored doc as untrusted text.
"Retrain the model" is not a control you have. Epic reportedly uses Claude, and nobody outside Anthropic retrains Claude. The controls that exist are pinning the model version so behavior does not shift under you, prompt discipline, and tightening what lands in the context window. The same logic applies to poisoning: you do not control the training data. The poisoned thing in your threat model is context, meaning the repos, docs, tickets and vendored dependencies the model reads.
One more pattern to avoid in the checks themselves: do not "fix" raw buffer handling by swapping C string calls for slightly different C string calls. In Unreal code the correct target is the engine's own types, FString and FCString, or checked TArray access, not strncpy, which has its own non-terminating edge case that has bitten security teams for decades.
What to copy, and what to skip
A teardown of Claude on Unreal describes compilation and test gates as the backbone: compiler warnings as errors feeding back into the model's loop, and iterative rebuilds until the code passes [3]. That is the honest framing for automatic rewrites: they are not safe by design, they break working code regularly, and the build plus test suite is the only thing standing between a confident rewrite and a silent regression. If your tests do not gate the model's output, the model is not in your pipeline, it is in production.
MicroVM isolation for model-suggested commands is worth copying: run what the agent suggests in a throwaway VM or container with no network and no credentials, and record what it did [6]. This is the single cheapest containment decision in the whole stack.
What I would skip: treating every model suggestion as needing a sign-off ritual. In the fast lane from the triage section, if the build, the static pass and the test suite are green, an approve-on-exception flow beats a mandatory human click. The network-handler and input-handling diffs still get a person, every time. The human attention you save on the fast lane is the scarce resource this whole pivot consumes.

The day-one list
- Pin the model version in config, not in a prompt. When the provider retires that version, you want the build to fail loudly, not the behavior to drift.
- Wire the scanners into CI: Semgrep for shallow patterns [4], clang-tidy or CodeQL for C++ memory bugs [5], findings attached to the pull request. Let n8n route the findings to where people actually look.
- Inventory the injection surface: list every place the model reads text you do not control, and mark those as untrusted input in your pipeline docs.
- Give any agent with shell or network access a throwaway execution environment with no credentials inside it.
- Split the review queue by blast radius, so the humans you have read the network handler changes and not the test fixtures.
None of this is futuristic. It is a few weeks of pipeline work and a policy doc. The interesting part of the Epic story is what happens to security practice: it turns into factory quality control, and most teams have not started building the factory.