Signed Command Envelope

Design and verify an HMAC-SHA256 signed command envelope — nonce + TTL/expiry + replay cache + receiver-side allowlist — for a downlink control channel such as a cloud→Mac actuation path over MQTT or WebSocket. Use when designing or reviewing a coach→device command channel, the Night Landing Track C downlink, or any signed command path where the receiver must reject forged, replayed, expired, or out-of-allowlist commands. Covers the envelope schema, canonical serialization, CryptoKit HMAC sign/verify, the fail-closed verification order, replay-cache and key-domain-separation design, and the threat-model checklist. Not for transport TLS, user-auth tokens / JWT sessions, at-rest encryption, or the telemetry UPLINK path (which stays unidirectional and read-only).

CodeAlive-AI affa09b 2 files · 12.9 KB Updated

File contents

codealive-ai/agentic-secrets/tree/main/.agents/skills/signed-command-envelope commit affa09bf38

Frequently asked questions

npx skillmds@latest add codealive-ai/signed-command-envelope