Part 13 — SecurityLink to the section Part 13 — Security

Version 0.3-draft. This text extends the 0.2.0 baseline backwards-compatibly and is published at the stable /spec/0.2/ and /schemas/v0.2/ addresses. Sections marked “0.3 draft” are new and may change. The 0.2.0 baseline text is in the repository history.

On this page

Maturity: Draft · Profiles: all

13.1 Threat model (summary)Link to the section 13.1 Threat model (summary)

Assets: live video, position history (sensitive: reveals operations and patrol patterns), control authority over an aircraft (safety-critical), device identity (impersonation enables injection of false video or telemetry), audit integrity.

Adversaries: network attacker on the path (internet or site LAN), compromised VMS operator account, compromised gateway host, malicious or buggy third-party client, rogue device presenting itself as a legitimate drone.

Design responses: no plaintext anywhere; strong mutual identity; least-privilege scopes separating view, camera and aircraft; short-lived leases; mandatory audit; schema validation of all inputs.

13.2 Transport securityLink to the section 13.2 Transport security

  • TLS 1.3 (RFC 8446) is REQUIRED on every UNIVIP connection (REST, WebSocket, MQTT, RTSP). TLS 1.2 MUST NOT be negotiated. Cipher suites: TLS_AES_128_GCM_SHA256, TLS_AES_256_GCM_SHA384, TLS_CHACHA20_POLY1305_SHA256.
  • Connections to an OAuth 2.0 token endpoint (§13.3) are not UNIVIP connections: they follow the identity provider's policy and MUST use TLS 1.2 or later. A device presents its client certificate there only when the provider requires mTLS client authentication (RFC 8705).
  • WebRTC media uses DTLS-SRTP as defined by WebRTC; SRT uses AES-128/256; both are REQUIRED when those transports are used.
  • Certificates: devices MUST validate server certificates against a configured trust anchor (public CA or operator CA). Certificate pinning is RECOMMENDED for the configured endpoint. Plain rtsp:// and http:// MUST NOT be offered except on an isolated local link and flagged insecure: true in the descriptor (media.streams[].rtsp.insecure, transports.rest.insecure); conformance tests fail any device offering them by default.

13.3 Device authentication (device → client endpoint)Link to the section 13.3 Device authentication (device → client endpoint)

A device MUST support at least one of:

Method Mechanism When
mTLS (RECOMMENDED for managed fleets) Device presents an X.509 client certificate issued by the operator's CA or by the vendor and registered with the client at onboarding. Each device_id the certificate may present is a subjectAltName URI equal to that device_id (for example urn:univip:acme:SN12345); a gateway certificate carries one such URI per vehicle, or the client registers the gateway's vehicles against the certificate at onboarding. The client MUST refuse a hello for a device_id the certificate is not bound to. Docks, gateways, enterprise aircraft
OAuth 2.0 client credentials (RFC 6749 §4.4) Device holds a client_id/secret or a private-key JWT (RFC 7523) and obtains a short-lived access token (≤ 1 h) from the client's token endpoint, presented as a Bearer token on the WebSocket upgrade and REST calls. Gateways, controller apps
Claim-code enrollment One-time code (Part 05 §5.2) exchanged at the client's enrollment endpoint for one of the above credentials. The code MUST expire within 15 minutes and be single-use. Field onboarding

Static shared passwords, HTTP Basic and HTTP Digest are NOT permitted.

13.4 Client authorization (client → device resources)Link to the section 13.4 Client authorization (client → device resources)

Client-side identity (operator user, VMS service) is the client's concern, but UNIVIP scopes define what a client principal may do toward a device, and the device-side (or client-hosted endpoint) MUST enforce them:

Scope Grants
univip.view Capabilities, telemetry, events, media (Profile S)
univip.camera camera.* and payload.* commands and camera leases (Profile C)
univip.vehicle vehicle.* commands and vehicle leases (Profile N)
univip.config PATCH /config
univip.admin Onboarding, credential rotation

Scopes are carried as the scope claim of a JWT access token (RFC 7519, RFC 9068) issued by the client's authorization server, or as an attribute in the mTLS certificate for machine clients. For requests forwarded through the session proxy, the client-hosted endpoint enforces its users' credentials and states their scopes in the request envelope; the device limits them to the scopes the operator allowed for that endpoint (Part 05 §5.5.1). In every case the client_id of the principal must match the session's verified client identity for status and lease envelopes to reach it (Part 05 §5.3.1). univip.vehicle MUST NOT be granted by default to any role that has univip.camera; the two MUST be separately assignable in the client's role model (Part 04 §4.4).

13.5 Message integrity and replayLink to the section 13.5 Message integrity and replay

  • Every envelope carries msg_id and timestamp; receivers MUST reject commands with issued_at older than 30 s (reason EXPIRED) or in the future by more than 5 s (clock skew allowance; reason INVALID_PARAMETERS), and MUST reject duplicate command_ids.
  • Leases bind client_id; a command carrying a lease_id from a different authenticated client MUST be rejected with LEASE_SCOPE.
  • Where MAVLink is used behind a gateway, MAVLink 2 signing SHOULD be enabled on the native link; it does not replace UNIVIP transport security.

13.6 Input validationLink to the section 13.6 Input validation

Devices and clients MUST validate every received message against the schema named in its schema member before acting on it and MUST reject invalid messages with MALFORMED. Two kinds of schema failure do not make a message invalid (Part 01 §1.4, §1.5): a value outside an open enumeration, and a schema member naming another MINOR of the same MAJOR. Unknown non-must-understand members are ignored (Part 01 §1.4). Numeric ranges in schemas are normative.

13.7 PrivacyLink to the section 13.7 Privacy

Position history is personal and operational data. Clients MUST apply the same access control and retention policy to telemetry as to the associated video. Devices MUST NOT publish operator personal data in telemetry; operator_user appears only in lease and audit records.

13.8 Logging and auditLink to the section 13.8 Logging and audit

See Part 11 §11.7 for control audit. Authentication failures, lease events and configuration changes MUST be logged by both sides with device_id, client_id, timestamp and outcome. On the media plane, DTLS handshake and certificate-verification failures MUST be logged; unauthenticated STUN and other transport noise MAY be rate-limited or logged at a lower level so that it cannot flood the log.

13.9 Key rotation and revocationLink to the section 13.9 Key rotation and revocation

Device credentials MUST be rotatable without changing device_id. Clients MUST support revoking a device credential, after which the device's sessions are closed with UNAUTHORIZED and reconnection fails until re-enrollment.

13.10 Comparison with ONVIF security (Informative)Link to the section 13.10 Comparison with ONVIF security (Informative)

See ../docs/onvif-comparison.md for a side-by-side discussion. In short: UNIVIP mandates TLS 1.3 everywhere, forbids password-digest and HTTP Digest schemes, uses standard OAuth 2.0/mTLS identity, encrypts media by construction (DTLS-SRTP), and adds a lease-based authority model that has no ONVIF equivalent because fixed cameras do not move.

13.11 Device PKI profileLink to the section 13.11 Device PKI profile

Added in 0.3 draft. Requirements here apply to deployments using mTLS (§13.3) and to any X.509 credential a UNIVIP endpoint accepts.

  • Keys. ECDSA P-256 or Ed25519. RSA keys MUST be at least 3072 bits. Keys MUST be generated on the device, or in a secure element the vendor controls, and MUST NOT be shared across devices.
  • Certificates. Device certificates are issued by a CA the client has been configured to trust (operator CA or vendor CA). Each carries a urn:univip: subjectAltName URI per §13.3, keyUsage limited to digitalSignature, and extendedKeyUsage clientAuth. A gateway certificate lists one URI per vehicle it fronts.
  • Lifetime and revocation. Device certificates SHOULD be valid for 30 days or less and renewed automatically (for example ACME, RFC 8555, or EST, RFC 7030). Longer lifetimes (up to 1 year) are allowed only if the CA publishes a CRL (RFC 5280) or OCSP responder (RFC 6960) that the client checks, failing closed for Profile N. Revocation takes effect for new sessions immediately and for open sessions within 5 minutes (§13.9).
  • Trust anchors. A vendor CA MUST NOT be trusted by a client for devices outside that vendor's manufacturer. Name constraints on the vendor CA are RECOMMENDED.
  • Compromise. If a CA or a device key is compromised, the vendor or operator MUST be able to revoke it fleet-wide and the client MUST support removing a trust anchor without changing device_id values.

13.12 Key storage and device attestationLink to the section 13.12 Key storage and device attestation

  • A device implementing Profile N MUST keep its private key in hardware that prevents export (secure element, TPM, or TEE-backed keystore). Profiles S and C SHOULD.
  • A device MAY present an attestation of its key storage and firmware state, as an Entity Attestation Token (EAT, RFC 9711) following the RATS architecture (RFC 9334), at enrollment and on request by univip.admin. A client MAY require attestation before granting univip.vehicle to any lease for that device. The attestation format and verifier trust model are profiled in a later minor version; until then it is out of band.
  • A device that cannot attest MUST declare security.attestation: false in its capabilities (univip.capabilities, member security) so the client can apply its own policy. The same member carries key_storage, secure_boot, signed_firmware, signed_commands and audit_chain.

13.13 Firmware integrity and supply chainLink to the section 13.13 Firmware integrity and supply chain

  • Profile N devices MUST use secure boot and MUST accept only signed firmware updates with anti-rollback protection. Other profiles SHOULD.
  • The reported firmware_version (Part 05 §5.1) MUST identify the signed image actually running.
  • Vendors MUST be able to provide a software bill of materials (SPDX or CycloneDX) for each released firmware and gateway build on request, and SHOULD publish it with each release.
  • Reference implementations MUST publish signed release artifacts and checksums.

13.14 End-to-end command authenticityLink to the section 13.14 End-to-end command authenticity

Transport security (§13.2) protects a hop. A gateway, session proxy or VMS backend that relays a command can still forge or alter it. For Profile N this end-to-end gap is closed as follows.

  • A vehicle.* command envelope SHOULD carry a detached JWS (RFC 7515, compact serialization, alg ES256 or EdDSA) over the canonical command body (RFC 8785, JSON Canonicalization Scheme), signed by a key registered for the lease-holding principal. The signature is carried in the reserved envelope member signature.
  • The device verifies the signature against the key registered for the client_id and operator_user named in the lease, rejecting failures with UNAUTHORIZED. Registering that key is part of onboarding (univip.admin).
  • A device MAY require signed commands (security.signed_commands: true in its capabilities). The target for 1.0 is that Profile N devices MUST require them; in 0.3 this is RECOMMENDED. The signature member is defined in univip.command (DetachedJws in the common schema). The conformance test is in D-SEC-N (Part 14).
  • The 30 s freshness rule and the command_id duplicate rejection of §13.5 apply to the signed body, so a captured signed command cannot be replayed.

13.15 Tamper-evident auditLink to the section 13.15 Tamper-evident audit

  • Audit records of Part 11 §11.7 MUST be written append-only. Records follow univip.audit.v0.2. Each carries seq and prev_hash, the SHA-256 (lower-case hex, 64 zeros at seq 0) of the previous record's canonical form (RFC 8785), forming a hash chain.
  • The device or gateway MUST sign a checkpoint (the latest chain hash with a timestamp) at least hourly while a lease is active and at lease end, with its device credential key, and MUST deliver checkpoints to the client as audit_checkpoint envelopes (univip.audit_checkpoint.v0.2) on the session channel.
  • A client SHOULD store checkpoints independently of the device. A client or auditor verifies a retained log by recomputing the chain and the checkpoint signatures. A break in the chain is a reportable security event.
  • Retention remains at least 90 days (Part 11 §11.7).

13.16 Cryptographic agility for mediaLink to the section 13.16 Cryptographic agility for media

  • The baseline remains DTLS-SRTP as in §13.2. A device SHOULD additionally offer SRTP_AEAD_AES_128_GCM (RFC 7714) and SHOULD support DTLS 1.3 (RFC 9147) where its WebRTC stack allows; a client prefers them when offered. The baseline profile is not removed in 0.x.
  • Media sessions MUST be re-established at least every 24 hours so keys are renewed. Where rekeying within a session is supported, it MUST be used instead.
  • Algorithms are named in the offer, never implied, so a later MAJOR can retire a suite.

13.17 Enrollment hardeningLink to the section 13.17 Enrollment hardening

  • Claim codes MUST carry at least 40 bits of entropy, be unguessable, single-use and expire within 15 minutes (§13.3), and the enrollment endpoint MUST allow at most 5 failed attempts per code before invalidating it, with rate limiting per source.
  • Enrollment MUST bind the new credential to the specific device_id shown to the person claiming it, and the client MUST show that device_id and manufacturer for confirmation before completing enrollment.
  • Enrollment events are audited under §13.8.

The reference gateways expose a claim-code exchange for enrolling an operator signing key (§13.14). It is an extension, not a UNIVIP 0.2 resource:

  • POST /x-univip-gateway/devices/{device_id}/claim-codes (scope univip.admin), body {"client_id": "..."}, returns 201 {"code", "device_id", "client_id", "expires_in_s"}.
  • POST /x-univip-gateway/devices/{device_id}/enroll, no bearer token (the code is the credential), body {"code", "device_id", "operator_user", "kid", "jwk"} with a public JWK only. 201 registers the key for the client_id the code was issued for. Every refusal (unknown, used, expired or mismatched code) is 403 FORBIDDEN; a source that guesses too fast gets 429 with Retry-After. Each issue, success and refusal is audited.

13.18 Availability and abuse limitsLink to the section 13.18 Availability and abuse limits

  • Devices and clients MUST enforce per-client quotas on concurrent sessions, WebRTC peers and request rate, so that one authenticated principal cannot exhaust a shared resource (see the reference review findings WR-18 and WR-22).
  • A device MUST keep telemetry, safety events and lease expiry working under load, and MUST shed viewing and configuration traffic first.
  • Interface and address disclosure in media signaling SHOULD be limited by an operator-configurable allow-list.

13.19 Vulnerability handlingLink to the section 13.19 Vulnerability handling

  • A vendor claiming conformance MUST publish a security contact (RFC 9116 security.txt) and a coordinated vulnerability disclosure policy, acknowledge reports within 7 days, and publish advisories for fixed vulnerabilities in UNIVIP-implementing products.
  • The UNIVIP project publishes its own policy in SECURITY.md.

13.20 Safety interface for Profile NLink to the section 13.20 Safety interface for Profile N

  • A Profile N device MUST enforce geofence, altitude and speed limits on the aircraft independently of UNIVIP, so that a UNIVIP command cannot exceed the vehicle controller's limits. UNIVIP commands are always subordinate (Part 11).
  • A vendor claiming Profile N MUST hold a documented safety case or operational risk assessment appropriate to its jurisdiction (for example SORA, JARUS) for the control function it exposes, and make a summary available to the client's operator. UNIVIP does not provide this case.
  • Where regulation requires broadcast Remote ID (for example ASTM F3411, FAA 14 CFR Part 89, EU 2019/945), UNIVIP does not carry or replace it. A device MAY report remote_id.state (ACTIVE, INACTIVE, FAULT, UNKNOWN) in telemetry so a client can show that broadcast is active.

13.21 Operational assurance and cryptographic tiers (0.3 Draft)Link to the section 13.21 Operational assurance and cryptographic tiers (0.3 Draft)

To let operators specify security and transport hardening independently of vehicle type or functional profiles (ADR-0011), a device MAY declare security.assurance_tier in its capability document (CIVIL, INDUSTRIAL, or DEFENSE):

Requirement Tier 1 — CIVIL Tier 2 — INDUSTRIAL Tier 3 — DEFENSE
Target deployments Commercial VMS, mapping, agriculture, civil delivery Critical infrastructure, refineries, ports, factories/AMRs, public safety Sovereign/tactical ISR, contested-EW / DDIL, coalition C2
Transport & cipher suites TLS 1.3 (§13.2), OAuth 2.0 JWT or mTLS TLS 1.3 AEAD-256 preferred, mandatory mTLS (≤ 30 d certs or fail-closed OCSP/CRL, §13.11), OT/IEC 62443 segmentation CNSA 2.0 / FIPS 140-3 L3+: TLS_AES_256_GCM_SHA384, P-384/Ed448 + Post-Quantum hybrid KEX (X25519MLKEM768 / ML-KEM-1024, declared via security.post_quantum: true)
Media protection DTLS 1.2+ and baseline SRTP (AEAD SHOULD) DTLS 1.2/1.3 and mandatory SRTP_AEAD_AES_128_GCM or AES_256_GCM; 24 h max rekey; host-IP allow-list DTLS 1.3 + SRTP_AEAD_AES_256_GCM (or sovereign link-layer crypto), STANAG 4609 (MISB ST 0601), zero unwhitelisted ICE address disclosure
Key storage & attestation Software or hardware keys Mandatory hardware key storage (TPM, SECURE_ELEMENT, or TEE, §13.12) for Profiles N/A; secure boot & signed firmware (§13.13) FIPS 140-3 L3+ HSM/SE + mandatory EAT hardware attestation (RFC 9711) verified before granting control leases; tamper zeroization
Command authenticity Scoped bearer/mTLS + leases Mandatory detached-JWS signed commands (ES256/EdDSA, §13.14) Post-Quantum / hybrid signatures (ML-DSA-65/ML-DSA-87 + ES384/Ed448) + optional M-of-N dual-control command.signatures[] (security.dual_control: true)
Audit trail Local operational log Mandatory SHA-256 hash chain + signed checkpoints (§13.15) SHA-384/512 hash chain + hardware-signed checkpoints, cross-vehicle operation_id and co_signers[] attribution
Link & wire binding JSON over WSS/HTTPS; optional MQTT 5 JSON over WSS/HTTPS; PTP/NTP time sync; quotas & load shedding (§13.18) Compact binary DDIL encoding (CBOR / PROTOBUF in security.wire_encodings), store-and-forward bursts, and EMCON radio-silence mode (security.emcon_supported: true)

Non-kinetic boundary. Regardless of assurance tier—including DEFENSE—UNIVIP's core specification governs sensing, mobility, autonomy and coordination only and MUST NOT be used to bypass human-on-the-loop authority or safety-certified vehicle controllers (Part 01 §1.1).

Normative wire details for Tier 3 (DEFENSE) and DDIL deployments—compact deterministic CBOR framing, QUIC stream classes and resumable ddil.burst/ddil.ack sync, EMCON radio-silence rules, ML-KEM/ML-DSA hybrid cryptography, and the 8-step M-of-N dual-control signature verification algorithm—are specified in Annex B.

Generated from spec/13-security.md.