Empirical Evaluation of Memory-Erasure Protocols

Reynaldo Gil Pons, Sjouke Mauw, Rolando Trujillo-Rasua

TL;DR

This paper provides the first empirical evaluation of software-based memory-erasure protocols for IoT devices. It finds that while these protocols are feasible, their performance varies significantly based on device capabilities, network speed, and the chosen hash function, with no single protocol dominating across all scenarios. This work offers a framework to help select the best protocol for a given security and performance trade-off.

What Problem Does This Paper Address?

Internet of Things (IoT) devices are increasingly vulnerable to malware due to their low cost and limited resources, making traditional security measures difficult to implement. Memory-erasure protocols offer a way to combat malware by instructing a device to erase its memory and provide a proof of erasure, effectively returning it to a safe state. However, many existing protocols rely on secure hardware or physical access, which is impractical for low-cost IoT devices. Software-based memory-erasure protocols aim to solve this by operating without such requirements. Despite theoretical analysis, these protocols have not been thoroughly tested on real-world IoT devices, leaving a significant gap in understanding their practical feasibility, performance, and security trade-offs for industry adoption.

Methods

The authors conducted an empirical evaluation of seven software-based memory-erasure protocols. Their experimental setup involved three distinct IoT devices (Texas Instruments FR5994, F5529, and CC2652) acting as provers, with a personal laptop serving as the verifier. Communication was established via Bluetooth. To account for variations in computational capabilities, they implemented multiple hash functions (ascon, blake2, blake3, sha256, and aeshash, including hardware-accelerated versions where available) for protocols that utilize them. The evaluation focused on measuring erasure time (time to fill memory with random data) and total execution time (erasure plus verification). They also analyzed memory footprint and considered security and erasure guarantees as described in the literature.

Datasets

Not discussed in the paper. The experiments were conducted on real IoT devices with specific configurations.

Key Insights and Ideas

  • No One-Size-Fits-All: The most significant finding is that no single memory-erasure protocol is universally superior. Performance and suitability are highly context-dependent.
  • Hash Function Matters (A Lot): The choice of hash function can drastically impact erasure time, sometimes more than the protocol itself. This highlights the need to consider hash function performance alongside protocol design.
  • Network Speed is Crucial: Counterintuitively, network speed and communication overhead can be more critical than computational speed for some protocols, especially on devices with more complex communication stacks (like Bluetooth 5.2).
  • Hidden Constants Can Trump Asymptotics: Protocols with theoretically worse asymptotic complexity (like DFKP's quadratic complexity) can outperform others on small memory sizes due to very small hidden constants. However, this advantage diminishes as memory size increases.
  • Trade-offs are Inevitable: Achieving high security and erasure guarantees often comes at the cost of performance, and vice-versa. The paper provides a framework to navigate these trade-offs.

Key Results

  • Feasibility: Software-based memory-erasure protocols are feasible on modern IoT devices, though erasure can take several seconds on slower devices.
  • Performance Variation:
    • On the CC2652 device (8KB erasure), DFKP and KK were the fastest protocols when using their best-performing hash functions.
  • On the FR5994 device (2KB erasure), PT and POSErandom were among the fastest, likely due to simpler Bluetooth communication.
  • On the F5529 device (2KB erasure), PT and POSErandom also showed good performance.
  • Hash Function Performance:
    • On CC2652, sha256hw was the fastest hash function.
  • On FR5994, aeshash was significantly faster due to the AES hardware accelerator.
  • Ascon, despite being designed for lightweight cryptography, consistently performed poorly.
  • Blake3 was generally faster than blake2.
  • Memory Size Impact: For most protocols, execution time increased linearly with memory size. DFKP's performance started to degrade relative to KK as memory size increased, supporting the hypothesis about its quadratic complexity.
  • Protocol Strengths:
    • DFKP offers high security and good performance on small memory sizes.
  • PT and KL offer low security but good performance in certain network conditions.
  • POSErandom, POSEgraph, and POSElight offer high security and can be efficient, especially with optimized communication.

Limitations and Future Work

  • Limited Device Set: The experiments were conducted on only three IoT devices. Future work could expand this to a wider range of hardware.
  • Memory Size Constraints: The experiments were limited to specific memory sizes (2KB, 4KB, 8KB) to avoid overwriting critical memory addresses. Further investigation is needed to determine the exact memory threshold where DFKP's performance becomes unsuitable.
  • Real-world Deployment Adaptation: The current implementations are optimized for performance testing and would need adaptation for actual deployment, particularly regarding device-dependent memory segment definitions.
  • Further Analysis of DFKP: More experiments are needed to pinpoint the memory threshold at which DFKP's quadratic complexity makes it less performant than other protocols.
  • Broader Protocol Evaluation: While seven protocols were evaluated, a more comprehensive study could include additional protocols or variants.

Summary updated

Abstract

Software-based memory-erasure protocols are two-party communication protocols where a verifier instructs a computational device to erase its memory and send a proof of erasure. They aim at guaranteeing that low-cost IoT devices are free of malware by putting them back into a safe state without requiring secure hardware or physical manipulation of the device. Several software-based memory-erasure protocols have been introduced and theoretically analysed. Yet, many of them have not been tested for their feasibility, performance and security on real devices, which hinders their industry adoption. This article reports on the first empirical analysis of software-based memory-erasure protocols with respect to their security, erasure guarantees, and performance. The experimental setup consists of 3 modern IoT devices with different computational capabilities, 7 protocols, 6 hash-function implementations, and various performance and security criteria. Our results indicate that existing software-based memory-erasure protocols are feasible, although slow devices may take several seconds to erase their memory and generate a proof of erasure. We found that no protocol dominates across all empirical settings, defined by the computational power and memory size of the device, the network speed, and the required level of security. Interestingly, network speed and hidden constants within the protocol specification played a more prominent role in the performance of these protocols than anticipated based on the related literature. We provide an evaluation framework that, given a desired level of security, determines which protocols offer the best trade-off between performance and erasure guarantees.
BibTeX
@inproceedings{pons2025empirical,
  author = {Reynaldo Gil Pons and Sjouke Mauw and Rolando Trujillo-Rasua},
  title = {{Empirical Evaluation of Memory-Erasure Protocols}},
  booktitle = {Secrypt},
  year = {2025},
}
Figure