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
- 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.
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'.
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.
IL2CPP backend: GameAssembly.dll (Windows) or libil2cpp.so (Android) plus global-metadata.dat
IL2CPP converts IL to C++ and compiles it to native code. Unity's manual describes GameAssembly.dll as the 'Library that contains the IL2CPP runtime and all your script code.' The global-metadata.dat file carries type, method and field names and string literals.
Medium. Logic is native machine code, but Il2CppDumper takes the binary plus global-metadata.dat and outputs dump.cs (types, fields, methods, offsets), stub DLLs for dnSpy/ILSpy, a list of all string literals, and scripts that label functions in IDA, Ghidra and Binary Ninja. Cpp2IL aims to reverse the process back to managed DLLs.
Indicative readability. Build settings, obfuscation and access to a running device change the effort.
Serialized content files in <Game>_Data: globalgamemanagers, level files, sharedassetsN.assets, .resS / .resource companions (or a single data.unity3d when compressed)
Project settings (tags, layers, physics, quality), every scene's GameObjects and components, assets referenced by scenes, and texture, mesh, audio and video payloads.
High. AssetRipper converts Unity game files back into native Unity engine format (Unity 3.5.0 to 6000.4.x); AssetStudio exports textures to PNG, meshes to OBJ, audio to WAV/OGG and MonoBehaviour data to JSON.
Indicative readability. Build settings, obfuscation and access to a running device change the effort.
resources.assets (everything under any folder named Resources)
Per Unity's manual, all assets inside Resources folders 'are always included in the build, regardless of whether they're directly referenced by any scene', along with their dependencies.
High, same tools as other serialized files. This is a common route for content that is never shown in-game (cut or upcoming content) to ship anyway.
Indicative readability. Build settings, obfuscation and access to a running device change the effort.
AssetBundles / Addressables (local or downloaded from a CDN)
Unity describes an AssetBundle as 'an archive file that you can use to group together assets to create downloadable content (DLC)'. They hold models, textures, prefabs, audio, scenes and serialized objects such as ScriptableObjects, but cannot contain assemblies.
High. Compression (LZMA/LZ4) is not encryption; UABEA reads and writes bundles and serialized files, and AssetStudio extracts them. DLC content shipped as bundles can be inspected before purchase or release.
Indicative readability. Build settings, obfuscation and access to a running device change the effort.
StreamingAssets folder
Files 'copied without modification into the Player output': typically JSON/XML/SQLite config, video, plug-in files and AssetBundles.
Very high. The files keep their original bytes, so config files, endpoints and tables are readable with any text or SQLite viewer.
Indicative readability. Build settings, obfuscation and access to a running device change the effort.
Engine runtime and debug leftovers: UnityPlayer.dll, SymbolMap, *_BackUpThisFolder_ButDontShipItWithYourGame
UnityPlayer.dll is the native engine (its version identifies which engine CVEs apply). Unity's IL2CPP build docs say the BackUpThisFolder directory holds PDB debug info and the C++ generated from your scripts and should be backed up 'but don't redistribute it'.
If the backup folder or PDBs are accidentally shipped, function names and generated C++ are handed over directly. Otherwise the runtime version is trivially fingerprinted.
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
Map.
Finds the entry points, permissions, servers and what talks to what.
Tools used in this stage
- project_managed_application_graph
- inspect_managed_native_boundaries
- binary_overview
Read.
Reads code and maps recoverable names, logic and sources.
Tools used in this stage
- inspect_managed_members
- compare_managed_members
- procedure_pseudo_code
- read_bytes
Hunt.
Searches for keys, endpoints, checks and content, and ranks them by cost.
Tools used in this stage
- search_strings
- find_xrefs_to_name
- trace_application_feature
Run.
Launches the build and watches it, to confirm what the reading suggests.
Tools used in this stage
- capture_process_scenario
- observe_native_calls
- instrument_with_frida
Prove.
Packs the evidence for the engineer's check and the re-test.
Tools used in this stage
- verify_managed_native_boundaries
- export_evidence_bundle
- unpack
extract_artifact Demo_Win64.zipMono build, 61 assemblies, 3 asset bundles
- read
inspect_managed_artifact Assembly-CSharp.dll3,904 types, every name kept
- map
project_managed_application_graphSaveSystem, LootTable, NetworkClient
- hunt
search_strings "Cavern_|unreleased"2 scenes not reachable in play
- hunt
find_xrefs_to_name ApplyDamagedamage trusted from the client
- hunt
search_strings "titleSecret|AKIA"1 backend secret key
- run
capture_process_scenariosave file edited, gold accepted
- prove
export_evidence_bundle6 findings, ranked, sent to the engineer
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.
01Mono 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.
Ship with IL2CPP plus an obfuscator for anything sensitive, and move every check that matters to the server.
02IL2CPP 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.
Treat IL2CPP as a speed bump: strip secrets from code, consider metadata encryption or obfuscation, and verify with the same dump tools attackers use.
03Client-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.
Send inputs or intents from the client and validate ranges, rates and state transitions on the server before changing anything persistent.
04In-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.
Validate every receipt on your backend against the store's verification service and grant currency or DLC server-side only.
05Backend 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.'
Rotate the exposed key, keep privileged calls in server code (Cloud Code, CloudScript, Functions), and ship only public client identifiers.
06Save 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.
Keep anything of value server-side; for offline games, sign save files and reject ones that fail verification.
07Unreleased 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.
Use separate build profiles or Addressables groups for demo builds and audit the final asset inventory before every release.
08Art, 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.
Accept assets are extractable: keep source files private, watermark key art, monitor stores for clones and keep takedown evidence ready.
09Shipping 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.
Track the engine version in each shipped build, rebuild on patched editors, or apply Unity's binary patch tool when a runtime CVE lands.
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.
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.
The full teardown records the recovered artifact, its business impact and a fix for your stack.
// 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.
- 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) - 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)
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.