Traditional application shielding often relies on boolean validation checks that attackers can bypass using runtime hooking or binary patching. Mirage, developed by morgana.labs, addresses this by directly coupling environmental integrity measurements to the cryptographic key derivation process.
Mechanism and Tamper Response
During build time, build tooling encrypts sensitive secrets and injects generated vault code or runtime components. At runtime, the application derives keys based on measured environmental signals. Forcing a check to pass does not yield the payload, as the mathematical key derivation fails. Responses to detected tampering include:
- Mobile targets: The documented iOS integration returns
nil, whereas other implementations deliver plausible decoy data to mislead inspection.
- Edge LLMs: Protected at layer granularity, compromised runtimes receive degraded weights. Inference can still generate fluent language, but factual reliability collapses.
Target Runtimes and Custom Integration
Supported mobile environments include native Android and iOS, Kotlin Multiplatform, Flutter, and Android-based React Native. Desktop and IoT deployments require scoped native integrations tailored to platform capabilities and memory constraints. For local LLMs, inference binaries link a C runtime compatible with SafeTensors and GGUF. morgana.labs notes that detection coverage, performance overhead, and bypass resistance depend strictly on the validated probe setup in production builds.