TL;DR
This paper introduces a novel system for secure, offline storage using untrusted servers, enabling clients to immediately detect data tampering (forking and replay attacks). It achieves this by leveraging a Trusted Platform Module (TPM) as a minimal Trusted Timestamping Device (TTD) to manage virtual monotonic counters, offering a practical solution for mobile and pervasive computing environments.
What Problem Does This Paper Address?
In today's increasingly mobile world, users often rely on multiple devices that may not always be connected to the internet. Storing data on untrusted servers presents a significant challenge: how can a user ensure their data remains private, authentic, and, crucially, fresh (i.e., they are always accessing the most recent version)? Traditional methods like encryption and digital signatures can guarantee privacy and authenticity but fail to prevent an adversary from serving an older, yet still validly signed, version of the data. This is known as a replay attack. Furthermore, adversaries might try to present different versions of data to different users or at different times, a forking attack. Existing solutions often require a trusted third party or complex trusted hardware, which are not always practical. This paper tackles the problem of providing tamper-evident storage on untrusted servers, with immediate detection of replay and forking attacks, using only a minimal trusted component.
Methods
The core of the proposed solution lies in the concept of a Trusted Timestamping Device (TTD), implemented using a Trusted Platform Module (TPM) 1.2. The TTD has two key properties: an arithmetic monotonic counter that can only be incremented, and a unique private signing key. The system uses this TTD to manage virtual monotonic counters (VMCs).
Instead of each client managing their own dedicated counter (which is difficult with offline devices), the TTD acts as a central authority. A Virtual Counter Manager (VCM), running on an untrusted server, utilizes the TTD to implement an unlimited number of VMCs. This is achieved through a log-based scheme:
- Incrementing a VMC: When a client wants to update data and timestamp it, their device sends an increment request for a specific VMC to the VCM. The VCM, using the TTD, generates an increment certificate. This certificate includes the TTD's current global counter value, which then becomes the new value for that VMC. The VCM logs this certificate.
- Reading a VMC (with validation): To verify the freshness and validity of data, a client requests a validity proof from the VCM. This proof consists of:
- The most recent confirmation certificate for the VMC (a client-generated proof of a valid state).
- A log of all increment certificates generated for that VMC since the last confirmation certificate.
- A read certificate from the TTD.
The client then verifies these components. By checking the signatures on the increment certificates and ensuring no expected increments are missing, the client can confirm that the VMC's value hasn't been tampered with and that they are indeed receiving the most recent version.
The paper also proposes two performance improvements:
- Sharing: Multiple increment/read requests for different VMCs can be batched and processed by the TTD simultaneously, reducing overhead.
- Time-Multiplexing: This technique helps manage the log size by allowing clients to associate specific schedules of global clock values for their VMCs, reducing the number of increment certificates that need to be included in a validity proof.
Datasets
Not discussed in the paper. The evaluation uses a simulated environment on PlanetLab with varying numbers of virtual monotonic counters and request rates.
Key Insights and Ideas
- TPM as a Minimal Trusted Component: The paper demonstrates that a TPM 1.2, without requiring a trusted BIOS, CPU, or OS, is sufficient to build a robust timestamping service. This significantly lowers the barrier to adoption compared to systems relying on more extensive trusted computing bases.
- Virtual Monotonic Counters: The concept of creating an arbitrary number of VMCs from a single physical monotonic counter is a key enabler. This allows for fine-grained timestamping for individual clients or directories without needing a dedicated counter for each.
- Log-Based Validity Proofs: The mechanism of using a log of increment certificates to prove the integrity of a VMC's history is ingenious. It allows clients to detect tampering even if the VCM itself is malicious, as long as the TTD remains secure.
- Immediate Detection: The system's strength lies in its ability to provide immediate detection of replay and forking attacks during critical operations, a significant improvement over solutions that only detect such issues later.
Key Results
The paper presents performance results from a proof-of-concept implementation on PlanetLab.
- Scalability: Without optimizations, the system could only manage a few virtual monotonic counters.
- With Sharing and Time-Multiplexing: The system demonstrated the ability to manage several hundred virtual monotonic counters before saturation.
- Latency: For read operations, latency was around 10 seconds. Increment operation latency scaled with 2-3 seconds times the time multiplexing period.
- Practicality: The authors conclude that the performance achieved is practical, especially if one virtual monotonic counter represents a set of files for a single client (e.g., a directory).
Limitations and Future Work
- Denial-of-Service (DoS) Attacks: The current scheme does not inherently protect against DoS attacks. If the VCM or TTD fails, operations might be delayed or fail.
- Power Failures: A power failure in the VCM after a TPM increment but before saving the certificate can lead to a gap in the log, making some virtual counter values untrustworthy. While this doesn't enable replay attacks (gaps are detectable), it complicates recovery.
- Replication for Reliability: To address reliability and tolerate malicious managers or network issues, the authors suggest a replication scheme where multiple VMCs and TTDs are used for data redundancy.
- Tree-Based Schemes: The paper mentions previous work on tree-based schemes for VMCs, which could offer deterministic counters and potentially simplify protocols, though they are not yet implementable with current TPMs. A hybrid approach combining log-based and tree-based schemes is suggested for high-load applications.
- Adaptive Schedules: Future work includes exploring adaptive schedules for time-multiplexing to further optimize performance and reduce latency.
Summary updated