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

Server-Authoritative Design for Multiplayer Game Security

On this page, 8 sections
  1. Why the client cannot be trusted
  2. What the server should own
  3. Inputs, not results
  4. Where full authority is hard, and what to do instead
  5. Client-side checks still have a place
  6. Applying it to an existing game or server
  7. The backend behind the game
  8. Common questions

Server-authoritative design for multiplayer game security means the server decides what is true: positions, health, inventory, currency, outcomes and permissions. The client sends inputs and requests, the server validates them against the rules and its own state, and only the server's result counts. Because players control their own clients, anything decided on the client can be cheated, so anything that matters is decided or confirmed on the server.

Every multiplayer game makes this choice, explicitly or by accident. Games that make it by accident tend to discover it later, when the economy fills with currency nobody earned or players start appearing wherever they like. This guide covers what server authority means in practice, where it is hard, and how to apply it to a game or a modded server that was not built that way.

Why the client cannot be trusted

The game client runs on hardware the player owns. They can read its memory, change its code, inject their own, intercept its traffic and replay or forge messages. No amount of client-side protection changes that fundamental position; it only raises the cost.

That leads to a simple rule we put at the top of every game security plan: anything the server learns only from the client is a hint, never proof. When we built the security side of a FiveM anti-cheat engine, that principle sat above all others in the plan, and every detection that mattered was confirmed against what the server itself knew. The details are in our anti-cheat security case study.

What the server should own

Not every piece of state needs the same treatment. Cosmetic choices, camera angles and local effects can stay with the client. These cannot:

  • Economy: currency balances, prices, rewards and trades. The client asks to buy; the server looks up the price.
  • Inventory and progression: items, unlocks, experience and levels.
  • Combat outcomes: damage, health, deaths and kills, or at least validation of them.
  • Position and movement: where a player is, or a check that where they say they are is reachable from where they were.
  • Permissions: who is an admin, moderator, team leader or owner of something.
  • Entity creation: what may be spawned, by whom and how often.

For each, the server either computes the value itself or receives a claim from the client and checks it against rules and its own record before accepting it.

Inputs, not results

The cleanest server-authoritative design has the client send intentions rather than outcomes. "I pressed fire in this direction" rather than "I hit that player for 80 damage". "I want to buy item X" rather than "set my inventory to include X and my balance to Y". "I finished the delivery" rather than "pay me this amount".

The server then decides whether the intention is possible and what it produces. A client that sends impossible intentions gets refused, and the refusal itself is a useful signal.

This is the same discipline as designing any API that faces untrusted users: never let the caller set a value the server can work out itself. Our post on API security best practices covers the general version.

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.

Where full authority is hard, and what to do instead

Pure server authority is not always practical. Fast action games use client-side prediction so movement feels responsive, and some platforms give the client ownership of certain entities for performance. Modded platforms often inherit a design where the client already decides a lot. In those cases, the server cannot compute everything, but it can still check.

Validate claims against physical limits

The server may not calculate movement, but it can compare successive positions and ask whether the distance covered in the time elapsed is possible for the player's state: on foot, in a vehicle, in an aircraft or falling. A distance no legitimate means allows is a teleport or speed cheat. The same works for health that rises with no source the server saw, damage at ranges no weapon reaches, and weapons nobody was given.

Validate events against context

When the client triggers a server action, check who is calling from the server's own record, whether they are allowed to do this now, whether the values are in range and whether the rate is sane. Refuse and log anything that fails.

Limit what the client can create

Rate limits on entity creation stop the spawning floods some cheats rely on to crash servers or grief players, even where the client is allowed to create entities.

Plan for your own mechanics

Server teleports, respawns and unusual vehicles produce readings that look like cheats. Build allowances into every check, or you will flag your own game.

Client-side checks still have a place

Server authority does not make client-side anti-cheat pointless. Client integrity checks can spot injection and tampering, and report them to the server through authenticated heartbeats. A client that stops reporting, reports inconsistently or fails integrity checks raises suspicion.

The difference is weight. Because the client can lie, those signals should add to a player's score rather than ban on their own. The server-side checks provide the evidence that holds up; the client-side ones provide early warning and corroboration.

Applying it to an existing game or server

Retrofitting authority onto a live game is a long job. A sensible order:

  • Map where trust sits today. List every message the client sends that changes state, and note whether the server checks it. This is a short threat modelling exercise, and our guide on running a threat risk assessment covers the method.
  • Fix the economy first. Anything that grants currency or items on the client's word is where real damage happens.
  • Move permissions to the server. Every privileged action checked on the server, every time.
  • Add plausibility checks for movement, health, damage and entity creation where full authority is not possible.
  • Log refused actions with the payload and player identity, so you can see what is being tried.
  • Test against real techniques and against ordinary play, so you know both how much you catch and how often you misfire.

The backend behind the game

Server authority applies beyond the game server. Matchmaking, accounts, stores, leaderboards, licensing and admin panels are all services that take input from clients. A game with a perfectly authoritative simulation and a store API that trusts the client's price has the same problem one layer out. Authenticated communication between clients, servers and backend services, so messages cannot be forged or replayed, ties the whole system together.

If your studio has never had that backend tested from the outside, a penetration test is the way to find out what a motivated player could do with it. For a sense of how different test types compare, see types of penetration testing.

Common questions

What does server-authoritative mean in game development?

The server holds the true game state and decides outcomes. Clients send inputs or requests, the server validates them against the rules and its own state, and only the server's result is accepted.

Does server-authoritative design stop all cheating?

No. It stops cheats that change state the server owns, such as currency, items and permissions. Aim assistance and seeing through walls work on information the client legitimately has, so they need detection rather than authority.

Can I make a modded or legacy game server-authoritative?

Partly. Where the server cannot compute state itself, it can still validate the client's claims against physical limits, context and rate, and refuse or flag the impossible ones. Start with the economy and permissions.

Do I still need a client-side anti-cheat?

It helps. Client integrity checks give early warning of tampering and add evidence to a player's score. They should not decide bans on their own, because the client can be modified to lie.

If you are designing or retrofitting a multiplayer backend and want an outside view of where the client still holds too much trust, book a free call. We will tell you where to look first.

Players trying to break your game? 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.