Protect your Unity WebGL game against reverse engineering

TrustSig Protect obfuscates and virtualizes the WebAssembly in your Unity WebGL build, and ends the session when someone tampers with it.

01The problem

Unity WebGL builds can be downloaded and patched

A WebGL player downloads the files your build produced.

  1. The browser fetches your WebAssembly, your JavaScript and your data, and it all sits in the cache.

  2. Anyone can open those files and work out where your game rules live.

  3. From there a patched copy runs on their machine, or on a site that is not yours.

02Obfuscation

Protect your game code against static analysis with obfuscation

Names are removed and the structure of your code is hidden.

  1. Function, import and export names are stripped or randomised.

  2. Control-flow flattening hides the order your code runs in.

  3. Opaque predicates add fake decision points that mislead analysis tools.

03Anti-tamper

Detect tampering while your game runs

Protect detects memory editors, attached debuggers and swapped browser functions.

  1. Protect checks its own code while your game is open.

  2. A patched function or an attached debugger ends the session.

  3. The player gets no error and no reason.

04Protections

What TrustSig Protect adds to your build

Virtualization
The game logic you pick runs as bytecode in a virtual machine unique to your build.
Control-flow flattening
Hides the order your code runs in.
Symbol scrubbing
Function, import and export names are stripped or randomised.
Polymorphic builds
Each build comes out different, so a cheat written against one does not fit the next.
Anti-tampering
Detects patched code, hooked browser functions and swapped runtimes while the game runs.
Honeytokens
Bait values no real player touches. Using one identifies an attacker.
05 Questions

Unity WebGL, answered

No. A server check is still the strongest control you have. Protect covers the part of your game that can only run on the player's machine.

A Unity WebGL build ships WebAssembly, and that is what Protect works on.

Only the code you choose runs inside the engine, so the rest of your build runs at the speed Unity gave it.

Protect works on code, not on asset bundles.

06Contact

Talk to us

Tell us what your game ships and what needs protecting. We will get back to you by email.