> ## Documentation Index
> Fetch the complete documentation index at: https://docs.enigm.io/llms.txt
> Use this file to discover all available pages before exploring further.

# OTA Security

> Enigm OS OTA layered security, signing, and Remote Attestation model.

Enigm OS OTA security is a layered defense architecture. It relies on multiple independent controls across transport authentication, request validation, manifest trust, artifact verification, Device Eligibility, Remote Attestation, and Hardware-Backed Signing.

This page consolidates the OTA security model, signing architecture, and Remote Attestation model.

## Overview

OTA security reduces software delivery risk by separating release authority, request handling, metadata trust, artifact integrity, device eligibility, and device-side verification.

```mermaid theme={null}
flowchart TD
  Authority["Release Authority"]
  Controls["OTA Security Controls"]
  Transport["Transport Authentication"]
  Request["Request Validation"]
  Manifest["Manifest Verification"]
  Artifact["Artifact Verification"]
  Eligibility["Eligibility Checks"]
  Attestation["Remote Attestation"]
  Device["Device"]

  Authority --> Controls
  Controls --> Transport
  Controls --> Request
  Controls --> Manifest
  Controls --> Artifact
  Controls --> Eligibility
  Controls --> Attestation
  Controls --> Device
```

The diagram describes security responsibilities rather than implementation topology.

## Security Objectives

OTA security is designed to support:

* Release authenticity.
* Release integrity.
* Device eligibility.
* Request authentication.
* Replay resistance.
* Rollout governance.
* Software supply chain risk reduction.
* Privacy-preserving device correlation.
* Independent verification before installation.

## Defense-In-Depth Model

OTA security relies on multiple independent controls. No single control should be treated as sufficient.

### Layer 1: Transport Authentication

Transport authentication protects communication channels and reduces network tampering risk.

This layer supports:

* Authenticated transport.
* Mutual client authentication for private OTA workflows.
* Protected communication channels.
* Request authentication.

Transport authentication alone is not sufficient to establish release trust.

### Layer 2: Request Verification

Request verification ensures that OTA requests are validated before release information is returned.

This layer supports:

* Request validation.
* Freshness validation.
* Replay resistance.
* Request integrity.
* Per-request cryptographic signing.

Request verification is evaluated with Device Trust, OTA Eligibility, and Remote Attestation when device-integrity evidence is required.

Private OTA workflows use authenticated transport together with request-level signatures. Requests are freshness-sensitive and include integrity checks over the request content. Requests that fail authentication, freshness, integrity, or eligibility validation fail closed.

### Layer 3: Manifest Trust

Manifest trust protects release metadata.

This layer supports:

* Signed release metadata.
* Release authenticity.
* Release authorization.

Manifest verification does not replace artifact verification.

### Layer 4: Artifact Verification

Artifact verification protects the update payload.

This layer supports:

* Hash verification.
* Integrity validation.
* Corruption detection.

Artifact integrity reduces risk from corrupted or modified update content. It does not replace production signing or device eligibility.

### Layer 5: Device Eligibility

Device eligibility determines whether a device should receive a given release.

This layer supports:

* Preauthorized enrollment.
* Enrollment status.
* Device Trust.
* Channel eligibility.
* Rollout policy.

Device eligibility is separate from artifact verification. Enrollment is not treated as open self-service registration for protected OTA access.

### Layer 6: Remote Attestation

Remote Attestation is an additional eligibility signal.

This layer supports:

* Device integrity validation.
* Enrollment verification.
* Protected metadata access decisions.
* Private artifact access decisions.
* Sensitive rollout channel decisions.

Remote Attestation complements OTA controls; it does not make unsigned metadata, unsigned artifacts, weak transport authentication, or uncontrolled rollout policy acceptable.

### Layer 7: Production Signing

Production signing establishes trusted release origin.

This layer supports:

* Release authorization.
* Hardware-Backed Signing.
* Trusted release origin.

Production signing is a release authenticity control. OTA delivery does not replace signing, and devices should only treat releases as trusted when required verification succeeds.

## Signing Authorities

Enigm OS separates signing authorities by purpose.

### Current Authority: OTA Manifest Signing Authority

The OTA Manifest Signing Authority authorizes OTA manifests and release metadata.

This authority is responsible for:

* Manifest authorization.
* Metadata authorization.
* Release metadata authenticity.
* Approval evidence for OTA release metadata.

This authority is not the same as the Production Release-Signing Authority.

### Production Release-Signing Authority

The Production Release-Signing Authority is the authority for production image and release artifact signing.

This authority is responsible for:

* Production image signing.
* OTA payload signing.
* Signing-critical release artifacts.
* Production release authorization.

This authority operates through dedicated Hardware-Backed Signing controls and must remain distinct from the OTA Manifest Signing Authority.

## Current Production OTA Manifest Signing Model

The current Enigm OS OTA model uses PIV-backed hardware security key offline manifest signing.

This model provides:

* Hardware-backed offline signing.
* Physical operator participation.
* Non-exportable key material.
* Manifest and metadata authorization.
* Separation from release-signing workflows.

The current model authorizes OTA manifests and metadata. It provides release authenticity for the manifest layer, not full production image signing authority.

### Protected Signing Material

The manifest signing key must not be stored in Git repositories, CI/CD variables, build scripts, developer workstations, online object storage, or release artifacts.

The signing authority remains hardware-backed and operator-mediated. Systems that prepare manifests can request signing, but they must not gain access to private key material.

## Production HSM Release-Signing Architecture

The Enigm OS production release-signing architecture is designed around a dedicated physical HSM.

The production architecture supports:

* Non-exportable production keys.
* Release authorization.
* Production image signing.
* OTA payload signing.
* Signing-critical release artifacts.

Production governance capabilities include:

* Dual control.
* Multi-party approval.
* Audit logs.
* Key ceremonies.
* Secure backup procedures.
* Release governance.

The Production Release-Signing Authority is not the same authority as the current OTA Manifest Signing Authority. The Production Release-Signing Authority acts as the release authorization root of trust for production artifacts.

## Production Signing Trust Boundary

Production signing has a clear trust boundary.

### Inside The Trust Boundary

* Physical HSM.
* Non-exportable private keys.
* Approved signing policies.
* Authenticated operators.
* Audit records.
* Key ceremonies.

### Outside The Trust Boundary

* Build systems.
* CI runners.
* Artifact repositories.
* OTA services.
* Developer workstations.
* Source repositories.
* Release scripts.

Systems outside the trust boundary can request signatures but must never access private keys.

Private production signing keys are intended to remain hardware-resident and non-exportable. Build systems, release services, repositories, developer machines, and artifact stores are outside the private-key trust boundary.

## Signing Flow

The conceptual signing flow is:

1. Build artifacts are produced.
2. Release pipeline prepares signing payloads.
3. Operator approval occurs.
4. Signing authority validates policy.
5. Signing authority signs.
6. Verification occurs.
7. Release gates execute.
8. Release is published.

```mermaid theme={null}
sequenceDiagram
  participant Build as Build Artifacts
  participant Pipeline as Release Pipeline
  participant Operator as Operator Approval
  participant Authority as Signing Authority
  participant Verify as Verification
  participant Gates as Release Gates
  participant Publish as Publication

  Build->>Pipeline: Provide release artifacts
  Pipeline->>Operator: Request approval
  Operator->>Authority: Approve signing request
  Authority->>Authority: Validate signing policy
  Authority->>Pipeline: Return signed payloads
  Pipeline->>Verify: Verify signatures
  Verify->>Gates: Provide verification result
  Gates->>Publish: Approve release publication
```

## Remote Attestation

Remote Attestation supports eligibility decisions based on device-produced security evidence.

Within the Enigm OS OTA model, Remote Attestation helps determine whether a device is eligible to:

* Enroll.
* Register.
* Access protected update metadata.
* Receive private update artifacts.
* Access sensitive rollout channels.

```mermaid theme={null}
flowchart TD
  Device["Device"]
  Evidence["Attestation Evidence"]
  Eligibility["Eligibility Evaluation"]
  Enrollment["Enrollment"]
  Channel["Channel Access"]
  Metadata["Metadata Access"]
  Artifact["Artifact Access"]

  Device --> Evidence
  Evidence --> Eligibility
  Eligibility --> Enrollment
  Eligibility --> Channel
  Eligibility --> Metadata
  Eligibility --> Artifact
```

Remote Attestation is a production eligibility control for selected protected workflows. This documentation does not claim that every production device is attested on every request.

Remote Attestation is evaluated alongside authenticated transport, request signing, enrollment binding, and rollout policy. It is not a replacement for any of those controls.

## Attestation Evidence

Attestation evidence can include:

* Hardware-backed device identity signals.
* Device integrity signals.
* Verified software state.
* Device lock state.
* Build identity.
* Patch level.
* Device model.
* Device eligibility.
* Freshness signals.

Attestation evidence is interpreted as security evidence for eligibility decisions. It is not a substitute for manifest verification, artifact verification, or release signing.

## Verification Requirements

Backend verification requirements include:

* Attestation authenticity.
* Certificate chain validity.
* Root of trust.
* Device integrity.
* Enrollment binding.
* Privacy-Preserving Device Handle binding.
* Freshness.
* Channel eligibility.
* Device eligibility.

Conceptual rejection conditions include invalid trust chain, unsupported device, ineligible build, stale attestation, replay attempt, or eligibility failure.

## Replay Protection

Attestation evidence is freshness-sensitive.

The server can require:

* Nonce.
* Challenge-response.
* Transaction binding.

Freshness controls reduce risk from reused evidence. Replay protection is evaluated together with request authentication, request integrity, and device eligibility.

## Relay Protection

A valid attestation proves that eligible hardware produced the evidence. It does not automatically prove that the current requester is the same enrolled device.

Additional bindings can include:

* Enrollment binding.
* Device handle binding.
* Transport identity binding.
* Request binding.

Relay protection reduces risk where valid evidence is forwarded, reused, or presented outside the expected device context.

## Privacy Model

OTA security uses Privacy-Preserving Device Handles for device correlation and minimizes device telemetry required for eligibility.

OTA security is not intended to collect:

* Message content.
* Media content.
* Contact data.
* User behavior telemetry.
* User conversations.
* Private key material.
* IMEI, IMSI, ICCID, Android ID, serial numbers, email addresses, phone numbers, or location data.
* IP addresses or User-Agent strings as device identity records.

Long-term storage should prefer policy outcomes rather than raw attestation payloads.

OTA reporting is limited to the minimum operational events needed to understand update progress, verification, installation success, or failure conditions. Reports are protected through the same private OTA authentication model and are not designed to contain personal identifiers.

## Public OTA Surface

The public OTA web surface is intentionally minimal. It can describe stable release history and verification information, but it does not expose protected metadata routes, private artifact locations, staged rollout controls, draft releases, paused releases, or manual download paths.

Production packages are delivered only through Enigm OS Updater after eligibility, release metadata verification, artifact verification, and rollback checks succeed.

## Threat Model

OTA signing and security controls are intended to mitigate:

* Private key theft.
* CI compromise.
* Developer workstation compromise.
* Repository compromise.
* Unauthorized signing.
* Test-key misuse.
* Artifact replacement.
* Modified release metadata.
* Replay of stale eligibility evidence.

Residual risks include:

* Malicious source code.
* Authorized operator abuse.
* Misconfigured policy.
* Verification defects.
* Signing authority compromise.
* Vulnerable software released through authorized processes.
* Future unknown vulnerabilities.

Hardware-Backed Signing reduces key exposure and supports release authorization, but it does not prove that released software is free of defects or malicious logic introduced before signing.

## Relationship With Trust Security Center

Trust Security Center evaluates local integrity.

Remote Attestation evaluates OTA Eligibility.

These systems serve different purposes:

* Trust Security Center provides local device posture visibility.
* Remote Attestation provides server-evaluated eligibility evidence for selected workflows.

## Relationship With OTA Architecture

OTA Architecture governs release lifecycle, rollout, client verification, and installation flow.

OTA Security defines the layered controls that protect release trust, eligibility, signing, and attestation.

See [OTA Architecture](/os/ota-architecture).

## Limitations

See [Platform Limitations](/legal/limitations).
