MonoStrata: Secure Runtime Method Patching for Unity
Phase 1 Price + 10% Off at launch
MonoStrata is a native patching engine for Unity’s Mono backend, enabling developers to intercept and reroute JIT-compiled methods at runtime with precision and safety. Built for systems engineers, diagnostics developers, and advanced Unity toolmakers, MonoStrata gives you low-level control without the risk of unsafe memory manipulation or brute-force DLL hacking.
This is Phase 1 of a multi-phase system. It includes full support for:
- Secure 1:1 native method replacement
- Built-in hashing for pointer validation
- Strict patch filtering, user assemblies only (Assembly-CSharp, not UnityEngine)
- Lightweight runtime API and Validator(C#) and native enforcement layer (C++)
- Runtime restore system to revert patched methods on-demand
- Support for Func<>, Action<>, and custom delegates
Built-In Safety
- Blocks all Unity internal methods (UnityEngine, UnityEditor, etc.)... only user-defined methods in Assembly-CSharp-like assemblies are eligible for patching
- Native patching locked behind secure validation
- The native runtime cannot patch anything without validation from the interop, enforcing multiple safety layers:
- Requires a cryptographically hashed value generated by the interop
- Patching is only allowed for direct delegate references (no reflection, no indirect calls)
- The native runtime is non-functional without the interop layer; this guarantees:
- Runtime and interop are inseparable
- Patching cannot proceed without .NET-side safety checks
- Runtime usage is tied to safe, verified entry points only
- All patch operations include structural checks, signature verification, and fallback handling to prevent access violations or instability
- Patched methods can be reverted at any time, restoring the original function pointer with full integrity
Package Includes
- Fully documented API
- Native DLL for runtime execution
- Unity interop layer with logging and validation
- Example MonoBehaviour for integration
- PDF manual covering validation, patching, restore lifecycle, and license