Mirage Binds Key Derivation to Runtime Integrity Against App Tampering

Linkmorgana.labsTool

Mirage by morgana.labs protects credentials, application data, and Edge LLM weights on untrusted host devices. By feeding runtime integrity measurements directly into cryptographic key derivation, tampering results in decoy data, nil values, or degraded weights.

Key points

  1. Encrypts sensitive assets at build time and derives decryption keys at runtime using process and environment integrity signals.
  2. Tampering or instrumentation produces an incorrect derived key, serving callers plausible decoy data, nil, or corrupted payloads.
  3. Protects Edge LLM weights at layer granularity across SafeTensors, GGUF, or TOML manifests via a dedicated C runtime.
  4. Offers integrations for native iOS and Android, Kotlin Multiplatform, Flutter, and React Native (Android only), with custom setups for desktop and IoT.

Why it matters

Bypassing conventional anti-tamper mechanisms by patching pass/fail checks fails with Mirage, as the valid cryptographic key cannot be reconstructed without intact runtime integrity signals.

Analysis

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.

Found in

Summary generated by AI (Gemini 3.8 Flash, 5 December 2026). It may contain errors – the original source is authoritative.

Similar in content, found by the AI search.

  • Link:infisical.com

    Infisical: Open-Source Security Infrastructure for Developers and AI Agents

    Infisical is an open-source platform (MIT licensed) covering secrets management, certificate lifecycle management (PKI), and privileged access management (PAM). Designed for modern cloud environments and AI agents, it prevents credentials from being committed to disk or leaked via LLM prompt injection by brokering API calls and access sessions.

    AI & LLMs· Tool

  • Link:Cantina Security

    Apex Flash 1 Abliterated: Open-Weights Security Model with Modified Refusals

    Cantina Security and Yeta Labs have released apex-flash-1-abliterated, an experimental open-weights model designed for authorised security research. Based on GLM-5.3-Flash, this multimodal variant alters refusal patterns across tasks. It assists researchers conducting audits in verified, permitted environments.

    AI & LLMs· Tool

  • Link:inferencer.com

    Inferencer: Local AI Inference with Token Inspection and Deep Model Control

    Inferencer is a native tool for running local AI models with granular control and inspectability. Operating offline within kernel-level sandboxing, it features token inspection, Mixture-of-Experts routing control, and distributed computing across machines.

    AI & LLMs· Tool

  • Repository:NVIDIA/OpenShell

    NVIDIA OpenShell: Isolated Runtime for Autonomous AI Agents

    NVIDIA OpenShell is an open-source runtime written in Rust designed to run autonomous AI agents in secure sandboxes. It enforces declarative policies at the kernel level and guards access to network routes and credentials.

    16.6kstarsRust

    AI & LLMs· Tool

  • Repository:woelper/offgrid

    offgrid: Self-Contained All-in-One Local LLM Runtime in Rust

    offgrid is a portable single-binary Rust tool for downloading, running, and serving large language models completely offline. By compiling llama.cpp straight into the executable, it eliminates Python dependencies and external model servers. It provides developers with a telemetry-free, offline-ready AI environment for chat, coding agents, and API usage.

    4starsRust

    AI & LLMs· Tool

Let's talk about your project

Locations

  • Mattersburg
    Johann Nepomuk Bergerstraße 7/2/14
    7210 Mattersburg, Austria
  • Vienna
    Ungargasse 64-66/3/404
    1030 Wien, Austria

Parts of this content were created with the assistance of AI.