Case study
HAGAR — scalable remote attestation for IoT swarms
Remote attestation lets one device prove to another what software it is running. It works well for one device and a trusted verifier. It scales badly to thousands of small, dissimilar devices on an unreliable network — which is exactly the situation in most real deployments. This work examines what a decentralised approach to that problem looks like, and implements one end to end.
The problem
An attestation protocol answers a narrow question: is this device running the software it is supposed to be running? The usual arrangement is a prover and a verifier — the device produces evidence, a trusted party checks it against a known-good measurement.
That arrangement has two properties that stop working as the network grows. The verifier becomes a bottleneck, since every device must reach it and it must check everything. And it becomes a single point of trust: whoever controls the verifier controls the truth about the whole estate.
Heterogeneity makes it harder still. A real deployment is not a thousand identical sensors. It is several device classes with different hardware capabilities, different security features, different firmware versions and different connectivity — some able to perform public-key operations, some barely able to hold a certificate.
The direction
The work explores decentralising both the dissemination and the verification.
Gossip dissemination rather than a star topology: attestation evidence propagates peer-to-peer, so no single node has to be reachable by everyone and the network tolerates partitions and intermittent connectivity instead of failing on them.
A DAG-structured, append-only record of attestation results rather than a single authoritative verifier: results reference earlier ones, so the history is verifiable by any participant and no individual node’s word is decisive.
Capability-aware roles, so that the more capable devices carry the expensive verification work on behalf of constrained neighbours, rather than assuming a uniform device population.
HAGAR, implemented
The ideas were tested by implementing HAGAR, a swarm-attestation scheme, twice: first as a Python prototype to get the protocol logic right, then as a network simulation in C++ on OMNeT++, with real cryptography from OpenSSL rather than placeholders.
- Self-attestation and gossip. Every device periodically measures its own firmware and gossips the result to a handful of peers each round, so evidence spreads through the swarm without a central collector.
- Authenticated, fresh messages. Device-to-device messages carry an HMAC and a timestamp, and anything outside a narrow freshness window is rejected — a forged or replayed message does not count as evidence.
- Signed certificates. Each device holds an RSA-signed certificate of its known-good configuration, so both tampered firmware and a forged certificate are caught.
- Sampled verification. Verifiers query a sample of devices each round rather than all of them, with gossip fan-out and sample size derived from the size of the network, so verification never has to touch every device.
The simulation runs a configurable share of compromised devices against several verifiers, and was scaled from a ten-device sketch to more than a thousand devices — the point at which a design that only works on paper starts to show it.
Method
The subject resists physical experimentation at scale, so the work is studied in simulation: Python for protocol logic and analysis, and C++ on OMNeT++ for network-level behaviour — topology, message loss, latency and the effect of node churn on convergence.
Simulation earns its place here because the questions are about behaviour at a scale and under failure conditions that a testbed cannot reproduce: how the protocol behaves as the device count rises, how quickly evidence converges across a partitioned network, and what the communication cost is per device.
Why it is here
It appears in this portfolio because it is representative of how I approach an unfamiliar problem: establish precisely what the guarantee is, find the assumption that fails at scale, and test the alternative under conditions that are hostile rather than convenient.
The same reasoning shows up in ordinary infrastructure work. Centralised verification, single points of trust and protocols that assume a reliable network are not unique to research problems — they are in most corporate estates.