Machine Owner Key (MOK) is a key enrolled by the system owner to trust additional boot-time code on a Secure Boot system. It is often used to authorise kernels, drivers, or other signed components outside the platform vendor’s default trust set. Defenders protect the enrolment process and review which keys are trusted.
What a Machine Owner Key actually does
A Machine Owner Key, or MOK, extends the trust chain on a Secure Boot system by letting the system owner approve additional boot-time code. It is a deliberate exception mechanism, not a replacement for platform firmware trust.
The practical value of MOK is flexibility: it can authorise kernels, drivers, and other signed components that are not part of the vendor’s default trust set. That flexibility is useful for custom kernels, out-of-tree drivers, and specialised platform builds, but it also means the trust decision moves closer to the system owner and away from the hardware vendor.
How MOK fits into Secure Boot trust
Secure Boot normally starts from keys embedded or trusted by the platform firmware. MOK adds a second trust path, allowing administrators to enroll additional certificates so signed boot components can load without disabling Secure Boot entirely.
That makes MOK a governance control as much as a technical one. The key itself is not the bootloader or kernel, but it becomes authoritative for what the machine will accept at boot, which means its enrollment and stewardship determine the boundary of trust.
Because MOK expands the trust set, it should be treated as part of the system’s trust policy, not as a convenience setting. The more keys are enrolled, the harder it becomes to reason about which code is actually permitted to run during early boot.
Where MOK trust boundaries are strongest, and where they weaken
MOK is strongest when it is used sparingly, with tightly scoped certificates and a clear record of why each key exists. It is weakest when the same key is reused widely, when old keys remain enrolled after they are no longer needed, or when enrollment is handled informally by local administrators.
Attackers value any path that expands boot trust, because code accepted at boot can affect kernel integrity, security enforcement, and the visibility defenders depend on later in the stack. Cryptographic key misuse is often dangerous not because the key is complex, but because trust decisions made early can persist long after the original need has passed.
If an enrolled key is exposed or abused, the issue is not just unauthorized boot-time code, but the possibility of durable persistence through trusted components that appear legitimate to the operating system.
How defenders govern and review MOK usage
Defenders should keep an inventory of enrolled MOKs, understand which systems rely on them, and periodically confirm that each trusted key still maps to an approved operational need. The review should include who can enroll keys, how enrollment is approved, and whether the same certificate is being used across systems where it should not be.
It is also important to distinguish boot trust from file trust. A signed component may still be inappropriate for a given environment even if the signature is valid, so the trust decision should reflect both provenance and operational necessity. Key inventory, rotation, and compromise handling are central here because a trusted boot key has a lifecycle just like any other high-value signing asset.
When MOK is used for custom kernels or drivers, the surrounding process should make it obvious which components are covered, who approved them, and how revocation will happen if the trust relationship changes.
Risk and Threat Considerations
MOK creates a durable trust exception, so any weakness in enrollment, storage, or review can become a path for persistent boot-level compromise. The main danger is not the presence of the key itself, but the chance that an untrusted or overbroad certificate quietly broadens what the machine will accept at startup.
Failure mechanism: An attacker or careless administrator introduces a key that is reused too broadly, left enrolled after it is no longer needed, or exposed through poor key handling, then signs boot-time components that the firmware will accept as trusted.
Impact: The system may load malicious or tampered code early in boot, creating persistence, undermining kernel integrity, and complicating detection and recovery because the compromise sits inside an apparently trusted execution path.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
NIST SP 800-53 Rev 5, NIST SP 800-57 and CIS Controls v8 set the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| NIST SP 800-53 Rev 5 | IA-5 — Authenticator Management | MOK is high-value trust material that requires lifecycle control and review. |
| CM-6 — Configuration Settings | MOK enrollment changes boot trust configuration and must be governed as a protected setting. | |
| SI-7 — Software, Firmware, and Information Integrity | MOK determines what signed code is allowed to run during boot, directly affecting integrity. | |
| Recommendation — Manage enrolled boot trust keys with controlled issuance, rotation, and revocation. Restrict and document changes to Secure Boot trust configuration. Verify boot-time code integrity and investigate unexpected trusted components. | ||
| NIST SP 800-57 | 3 — Key Management Lifecycle | MOK is a signing key whose trust value depends on lifecycle, rotation, and revocation discipline. |
| Recommendation — Track the full lifecycle of trusted boot keys, including rotation and retirement. | ||
| CIS Controls v8 | 5 — Account Management | MOK enrollment should be limited to approved administrators with defined ownership and review. |
| Recommendation — Limit who can enroll or remove trusted boot keys and review access regularly. | ||
Practitioner Guidance
Why practitioners should care: MOK is one of those controls that looks narrow but affects the whole boot trust model. If you allow arbitrary or poorly governed enrollment, you turn a controlled exception into a standing trust surface.
What to watch for: Review whether MOK enrollment is restricted, whether keys are tied to a documented need, and whether there is a clear process to remove trust when a kernel, driver, or signing key is retired.
Practitioner takeaway: Treat MOK as an exceptional trust grant, not a convenience feature, and keep its enrolled keys as tightly governed as any other high-value signing material.
Related resources from NHI Mgmt Group
- Who should be accountable for machine identity assets that have no clear owner?
- What breaks when machine identities have no clear owner?
- Who is accountable when machine-key theft turns a SharePoint breach into persistence?
- Who is accountable when a machine credential or signing key is exposed and valid tokens can be minted on demand?
Deepen Your Knowledge
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.
Reviewed and updated by the NHIMG editorial team on October 17, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org