Protect your C and C++ WebAssembly builds

TrustSig Protect obfuscates your Emscripten module and virtualizes the functions you pick, to protect your native code against reverse engineering.

01The problem

C and C++ compiled to WebAssembly can be downloaded and decompiled

A WebAssembly module reaches the browser as a file like any other.

  1. Anyone can save the module your page loads and open it in free tools.

  2. Names, imports and strings survive the compile and show what each part of it does.

  3. The structure of your native code is there to read.

02What gets protected

Protect only the functions you choose

Protection applies to the functions you pick, and the rest of the module is unchanged.

  1. You mark the parts to protect: solvers, pricing, licence checks.

  2. The rest of the module stays as your build produced it.

  3. That keeps the output close to the size you ship today.

03Obfuscation

Protect names, structure and strings with obfuscation

Names are removed, control flow is hidden and strings are encrypted.

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

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

  3. Sensitive values stay encrypted and are decrypted only when they are used.

04Protections

What TrustSig Protect adds to your module

Virtualization
The functions you pick run 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.
String encryption
Sensitive values stay encrypted and are decrypted only when they are used.
Compact output
Virtualization applies only to the functions you pick, so the module stays close to its original size.
Polymorphic builds
Each build comes out different, down to the layout of the bytecode.
05 Questions

Emscripten builds, answered

Protect works on WebAssembly, which is what an Emscripten build produces.

No. You choose which functions to protect, and nothing about the way they are written changes.

Virtualization applies only to the functions you pick, so the rest of the module is unchanged.

Code running inside the engine is slower than plain WebAssembly, which is why it belongs on the logic worth hiding rather than on an inner loop.

06Contact

Talk to us

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