UE5 anti-cheat that catches what Easy Anti-Cheat can't: memory editors, movement and saves
A player downloads a free memory editor, types the amount of gold on their HUD into a search box, spends some gold, searches again, and after three or four passes there are two addresses left. They type 999999 into one of them. Your economy, your progression curve and your leaderboard are gone, and the whole thing took about two minutes. There are thousands of videos teaching exactly this, and most of them work on most Unreal Engine games out of the box.
This article is about that two-minute cheat: how it works, why the usual quick fixes do not stop it, and what actually does. It is written from building AdrenalineGuard, our anti-tamper plugin for UE 5.8, and from attacking our own game with the same workflow a cheater uses. Every number below comes from those tests. I will also be clear about what this kind of protection cannot do, because an anti-cheat article that promises everything is lying to you.
Who this is for
Mostly single-player and co-op games, games with an offline economy, games with local saves, and multiplayer games that still trust the client for some values. If your game is fully server-authoritative and the client only renders what the server says, memory editing on the client mostly cheats the cheater's own screen; you should spend your effort on server validation instead. Most indie games are not built like that, though, and that is where client-side protection earns its keep.
How a memory editor finds your value
To defend against something you have to know it step by step. The standard memory editor workflow looks like this:
- Exact value scan. The HUD says 1250 gold, so the tool searches the whole process for the integer 1250. That finds hundreds or thousands of candidates.
- Narrowing. The player spends gold, the HUD now says 1180, and the tool keeps only the addresses that now hold 1180. In our tests a full scan went from 671 candidates down to 2.
- Unknown value scan. If the number is not shown on screen (or is shown as a bar), the tool snapshots everything and narrows with "changed" and "unchanged" passes: take damage, keep what changed; stand still, keep what did not.
- Write and undo. The player writes a new value to each candidate and watches the HUD. Wrong guesses get undone.
- Freeze. A background thread writes the same value to the address many times a second, so health or ammo never drops.
- Pointer scan. Addresses change between runs, so the tool builds a chain of pointers from a static base to the value. That chain gets shared online as a ready-made cheat table.
- Hardware breakpoint. "Find out what accesses this address" sets a debug register (DR0 to DR3) on the address and shows the exact instruction that reads or writes it. From there the cheater can patch code instead of data.
Every step relies on one of three assumptions: the value sits in memory as a plain number, it stays at the same address, and it only changes when the game changes it. Break those three and the workflow stops working.
Why the quick fixes do not hold
- "I check if gold is above a maximum." A cheater sets gold to the maximum minus one. Range checks catch typos, not cheats.
- "I XOR the value with a constant." The stored number is no longer 1250, so the exact scan fails, but the unknown value scan still works perfectly: the encrypted number changes exactly when gold changes and stays put when it does not. Changed and unchanged passes find it as quickly as a plain int.
- "I keep a second copy and compare." The cheater finds both copies in the same scan, because both hold the same number, and writes to both.
- "I store it as a float, or a double, or a string." Memory editors scan every type. This adds about five seconds.
- "I'll just ban them." A ban decided on the player's own machine can be undone on the player's own machine. And one false positive costs you a save, a review and a forum thread.
Layer one: memory that does not hold still
The core idea is to make the stored form of a value meaningless to a scanner and to keep it moving. In AdrenalineGuard a protected value is never stored as a plain number. Instead:
- The key rotates on a timer, every 0.35 seconds by default, even when the value itself does not change. That is what defeats the "unchanged" pass: from the scanner's point of view the stored bytes change all the time, so there is no stable pattern to narrow down.
- The value migrates to a new address, every 2 seconds by default. A saved address goes stale, a frozen address ends up freezing nothing, and a pointer chain points at memory that no longer holds the value by the time anyone shares it.
- A decoy holds the plain number on purpose. It is a copy that no game code ever reads. A scanner will find it, because that is its job. The moment anything writes to it, you know someone is editing memory, because there is no innocent code path to that write.
- Writes are clamped to a policy with a minimum and a maximum, and an optional rate limit (a token bucket with an allowance for one legitimate burst, such as a quest reward).
- An optional ledger for economy values: the value must equal the sum of its recorded transactions, each with a reason code you choose (1 for loot, 2 for a sale and so on). That catches even a cheat that somehow knows every key.
In practice you replace Gold = Gold + 50 with an Add Protected Int call and a reason code, and every read with Get Protected Int. The read costs about 14 nanoseconds, and keeping 64 protected values rotating and migrating costs about 1.1 microseconds per frame.
There is one thing worth saying plainly here. A scan for the number on your HUD will still find something: the decoy, and the copies your UI uses to draw the number. That is unavoidable, because the game has to keep the number somewhere to show it. Those copies are read-only from the game's point of view, so writing to them does not survive the next frame.
Layer two: movement, the part process protection cannot see
Easy Anti-Cheat and similar tools guard the process: they look for injected code, debuggers and known cheat software. What they cannot know is that your character runs at 600 cm/s and has no business crossing the map in one frame. That knowledge belongs to your game, so the checks have to live in your game.
AdrenalineGuard adds a motion component to a Character or Pawn that checks speed, teleports, flight and noclip against limits you set. The hard part is not detecting cheats, it is not accusing honest players:
- Speed tolerance. Max Speed is your real maximum including sprint, plus headroom (1.35 by default) for slopes and buffs.
- Teleport distance must exceed speed times your longest frame. Otherwise a game that hitches to 10 fps reports itself.
- Scripted movement must be announced. Respawns, lifts, cutscene teleports, entering a vehicle and loading a save all look exactly like a teleport cheat. Call Allow Next Movement right before them, and Reset Tracking after a level change.
- Acceleration checks are off by default. Going from run to sprint in one frame reads as roughly 9000 cm/s², so for characters it would report everyone who presses Shift. It makes sense for vehicles.
- Clock-based speedhack detection is off by default too. Unreal clamps world time at 2000 fps, so a very fast machine drifts on its own, and a speedhack usually hooks every clock in the process anyway, so both sources speed up together. Only server time measures this reliably.
Movement evidence is always circumstantial. Lag, server corrections and a single hitch all look like cheating, so no movement violation is ever treated as proof. It feeds a shared suspicion score instead: two teleports are lag; two teleports and a touched decoy are not.
We ran 100 000 steps of randomised honest movement through the checks, with variable frame rate, hitches down to 10 fps, pauses and 695 jumps. Zero reports.
Layer three: save files
Closing memory is pointless if the save opens in Notepad, or in a save editor someone posted on Nexus. Save signing fixes that with HMAC-SHA256: the plugin takes the bytes you would normally write (for example from Save Game To Memory), signs them, and refuses to load anything whose signature does not match.
Two details matter. First, a save can optionally be bound to an account: the player id is mixed into the signature but never written to the file, so a "100% save" copied from another player fails to open. Second, a failed check returns no payload at all, with a status that says why (wrong file, wrong version, length mismatch, bad signature). A half-edited save can never be loaded as if it were fine.
Be honest with yourself about what this stops: save editors, not reverse engineers. The key lives in your build. If your game has a server, the truth about the economy belongs on the server.
Detection is not punishment
This is the part most anti-cheat code gets wrong, and it is a design decision, not a technical one. AdrenalineGuard never punishes anyone on its own. When something is off, it reports the violation, restores the last known good value so the game keeps running, and lets you decide. Every report carries a certainty level:
- Hint: could be an unusual mechanic of yours, or lag. Count it, do nothing visible.
- Strong: hard to explain innocently, but not impossible. Log it, flag the session, tell your server.
- Proof: no legal code path exists. A touched decoy, a forged handle, a hardware breakpoint on protected memory. This did not happen by accident.
Even on proof, do not zero the account. In single player the honest response is usually a log entry and a flag on the save, maybe a separate leaderboard. In multiplayer it is a message to your server, which already holds the truth and can make a decision the player cannot undo. Zeroing progress on a heuristic is how an anti-cheat earns a support queue.
Where AdrenalineGuard beats Easy Anti-Cheat
Easy Anti-Cheat is a process guard. It looks for injected code and known cheat software, and that is all it was built to do. It has no idea what your game is. AdrenalineGuard was built for exactly the part EAC leaves open:
- It knows what your values mean. EAC cannot tell gold from a random integer. AdrenalineGuard knows that gold has a minimum and a maximum, how fast it is allowed to grow, and, with the ledger, which transactions made it what it is. A cheat that never injects a single byte of code, just a memory editor writing a number, is invisible to a process guard and caught here.
- It catches movement cheats. Speed, teleport, flight and noclip are judged against the rules of your character, tuned so that hitches, lifts and respawns are never reported. A process guard has no concept of 600 cm/s.
- It protects save files. EAC does not touch your saves. AdrenalineGuard signs them with HMAC-SHA256 and can bind them to an account, so a save editor or a downloaded "100% save" simply does not load.
- It gives you proof, not guesses. A touched decoy, a forged handle or a hardware breakpoint on protected memory has no innocent explanation, and every report tells you whether it is a hint, strong evidence or proof. You decide the response with that in hand.
- No kernel driver, no launcher, nothing for players to install. It runs inside your own process and inspects only that process. No driver that players worry about, no bootstrapper, no online service to set up before it works.
- Full C++ source and numbers you can check. You can read every line, step through it in a debugger, and run the same attack suite and headless gates we did. Nothing is a black box.
- Measured cost. About 14 ns per read and about 1.1 µs per frame for 64 protected values, with zero false positives in 100 000 steps of honest play.
If your game already ships with EAC, AdrenalineGuard adds the game-rule layer on top of it. If it does not, AdrenalineGuard alone closes the two-minute memory editor cheat that most indie games are wide open to today.
How we tested it: attack first, read code later
An anti-cheat that has only been tested by reading its source is an untested anti-cheat. So we built a red team harness that reproduces the full memory editor workflow against a live, running game: exact scans, unknown value scans with changed and unchanged passes, write and undo, freezing from another thread, pointer scans and hardware breakpoints through the debug registers.
The most important rule of that harness: every attack runs against an unprotected value first. If the attack fails on a plain int, the run is thrown away, because it means the scanner is broken, not that the protection is good. Without that control, a green result means nothing. These are the results:
- Full scan workflow: on a plain int, 671 candidates narrowed to 2. On a protected value, the scan never points at the real store, across every run.
- Write to the found address: plain gold becomes 999999; protected gold is unchanged.
- Freeze: plain value frozen at 424242; protected value leaves nothing to freeze.
- Write into the store directly (simulating an attacker who found it anyway): reported, suspicion 99.6.
- Touch the decoy: reported, suspicion 198.9.
- Hardware breakpoint on protected memory: reported, suspicion 199.0.
Next to that, the pure C++ core runs headless gates in seconds: 100 000 random operations checked against an independent model of what each value should be, plus separate suites for save signing, movement and fuzzing. Inside a running UE 5.8 game, 55 of 55 integration checks pass.
What we did not test, and will not pretend we did: AOB signature scans, disassembly, multi-level pointer scans with a real reverse engineer behind them, and hypervisor-based tools. Those are reverse engineering tools, and no plugin stops a determined reverse engineer on their own machine. One more honest result: our attacker crashed the target by writing blindly across its memory. The cheater gained nothing, but the game still died. No plugin protects against that.
What client-side anti-cheat cannot do
- It is not kernel level and does not fight antivirus software. It only inspects its own process.
- It works on a different layer than EAC. Process protection watches for injected code; AdrenalineGuard knows your game's rules: your values, your movement and your saves. That is exactly the part a process guard never sees, and the two work well side by side.
- It does not replace a server. If you have one, it is the only place where economy and position can really be trusted.
- Nothing is unbeatable. The goal is cost. Today, changing gold in most games takes a free tool and two minutes. After this, it takes real reverse engineering, and most people who wanted 999999 gold will not do that.
A checklist for your game
- List the values a cheater would want: currency, health, ammo, score, XP, cooldowns. Protect those, not every variable.
- Give each one a real policy: minimum, maximum and, for anything that grows, a rate limit with room for your biggest legitimate reward.
- Turn on the ledger for economy values, and give every change a reason code.
- Match movement limits to your game, and call Allow Next Movement before every scripted move. Test on a level with a floor: an empty test level has none, so the pawn is permanently airborne.
- Sign your saves, and bind them to an account if players share them.
- Decide on responses before you ship: count hints, log strong reports, act only on proof, and never wipe progress on the client.
- Attack your own build with a memory editor before a player does. The demo actor shows the decoy's address, so you can confirm detection fires.
Summary
The two-minute memory editor cheat works because most games store important values as plain numbers that sit still at one address. Encrypting them with a rotating key, moving them around and leaving a decoy breaks every step of that workflow, and turns the decoy into proof when someone tries anyway. Movement and save files need their own checks, tuned so that honest players are never accused. Report, restore and let your game decide, instead of punishing on the client. And test the whole thing the way a cheater would, against a running game, with an unprotected value as the control.
Disclosure: I build and sell this plugin.