Compliance

Phase 1, Phase 2, then keep it running

A fixed-price gap analysis, remediation through to your audit, and upkeep after it. All in a workspace you keep.

All compliance
Security

Find it before a buyer does

Testing, assessments and security leadership, run by the researcher who found the Mirai botnet kill switch.

All security
Industries

Prove you are secure

To the people you sell to, raise from or answer to.

All industries
Resources

Learn the space

Original research, free tools and plain-language guides, from a published security researcher.

Read the blog
Security

Securing Your Anti-Cheat Itself: Keys, Heartbeats and Tamper Resistance

On this page, 8 sections
  1. Why the anti-cheat is an attack surface
  2. Authenticated communication
  3. Licence and key handling
  4. Tamper resistance
  5. The backend and admin surface
  6. Privacy in the ban data
  7. A security checklist for anti-cheat teams
  8. Common questions

Securing an anti-cheat itself means treating it as a target: authenticate every heartbeat and report so they cannot be forged or replayed, keep licence and server keys out of client-visible code and make them revocable, detect when your own components are removed or altered, and protect the ban data you collect. An anti-cheat that can be switched off or forged is worse than none.

Anti-cheat teams spend most of their effort on detections. The attackers they are detecting spend a good share of theirs on the anti-cheat. If a cheat developer can stop your client module reporting, fake a clean heartbeat, steal a server's licence key or feed your backend false reports, every detection behind it stops mattering. This guide covers the security of the product, not its detections.

Why the anti-cheat is an attack surface

An anti-cheat has unusual reach. It runs code on players' machines, it receives reports from thousands of servers, it makes decisions that remove people from communities, and it often holds identifiers that follow players between servers. That makes it valuable to three kinds of attacker:

  • Cheat developers, who want it blind, silenced or fooled.
  • Griefers and rivals, who want to turn it against honest players or other servers, for example by forging reports that get someone banned.
  • Anyone after the data: licence keys that can be resold, server lists, ban records and player identifiers.

When we ran the security side of a FiveM anti-cheat engine, the work covered the product as well as its detections, because an anti-cheat that can be forged, disabled or turned against the servers it protects is an attack surface of its own. Our anti-cheat security case study sets out the full scope.

Authenticated communication

An anti-cheat has at least three parties talking: the client module on the player's machine, the server component on each game server, and the provider's backend. Every one of those channels needs to answer two questions: is this message really from who it says, and is it fresh?

Heartbeats that cannot be faked

Client modules typically report their status to the server on a schedule. A heartbeat that is just "I am here and fine" can be replayed or generated by anything. Heartbeats need to be authenticated, tied to the session, and carry something the receiver can check for freshness, so an old heartbeat cannot be sent again and a forged one fails verification.

Even then, remember who controls the client. An authenticated heartbeat proves the message came through your module's channel; it does not prove the machine behind it is honest. That is why client integrity signals add to a player's score rather than banning on their own. A client that stops reporting, reports inconsistently or fails integrity checks raises suspicion, and the server confirms what matters.

Server to backend

Game servers send detections, ban requests and evidence to the backend, and receive ban lists and configuration back. Both directions need mutual authentication and integrity protection. A backend that accepts unauthenticated ban reports lets anyone ban anyone. A server that accepts unauthenticated configuration lets anyone switch detections off.

Replay protection everywhere

Nonces, timestamps with tight windows, or sequence numbers, on every message that changes something. Replaying a legitimate "unban" or "clean" message is one of the cheapest attacks on a system that skips this.

Licence and key handling

Anti-cheat products are usually licensed per server. The licence key is both a commercial asset and a security credential, because whoever holds it can speak to the backend as that server.

  • Keep server keys out of client-visible code. Anything shipped to clients, including scripts the game streams to players, should be assumed readable. A key there is a published key.
  • Store keys in server configuration, not in resource files that get shared, sold or committed to repositories.
  • Make every key revocable, quickly, without breaking other customers. Leaked keys are a matter of when, not if.
  • Scope keys. A server key should only be able to act for that server, not read other customers' data or ban lists.
  • Watch for misuse. One key used from many addresses at once is either a leak or resale.

The general practices for storing and rotating credentials are the same as for any software company; our guide to secrets management covers them.

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.

Tamper resistance

An attacker who cannot fool the anti-cheat will try to remove it. Server owners who dislike a detection may try to disable it too. The engine should be able to tell when its own components have been removed or altered, and respond.

Practical measures include:

  • Presence checks: the server expects each client module to report; silence is a signal, not a pass.
  • Integrity checks on the server component and its configuration, reported to the backend, so a modified install is visible.
  • Consistency checks between what the client reports and what the server observes.
  • Fail closed where it matters: a server whose anti-cheat component is missing or altered should not quietly report itself as protected.

No client-side tamper protection is permanent. It raises the cost and buys time. The server-side checks are what keep working when it is beaten, which is why the engine's design put the server first.

The backend and admin surface

The provider's own backend holds the most valuable things in the system: every customer server, every key, every ban record. Treat it like any production service holding sensitive data:

  • Strong authentication with two-factor for staff and customer dashboards.
  • Least privilege for support staff, with every ban, unban and key action logged against a named person.
  • Input validation on every endpoint that accepts reports or evidence from game servers.
  • Rate limits so a compromised or hostile server cannot flood the system.
  • Regular independent testing. A penetration test of the backend and its APIs is the most direct way to find out what an attacker can reach. Our post on API security best practices covers the common weaknesses.

Privacy in the ban data

Ban evasion detection needs identifiers that persist across accounts. That makes ban data personal information, and potentially sensitive. In the anti-cheat engagement, identifiers were collected only to the extent needed to detect cheating and ban evasion, access to ban records was limited, and records were kept no longer than necessary.

For a provider, this is both a legal question and a trust question. Players and server owners need to believe a ban database is accurate, protected and not kept forever. Each ban should carry its evidence so it can be reviewed and reversed, and the people who can read or change records should be few and logged.

A security checklist for anti-cheat teams

  • Every channel between client, server and backend authenticated, integrity protected and replay resistant.
  • No server keys in client-visible code; keys scoped, revocable and monitored.
  • Missing or altered components detected and reported, not silently ignored.
  • Client signals weighted as evidence, never as sole grounds for a ban.
  • Backend tested independently, with staff actions logged.
  • Ban data minimized, access limited, retention bounded and every ban reversible.

Common questions

Can a client-side anti-cheat be bypassed?

Eventually, yes. The client runs on hardware the player controls. Tamper resistance raises the cost and buys time, but the defences that hold are server-side checks that confirm what matters regardless of what the client reports.

How should an anti-cheat store licence keys?

In server-side configuration only, never in code that ships to clients. Each key should be scoped to one server, revocable without affecting others, and monitored for use from unexpected places.

What happens if anti-cheat heartbeats are not authenticated?

Anyone can send a fake one, so a cheater can silence the client module and replace its reports with clean ones. Authenticated, session-bound heartbeats with replay protection close that gap.

Is ban data personal information?

Yes. Identifiers used to link accounts and detect ban evasion relate to real people. Collect only what you need, limit access, keep it no longer than necessary and keep the evidence so bans can be reviewed.

If you build an anti-cheat or a similar security product and want its own security tested, book a free call. We will tell you where to look first.

Is your anti-cheat itself a target? Penetration testing starts from $3,500 for one app or API.

See penetration testingOr book a free call

Before you go

Want the rest of this by email?

If this was useful, I send a few short notes on security posture. Unsubscribe in one click, and replies reach me directly.

From Jacob Masse, Principal of TrazTech: the files by email, then a few short notes over the next month. No spam, unsubscribe in one click.