NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Design of a security mechanism for RESTful Web Service communication through mobile clients

Femke De Backere, Brecht Hanssens, Ruben Heynssens, Rein Houthooft, Alexander Zuliani, Stijn Verstichel, Bart Dhoedt, Filip De TurckNOMS 2014

Introduction

RESTful architectures are widely adopted for mobile web services due to their lightweight and stateless nature. However, securing these services often introduces a conflict: robust protocols like Transport Layer Security (TLS) impose heavy overhead, while session-based alternatives like OAuth can compromise the statelessness essential for scalability. This paper presents a custom security mechanism designed to bridge this gap, offering a lightweight, HMAC-based solution optimized for mobile environments.

Proposed Security Mechanism

The authors propose a two-phase approach to balance security and performance.

Phase 1: Secure Initialization

The process begins with a Login Phase conducted over a one-time TLS connection. This ensures that sensitive credentials (hashed passwords) are transmitted securely. Upon successful authentication, the server provides the client with an Authentication Token (AT), a Symmetric Secret Key (SK), and an expiration date.

Phase 2: Lightweight Resource Access

For subsequent interactions, the TLS connection is terminated to conserve resources. Instead, the client uses the AT and a Timestamp (TS) to authenticate requests. The entire message is signed with an HMAC using the shared SK. This approach ensures message integrity and authenticity while the timestamp protects against replay attacks without the need for additional round-trip handshakes. To further optimize performance, the system employs selective encryption, encrypting only sensitive data fields while leaving public information in plain text.

Experimental Methodology

The mechanism was evaluated using a prototype location-aware social network hosted on Google App Engine (GAE). Researchers measured messaging overhead using Wireshark and assessed scalability via the Spirent Avalanche framework on the iMinds Virtual Wall. The custom mechanism was directly compared against a standard "Full TLS" implementation.

Key Results and Analysis

The experimental data confirms that the proposed mechanism significantly outperforms standard TLS in mobile contexts.

Comparison of messaging and processing overhead between TLS and the proposed custom mechanism.

As illustrated in the figure above, the custom mechanism reduced messaging overhead by 36.4% (from 2937 to 1869 bytes) and processing overhead by 28.6% (from 370ms to 264ms). These reductions are critical for mobile devices, where data usage and CPU cycles directly impact battery life.

Response latency as a function of request rate for the custom mechanism versus TLS.

Scalability testing (shown above) demonstrated that the custom mechanism maintains lower response latency than TLS as the request rate increases. While the system encountered a "failure wall" at 100 requests per second—attributed to the limitations of the development server rather than the protocol itself—it consistently outperformed TLS in high-concurrency scenarios.

Conclusion

The proposed HMAC-based security mechanism provides a robust yet lightweight alternative to TLS for mobile RESTful services. By leveraging timestamps for replay protection and selective encryption for data confidentiality, the system achieves significant efficiency gains without sacrificing the core principles of REST. Future work will address challenges such as clock synchronization and the potential risks associated with token theft.

Summary updated

BibTeX
@inproceedings{backere2014design,
  author = {Femke De Backere and Brecht Hanssens and Ruben Heynssens and Rein Houthooft and Alexander Zuliani and Stijn Verstichel and Bart Dhoedt and Filip De Turck},
  title = {{Design of a security mechanism for RESTful Web Service communication through mobile clients}},
  booktitle = {NOMS},
  year = {2014},
  doi = {10.1109/noms.2014.6838308},
}
Figure