Join our Newsletter — 33% off our NHI Course
Architecture & Implementation

ReadyToRun

← Back to Glossary
By NHI Mgmt Group Updated November 25, 2026 Domain: Architecture & Implementation

ReadyToRun is a precompilation format for managed applications that stores ahead-of-time generated native code alongside the intermediate code. The runtime can use that code at startup instead of JIT compiling everything, which reduces first-run latency while still allowing fallback to JIT for code paths that need it.

How ReadyToRun works

ReadyToRun is a precompilation format for managed applications that places ahead-of-time generated native code next to the intermediate code. At startup, the runtime can use that native code instead of compiling every path on demand, which can improve perceived startup speed while preserving the option to JIT compile code paths that still need runtime specialization.

The key idea is not to eliminate the runtime compiler entirely, but to shift some compilation work earlier in the release process. That makes ReadyToRun a performance and packaging feature rather than a separate security boundary.

Why ReadyToRun exists

For managed runtimes, the first execution cost often comes from JIT compilation, metadata loading, and cold-path initialization. ReadyToRun reduces that startup penalty by shipping precompiled native code for commonly used methods, so applications can begin executing useful work sooner.

This is especially valuable for short-lived processes, cloud services that scale out quickly, desktop apps with user-visible launch delays, and workloads that are sensitive to time-to-first-request. The trade-off is that the image can be larger and some optimizations may still depend on JIT at runtime.

What ReadyToRun changes in the runtime path

ReadyToRun changes when compilation happens, not what the application is allowed to do. The runtime still owns method binding, type loading, verification, and any fallback compilation needed for paths that were not precompiled or cannot safely use the shipped native code.

Because the native code is embedded alongside intermediate code, ReadyToRun images can be reused across many executions of the same build artifact. That improves startup predictability, but it also means the artifact now contains both portable code and a precompiled execution path that should be treated as part of the released software supply chain.

Security and operational implications

ReadyToRun does not by itself create a new class of vulnerability, but it can change the operational profile of an application. The precompiled code may reduce startup-related noise in telemetry, while the remaining JIT fallback paths can still introduce performance variance or make code-path coverage less obvious during testing.

From a security perspective, the important question is whether the precompiled artifact is produced from trusted source code and distributed through a controlled build pipeline. If the build or release process is compromised, the resulting native code can carry that compromise into production just as any other compiled artifact would.

Risk and Threat Considerations

ReadyToRun mainly changes performance behavior, but it also changes what defenders need to trust in the release artifact. If the precompiled native image is tampered with, signed from a compromised build, or distributed outside the expected pipeline, the application can start cleanly while still executing malicious or altered logic.

Failure mechanism: An attacker who reaches the build or packaging stage can embed modified native code into the ReadyToRun image, or abuse fallback JIT paths to hide behavior that is only exercised at runtime.

Impact: The result can be silent integrity loss in the released application, with altered execution paths, harder review of shipped code behavior, and a broader attack surface for supply-chain compromise.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

SLSA, NIST SP 800-53 Rev 5 and CIS Controls v8 set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
SLSASupply-chain levels for software artifactsReadyToRun images are build artifacts whose integrity depends on trusted provenance.
Recommendation — Verify the build provenance for precompiled artifacts before promoting them to production.
NIST SP 800-53 Rev 5SI-7 — Software, Firmware, and Information IntegrityIntegrity controls apply to shipped native code and any tampering in the release artifact.
Recommendation — Validate the integrity of ReadyToRun artifacts and block altered binaries from deployment.
CIS Controls v8CIS-16 — Application Software SecuritySecure build and release practices govern compiled application artifacts and their release path.
Recommendation — Apply secure build and release controls to precompiled application artifacts.

Practitioner Guidance

Why practitioners should care: Treat ReadyToRun as a release engineering choice that must fit into code-signing, artifact provenance, and deployment validation. Its value is strongest when startup latency matters, but the artifact should still be governed like any other production binary.

What to watch for: Review whether the build pipeline, dependency inputs, and release artifacts are controlled well enough that the precompiled code can be trusted. In environments with strong supply-chain controls, ReadyToRun can be a useful optimization; in weaker pipelines, it simply gives untrusted code a faster start.

Free weekly newsletter

Subscribe to the NHI & AI Identity Journal

The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.

Bonus 33% off our NHI Course when you subscribe.

NHIMG Editorial Note
Reviewed and updated by the NHIMG editorial team on November 25, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org