Skip to content
Platforms / 05Mono and IL2CPPUnity security audits

Unity.

What your build
gives away.

Mono assemblies can expose much of your C# structure. IL2CPP compiles code to native binaries, but metadata, scenes and assets remain available for inspection. We check what your shipped game reveals.

Get a free first look Explore the build
A miniature sci-fi game level separated into scene, structure and packaged asset layers.
Build / Mono and IL2CPPIllustrated, layer by layer
  • Assembly-CSharp.dll
  • GameAssembly.dll
  • global-metadata.dat
  • .assets
  • AssetBundles

01 / Inside the build

A package.
Many ways in.

Select a layer to see what it contains and which tools can read it.

Inside the package

Mono backend: <Game>_Data/Managed/Assembly-CSharp.dll (plus Assembly-CSharp-firstpass.dll and other assemblies)

The game's own C# code compiled to.NET IL. BepInEx's plugin docs describe Assembly-CSharp.dll as the file that 'contains game-specific code', found in the '<Game Name>_Data\Managed folder'.

Reads with a decompiler

High. These are standard.NET assemblies; dnSpyEx and ILSpy decompile them to near-original C#, and dnSpyEx can debug Unity game assemblies with no source code required.

Indicative readability. Build settings, obfuscation and access to a running device change the effort.

Tools that can read these layers

dnSpyEx · ILSpy · Il2CppDumper · Cpp2IL · AssetRipper · AssetStudio · UABEA · MelonLoader / BepInEx

02 / The method

One build.
Six ways to inspect it.

Agents inspect the package, trace its behaviour and collect evidence through six stages. An engineer verifies each finding before it enters your report.

Unpack.

Opens the build and lists every file, format and layer.

Tools used in this stage
  • inspect_artifact
  • extract_artifact
  • inspect_managed_artifact
Illustrative run log
  1. unpack
    extract_artifact Demo_Win64.zip

    Mono build, 61 assemblies, 3 asset bundles

  2. read
    inspect_managed_artifact Assembly-CSharp.dll

    3,904 types, every name kept

  3. map
    project_managed_application_graph

    SaveSystem, LootTable, NetworkClient

  4. hunt
    search_strings "Cavern_|unreleased"

    2 scenes not reachable in play

  5. hunt
    find_xrefs_to_name ApplyDamage

    damage trusted from the client

  6. hunt
    search_strings "titleSecret|AKIA"

    1 backend secret key

  7. run
    capture_process_scenario

    save file edited, gold accepted

  8. prove
    export_evidence_bundle

    6 findings, ranked, sent to the engineer

8 / 8 eventsEngineer review follows ↗

A written example of the report format. Replay is condensed; the real time budget is agreed before a run and printed on the report.

03 / Exposure areas

What can
escape the build.

The places we look on Unity, the business risk behind them, and the changes that reduce exposure.

Readability alone is not a vulnerability. Impact depends on what the recovered material lets someone do.

01

Mono builds ship readable game logic

With the Mono backend, Assembly-CSharp.dll in the Managed folder is a normal.NET assembly that decompiles to near-original C#. Anyone can read damage formulas, open checks and server endpoints, then patch or hook them with dnSpyEx, BepInEx or MelonLoader.

The fix

Ship with IL2CPP plus an obfuscator for anything sensitive, and move every check that matters to the server.

CWE-656

02

IL2CPP metadata still maps the whole codebase

IL2CPP compiles to native code, but global-metadata.dat still holds type, method and field names and every string literal. Il2CppDumper uses it to label the native binary in IDA or Ghidra, so IL2CPP raises effort without hiding the design.

The fix

Treat IL2CPP as a speed bump: strip secrets from code, consider metadata encryption or obfuscation, and verify with the same dump tools attackers use.

03

Client-authoritative gameplay, scores and currency

When the client decides speed, damage, match results or currency grants and the server simply accepts them, a modified client can send any value. Unity's own Cloud Code guidance calls clients 'potentially vulnerable' and says servers should be the authoritative source of game state.

The fix

Send inputs or intents from the client and validate ranges, rates and state transitions on the server before changing anything persistent.

CWE-602

04

In-app purchases verified locally or not at all

Unity's IAP docs warn that local validation 'is less secure because a malicious user can more easily tamper with code on their own device to bypass the check'. A USENIX Security 2022 study of 39,121 Unity mobile games found 8,954 (22.89%) with this class of flaw.

The fix

Validate every receipt on your backend against the store's verification service and grant currency or DLC server-side only.

05

Backend secret keys hardcoded in the build

Admin or server keys for services such as PlayFab end up in C# constants, ScriptableObjects or StreamingAssets config and are recovered by a string search. Microsoft's PlayFab docs say: 'Never include your developer Secret Key in a client build that you send to your customers.'

The fix

Rotate the exposed key, keep privileged calls in server code (Cloud Code, CloudScript, Functions), and ship only public client identifiers.

CWE-798

06

Save data and PlayerPrefs tampering

Unity's docs state that PlayerPrefs is stored 'in a local registry, without encryption' and should not hold sensitive data. Games that keep currency, opens or entitlements in PlayerPrefs or plain save files can be edited in minutes.

The fix

Keep anything of value server-side; for offline games, sign save files and reject ones that fail verification.

CWE-312

07

Unreleased content shipped inside demos and updates

Everything in a Resources folder is always built into resources.assets, and StreamingAssets is copied verbatim, so cut or upcoming levels, characters and text often ship before announcement. Asset extractors then surface them for data miners.

The fix

Use separate build profiles or Addressables groups for demo builds and audit the final asset inventory before every release.

08

Art, audio and levels extracted and reused

AssetRipper and AssetStudio export textures, meshes, audio and whole scenes back into editable form. That makes reskins, unauthorized reuploads and asset reuse cheap for anyone holding the build.

The fix

Accept assets are extractable: keep source files private, watermark key art, monitor stores for clones and keep takedown evidence ready.

09

Shipping an outdated, vulnerable Unity runtime

The runtime inside every build carries engine bugs until the game is rebuilt. CVE-2025-59489 (CVSS 8.4) affected apps built with Unity 2017.1 onward and required developers to rebuild or patch the runtime library.

The fix

Track the engine version in each shipped build, rebuild on patched editors, or apply Unity's binary patch tool when a runtime CVE lands.

CWE-426

04 / Sample findings

From recovered evidence
to a fix you can check.

Explore three illustrative Unity reports. Switch to the re-test to see what the next build changes.

01 / 03

Illustrative example · Free-to-play mobile idle game, IL2CPP, Android and iOS

A purchase verified only in the game.

Gem packs are granted as soon as a client-side receipt check returns true, and no receipt ever reaches the backend. Patching one method in libil2cpp.so (located via the recovered metadata) grants any pack without paying.

Evidence comes first

The full teardown records the recovered artifact, its business impact and a fix for your stack.

Recovered artifactEXAMPLE / 01
// Il2CppDumper dump.cs
public class StorePurchaseHandler : MonoBehaviour
{
    // RVA: 0x1A4F2C0 Offset: 0x1A4F2C0
    private bool ValidateReceipt(string receipt) { }
    // RVA: 0x1A4F3E8 Offset: 0x1A4F3E8
    private void GrantGems(int amount) { }
}
// stringliteral.json: "iap_validate_local", "gems_pack_large"

These fictional examples show the report format. All names, hostnames and credentials are made up. They do not describe real customer work.

05 / On the record

The risk
has a history.

These reports show what other researchers found in released software. Each links to the original source.

  1. 2025

    An unsafe file-loading issue in the Unity runtime

    Unity published guidance for CVE-2025-59489, affecting applications built with vulnerable editor versions. The advisory explains mitigation and patching options for developers shipping affected players.

    Unity Security Advisory (opens in a new tab)
  2. 2022

    Payment verification placed in the client

    The PAYMENTSCOPE study at USENIX Security 2022 analysed Unity mobile games and found payment checks that were missing or trusted only the client. It illustrates why native compilation does not replace server-side entitlement decisions.

    USENIX Security 2022, 'Playing Without Paying' (Zuo and Lin) (opens in a new tab)

Before the review

Unity
audit questions.

Compare pricing and scope, or read how we verify findings.

What does a Unity security teardown inspect?

Mono assemblies can expose much of your C# structure. IL2CPP compiles code to native binaries, but metadata, scenes and assets remain available for inspection. We check what your shipped game reveals. An engineer verifies the findings, explains their business impact and writes fixes for your stack.

Does IL2CPP make a Unity game impossible to inspect?

No. IL2CPP compiles code to native binaries, but metadata, scenes and assets can still be inspected. Mono builds can expose much of the C# structure. We check the shipped game, including whether unreleased content or important client-side decisions remain recoverable.

What does a Unity teardown report include?

The paid teardown includes recovered evidence, findings ranked by business impact and a fix written for your stack. Audit and re-test adds a same-budget check of the updated build and a dated statement. The free first look reports counts and excludes recovered code and credential values.

Page updated . Samples are illustrative; public research is attributed above.

Your build. Your evidence.

See what
yours gives away.

Start with counts of exposed keys, files and readable logic. A full teardown adds verified evidence, business impact and a fix written for your stack.

Only software you own or are authorised to submit. No code or credential values in the free counts-only result.