Reversing Unity Il2cpp logo

Reversing Unity Il2cpp

Community
trilwu
reversing-unity-il2cpp

Reverse engineer Unity games and apps built with IL2CPP or Mono, using Il2CppDumper, Il2CppInspector, and dnSpy. Use when an APK or IPA contains global-metadata.dat, libil2cpp.so, UnityFramework, or Assembly-CSharp.dll, when jadx shows only UnityPlayerActivity, or when the target is described as a Unity build.

Overview

Publishertrilwu
Repositorysecskills
Skill namereversing-unity-il2cpp
Stars
144
Forks
15
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by trilwu on GitHub. Read the source before you install it.

Installation

Install the Reversing Unity Il2cpp AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/trilwu/secskills.git /tmp/secskills
mkdir -p .claude/skills
cp -r /tmp/secskills/secskills-core/skills/reversing-unity-il2cpp .claude/skills/reversing-unity-il2cpp
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Reversing Unity Il2cpp in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Reversing Unity Il2cpp on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Reversing Unity Il2cpp is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Reversing Unity IL2CPP

Unity ships in two very different shapes, and identifying which one you have is the entire first decision. A Mono build hands you decompilable .NET assemblies. An IL2CPP build compiles C# to C++ to native code, and the C# metadata lives in a separate file that you must recombine with the binary before anything is readable.

When to Use

  • The APK contains assets/bin/Data/Managed/Metadata/global-metadata.dat and lib/arm64-v8a/libil2cpp.so
  • The APK contains assets/bin/Data/Managed/Assembly-CSharp.dll (Mono build)
  • The IPA contains Frameworks/UnityFramework.framework
  • jadx shows only UnityPlayerActivity and Unity plumbing
  • You need to recover game or app logic, anti-cheat behaviour, or the API layer

When NOT to Use

  • Flutter or React Native — use reversing-flutter-apps or reversing-react-native-apps
  • Ordinary native apps — use testing-mobile-applications
  • Desktop game binaries with no Unity markers — use analyzing-binaries
  • Building cheats or bypassing anti-cheat in live multiplayer services — out of scope; that is service abuse, not assessment

Identify the Build

bash
unzip -l target.apk | rg 'global-metadata|libil2cpp|Assembly-CSharp|libmono'
PresentBuildDifficulty
Assembly-CSharp.dll, libmono*.soMonoEasy — decompile the DLL directly
global-metadata.dat + libil2cpp.soIL2CPPThe main path below
Neither, but UnityFrameworkiOS IL2CPPSame as IL2CPP; extract from the decrypted IPA

Mono builds are a short job. Pull the assembly and open it:

bash
unzip -j target.apk 'assets/bin/Data/Managed/Assembly-CSharp.dll' -d ./out
# dnSpy / dnSpyEx / ILSpy / dotPeek — full C# source recovery, and dnSpy can edit
ilspycmd ./out/Assembly-CSharp.dll -o ./decompiled

Everything below is for IL2CPP.

Recombining Metadata with the Binary

IL2CPP splits the information: libil2cpp.so holds the compiled code, global-metadata.dat holds the C# type system — class names, method names, field names, string literals. Neither is useful alone. The tools' job is to match them and produce symbols.

bash
unzip -j target.apk 'lib/arm64-v8a/libil2cpp.so' \
                    'assets/bin/Data/Managed/Metadata/global-metadata.dat' -d ./in

# Il2CppDumper: the standard first attempt
Il2CppDumper ./in/libil2cpp.so ./in/global-metadata.dat ./out

Typical output and what it is for:

ArtifactUse
dump.csEvery class, method, and field with addresses — read this first
DummyDll/Stub .NET assemblies; open in dnSpy/ILSpy to browse the type system comfortably
script.jsonSymbol import for IDA/Ghidra — applies names to libil2cpp.so
stringliteral.jsonString constants: URLs, keys, messages

Il2CppInspector is the alternative when Il2CppDumper fails; it supports a different range of Unity versions and emits Ghidra and IDA scripts plus a richer C++ header. Try both before concluding a build is unsupported.

Version mismatch is the usual failure. The metadata format changes across Unity releases; the tool asks for or infers the version. Read the Unity version first and feed it explicitly:

bash
strings ./in/libil2cpp.so | rg -m3 '20[0-9]{2}\.[0-9]+\.[0-9]+' 
strings ./in/global-metadata.dat | head -5

Protected builds encrypt or scramble global-metadata.dat — the header magic will be wrong and the dumpers will refuse. Signs: the file does not start with the expected metadata magic, or entropy is uniformly high. The practical route is dynamic: let the app decrypt the metadata itself, then dump it from memory once loaded.

bash
# Dump the decrypted metadata from a running process
frida -U -f com.target.app -l dump-metadata.js
# Then feed the dumped file to Il2CppDumper as normal

That pattern — let it unpack itself, dump from memory — is the same one used for packed malware, and it is almost always cheaper than defeating the protection statically. See analyzing-binaries.

Working the Recovered Code

  1. Read dump.cs for the type map. Search for the classes that matter: anything named *Manager, *Service, *Api, *Network, *Auth, *Purchase, *Config.
  2. Load script.json into IDA or Ghidra so libil2cpp.so shows C# method names instead of sub_1A2B3C. Without this step the disassembly is unreadable; with it, it reads like decompiled C#.
  3. Check stringliteral.json for endpoints and keys. Same reasoning as every other framework — string constants survive everything.
  4. Hook at runtime with Frida using the addresses from dump.cs. Method addresses are relative to the libil2cpp.so base, so resolve the module base and add the offset.
javascript
// Pattern: resolve base, add the RVA from dump.cs, intercept
const base = Module.findBaseAddress('libil2cpp.so');
Interceptor.attach(base.add(0x1A2B3C), {
  onEnter(args) { console.log('called with', args[1]); },
  onLeave(ret)  { console.log('->', ret); }
});

Security-Relevant Findings

For an assessment rather than a curiosity exercise, the recurring issues:

  • Hardcoded credentials and endpoints in stringliteral.json — backend keys, analytics tokens, cloud storage credentials.
  • Client-authoritative logic. Currency, entitlements, and validation done in C# and trusted by the server. Verify by calling the API directly.
  • Weak or absent certificate pinning. Unity's networking layer is often configured permissively; check UnityWebRequest usage.
  • Local save and config tampering. PlayerPrefs and local save files storing values the server trusts.
  • Receipt validation done client-side for in-app purchases.

Rationalizations to Reject

  • "jadx shows nothing, so it's protected." Unity apps have almost nothing in the dex by design.
  • "The dumper failed, so the build can't be analyzed." Try the other dumper, supply the Unity version explicitly, and if metadata is encrypted, dump it from memory.
  • "IL2CPP is compiled, so the logic is safe." The metadata ships alongside it. That is the whole point of the format.
  • "The client validates the purchase." Then the purchase is not validated.
  • "I'll read the raw arm64." Apply script.json first. The same function is unreadable before and routine after.

References

  • testing-mobile-applications — platform storage, permissions, and native layer
  • testing-apis — the backend, where client-authoritative logic becomes a finding
  • analyzing-binaries — memory dumping and anti-analysis for protected builds
  • Il2CppDumper, Il2CppInspector, dnSpy/ILSpy, Frida, IDA/Ghidra

Frequently asked questions

What does the Reversing Unity Il2cpp AI skill do?

Reverse engineer Unity games and apps built with IL2CPP or Mono, using Il2CppDumper, Il2CppInspector, and dnSpy. Use when an APK or IPA contains global-metadata.dat, libil2cpp.so, UnityFramework, or Assembly-CSharp.dll, when jadx shows only UnityPlayerActivity, or when the target is described as a Unity build.

Why use Reversing Unity Il2cpp on TypingMind?

Because you install it once and use it with any model. Reversing Unity Il2cpp is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Reversing Unity Il2cpp in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/trilwu/secskills/tree/main/secskills-core/skills/reversing-unity-il2cpp. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Reversing Unity Il2cpp?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Reversing Unity Il2cpp?

As many as you like. As long as a model supports skills, you can use Reversing Unity Il2cpp with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Reversing Unity Il2cpp AI skill free?

Yes. It is published on GitHub by trilwu under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇