Signed commands, verified by the agent
Built
Every command arrives as an envelope the server signed. The agent checks the certificate chain to the root it pinned at enrolment, the signature (before it reads the envelope), that the device and the tenant are its own, the time (an envelope lives at most two minutes), that the command id has not been seen before, and that the envelope carries every permission the command needs. Only a verified command can be executed; the compiler refuses any path that runs an unverified one.
The command signer comes from its own certificate authority that signs nothing else. A device certificate, or a server certificate, cannot sign a command.
Limits: the agent's own audit entries describe what a working agent did; they are not a control against a compromised agent.