On this page, 8 sections
To design anti-cheat heuristics without banning honest players, detect things the game cannot do rather than guessing at intent, confirm signals against what the server knows, plan allowances for lag and your own scripts, combine signals into a confidence score, respond in steps from logging to removal, keep the evidence so mistakes can be reversed, and tune thresholds against real play as well as real cheats.
False positives are the quiet failure of anti-cheat. A missed cheater is annoying. A banned regular who did nothing wrong leaves, tells their friends, and takes some trust in the server with them. Communities can absorb a fair amount of cheating; they do not forgive being treated as cheaters. This guide covers how to build detection that is strict on cheats and careful with people.
Detect the impossible, not the unusual
Most cheats are not caught by recognizing the cheat. They are caught by noticing something happened that the game cannot produce. That distinction matters for false positives. "Unusual" includes skilled players, odd play styles and strange network conditions. "Impossible" is much narrower.
Good heuristics are framed as physical or rule limits:
- Movement: a distance covered between updates faster than any legitimate means allows for the player's state, on foot, in a vehicle, in an aircraft or falling.
- Health and armour: values that rise without a legitimate source the server saw, or damage that never registers.
- Damage dealt: rates or ranges no weapon allows.
- Possession: a weapon or item the player was never given.
- Entity creation: vehicles, objects or explosions spawned at rates ordinary play never produces.
- Server events: sensitive actions called with out-of-range values, out of context or too often.
Each of these is checked against what the server itself knows. That was the founding principle when we built the security side of a FiveM anti-cheat engine: anything learned only from the client is a hint, never proof. The FiveM anti-cheat case study describes the full set of heuristics.
Plan for the things that look like cheating
Most false positives come from a short list of causes. If nobody plans for them up front, they show up as bans.
Your own game mechanics
Server teleports, respawns, admin moves, fast travel, vehicle types with unusual speed and scripted healing all produce readings that look like cheats. Every heuristic needs to know about them. In the anti-cheat work, allowances for the server's own teleports, respawns and vehicle types were built in, because that is where movement false positives come from if nobody plans for them.
Network conditions
Lag and desync produce rubber-banding, delayed damage and position jumps. A player on a poor connection can appear to teleport. Thresholds need headroom for this, and a single reading should never be decisive.
Unusual but legitimate scripts
A custom resource that grants health, spawns props or moves players will trip generic detections. Server owners need a way to tell the anti-cheat what their scripts legitimately do.
Edge states
Loading in, switching characters, entering and leaving interiors, and dying mid-action are moments when state changes quickly. Detections that fire during transitions are a common source of complaints.
Score evidence instead of snap-banning
A single anomaly is not proof. The fix is to stop treating each detection as a verdict and start treating it as evidence. Each signal carries a confidence, signals add up, and the response depends on the total.
A graded response that works in practice:
- Low confidence: logged for review. Nothing happens to the player.
- Repeated or combined signals: the score rises and server staff are alerted, with the evidence attached.
- High confidence: removal. A trap event fired, or a confirmed server event exploit, are the kinds of signal that justify acting automatically.
Some signals belong permanently in the low tier. Client-side integrity checks, for example, report through a channel the cheater controls. They add to a player's score but should not ban on their own.
That graded response is what lets a server run strict detection without banning its own community. It also gives staff something to work with. A ban backed by a timeline of logged signals is defensible. A ban backed by "the anti-cheat said so" is not.
Free weekly email
Get The Compliance Brief every Tuesday
One email a week from Jacob Masse: the security and compliance stories that changed something that week, and what each one means if you sell software to enterprise buyers. Five stories, a take on each, five minutes to read.
Free. Unsubscribe in one click, and replies reach Jacob directly. Read the latest issue or browse the archive.
Keep evidence and make reversal easy
Every automated action should keep the evidence behind it: which signals fired, their values, the player's state and the time. Staff should be able to look at a ban, understand it in a minute, and reverse it in one step if it was wrong.
That evidence has to be handled with care. It contains player identifiers and behaviour, which is personal information. Collect only what you need to detect cheating and ban evasion, limit who can read ban records, and do not keep them longer than you need. If you want a model for what a useful record looks like, our post on logging and audit trails covers the principles.
Measure both error rates
Anti-cheat teams usually measure one number: how many cheats they catch. The other number, how often detection fires on honest players, matters just as much and is easy to skip.
Measuring both means testing in a controlled environment twice:
- Against the techniques each heuristic is meant to catch. In the anti-cheat engagement that meant teleporting, spawning, event abuse, health and weapon manipulation and entity spam, each run against the detection meant to stop it.
- Against ordinary play. Normal sessions, busy servers, poor connections, custom scripts, every job and vehicle type. Count how often each heuristic fires when nobody is cheating.
Thresholds were then tuned from those results, not chosen by instinct. That is the step most teams skip, and it is the step that decides whether a community trusts its anti-cheat. When cheat developers change their methods, the same process runs again.
Testing your own defences against real techniques is the same discipline as a penetration test: find out how the system actually behaves under attack instead of how you hope it does.
Design checklist
Before a heuristic ships, it should pass these questions:
- Is it confirmed against something the server knows, or only something the client reported?
- Does it describe something the game cannot do, rather than something rare?
- Does it know about the server's own teleports, respawns, vehicles and custom scripts?
- Does it tolerate lag and state transitions?
- What confidence does it carry, and can it act alone or only add to a score?
- Has it been run against the cheat it targets and against ordinary play, with both rates recorded?
- Is the evidence kept, readable by staff and enough to reverse a mistake?
A heuristic that cannot answer these yet belongs in log-only mode until it can.
When heuristics are not the answer
Some problems look like detection problems but are really design problems. If players can grant themselves money by calling a server event, the fix is validating the event, not detecting the result. Detection is the safety net; secure server code is the floor. Our guide on API security best practices covers input validation in general terms, and the same thinking applies to game servers.
Equally, the most reliable detections cost almost nothing in false positives. Trap events, decoys no legitimate script ever calls, give a near-certain signal because no honest player can trigger them by accident. Put those at the top of your confidence scale.
Common questions
What causes most anti-cheat false positives?
The server's own mechanics that nobody accounted for, such as teleports, respawns, fast vehicles and custom healing, plus lag and desync. Building allowances for these into each heuristic, and refusing to act on a single reading, removes most of them.
Should an anti-cheat ever ban automatically?
Yes, but only on high confidence evidence, such as a trap event firing or a confirmed exploit of a server event. Everything else should log or alert staff, with the evidence kept for review.
How do you test an anti-cheat for false positives?
Run it against ordinary play in a controlled environment, covering busy servers, poor connections, every job and vehicle type and your custom scripts, and count how often each heuristic fires. Tune thresholds from those numbers.
Are client-side detections reliable?
They add useful evidence, but the client can be modified, so they can be bypassed or faked. Use them to raise a score, and confirm anything that matters on the server.
If you build anti-cheat or run detection for a game and want an outside view of your heuristics and their error rates, book a free call. We will tell you where to look first.
Want detection you can trust? Penetration testing starts from $3,500 for one app or API.
See penetration testingOr book a free call