MakrrEdge
Security design

What a device trusts, and why

This page describes the mechanisms as they run in production. It is written for the engineer who has to sign off on putting a box in the field, not for a brochure.

1 · Provisioning

X.509 on AWS IoT Core, one policy per serial

A device is registered by its hardware serial from the dashboard, which issues a provisioning key pair. The installer uses that pair once to bootstrap: the platform creates an X.509 certificate on AWS IoT Core with a policy scoped to the device's own serial, and hands the device an encrypted certificate bundle. From then on the device talks MQTT over TLS with its own certificate; telemetry, tracks and commands travel on topics under horus/<serial>/ that only that certificate may use.

The management API the device calls over HTTPS is authenticated with an HMAC, computed with the device's API secret over the timestamp, method, path, body hash and a nonce. A request whose timestamp is more than five minutes off, or whose nonce has been seen before, is rejected, so a captured request cannot be replayed.

2 · Updates

Signed manifest, encrypted bundle, three checks before install

LayerMechanismWhat it stops
ManifestEd25519 signature over the canonical manifest JSON; public keys are pinned on the device and verification refuses to run if no key is presentA forged release, a release from anyone but us
BundleSHA-256 of the bundle checked against the signed manifestA tampered or truncated download
ConfidentialityBundle encrypted with AES-256-GCM; the content key is wrapped for each device with RSA-OAEP using that device's own keyOne device's bundle being replayed to another; reading the payload in transit or from storage
InstallAtomic switch to the new release; the last three releases stay on disk; a failed start rolls backA bricked device after a bad release
PlatformOne bundle per target platform (Jetson JetPack 5, Pi 5 + Hailo, x86-64); resolution fails closed, so a device with no bundle for its platform gets no update rather than the wrong oneA JetPack bundle landing on a Pi

Download URLs are presigned and short-lived. The public keys and the latest-release endpoint are the only unauthenticated parts of the update path, because a fresh device has no credentials yet; the bundle contents are signed, so an intercepted response cannot forge a release.

3 · Identity

A serial bound to the board, not to the SD card

At first boot the agent seals a fingerprint of the hardware it runs on and the platform pins it. On every check-in the platform compares the presented fingerprint with the pinned one: an exact anchor match passes; a weaker match on platform plus machine-id or MAC overlap is accepted as low assurance and logged; anything else is a mismatch. A cloned card on another board is reported, and refused when enforcement is switched on. Moving a device to new hardware is an explicit deprovision and re-provision by an operator, which clears the pin.

4 · Health and watching the watchers

A failure that can be invisible for a day is a bug

Every per-item step in the device's upload and detection loops is exception-guarded, critical threads are supervised, and their liveness rides on the heartbeat. The platform side watches heartbeat transitions and backlog age and alerts on them, so a silent device is noticed by the platform, not only by the customer. Local data is deleted only after the platform has durably confirmed receipt; the confirm endpoint fails closed.

5 · Data residency and deletion

EU hosting, scheduled purge

The application runs in Heroku's EU region; uploads, models and firmware are stored in AWS eu-central-1; device messaging is AWS IoT Core. Account deletion is a scheduled purge that includes IoT data (certificates, policies, things), not a soft delete. A data processing agreement is published at /legal/dpa.

6 · Reporting a vulnerability

Tell us first

If you find a weakness in the agent, the update path or the platform, write to the contact address in our Terms of Service with the details and give us a reasonable time to fix it before publishing. We acknowledge reports, we do not pursue good-faith researchers, and we credit you if you want.

Not on this page on purpose: accuracy numbers for any model, customer names, and any statement that the product makes you comply with the Cyber Resilience Act or the AI Act. Those are not ours to claim.