Building In-the-Cloud Network Functions: Security and Privacy Challenges

Peipei Jiang, Qian Wang, Muqi Huang, Cong Wang, Chao Shen, Kui Ren

Summary

This paper presents a comprehensive survey of the security and privacy challenges associated with outsourcing network functions—such as firewalls and intrusion detection systems—to cloud environments. By analyzing a decade of research (2012–2021), the authors categorize solutions into cryptographic and hardware-based approaches, emphasizing the inherent tension between deep packet inspection requirements and end-to-end data privacy.

The Shift to Network Function Virtualization

Traditionally, network functions (NFs) like firewalls, load balancers, and Deep Packet Inspection (DPI) were deployed on expensive, proprietary hardware middleboxes. The rise of Network Function Virtualization (NFV) has enabled these tasks to transition into software running on commodity servers in the cloud, offering greater flexibility and cost-efficiency.

Transition from traditional hardware middleboxes to virtualized network functions (NFV) on standard high-volume servers.

However, this transition introduces a significant privacy gap. When an organization redirects traffic to a third-party cloud provider for inspection, that provider effectively gains "root access" to sensitive communication data. While standard end-to-end encryption (e.g., HTTPS) protects data in transit, it prevents cloud middleboxes from inspecting the payload to perform their intended functions. The central challenge lies in performing complex network functions on encrypted traffic without compromising data privacy or exposing proprietary inspection rules to the cloud provider.

Taxonomy of Secure Middlebox Research

The authors systematically classify existing literature based on the underlying security primitives and the specific network functionalities addressed.

Security Primitives

  • Cryptographic Primitives: Research in this area utilizes Searchable Symmetric Encryption (SSE) for efficient keyword matching, Garbled Circuits (GC) and Oblivious Transfer (OT) for secure multi-party computation, and Homomorphic Encryption (HE) for performing operations on encrypted routing data.
  • Hardware-based Solutions: A major focus of the survey is on Trusted Execution Environments (TEEs), particularly Intel SGX. These environments create secure "enclaves" within the CPU where data can be decrypted and processed safely, isolated even from the host operating system.

Functional Categorization

The survey organizes research according to the complexity of the network tasks:

  • Equality Matching: Basic tasks like simple DPI (e.g., "is this string present?").
  • Function-Enriched Matching: Advanced tasks involving ranges, wildcards, or regular expressions.
  • Stateful Inspection: Functions that require tracking connection states over time.
  • Packet Modification: Tasks like Network Address Translation (NAT) that necessitate secure content modification.
A timeline and categorization of research papers in the field of secure middleboxes from 2012 to 2021.

Core Challenges and Design Trade-offs

The survey highlights several critical insights regarding the implementation of secure NFs:

  • Privacy vs. Performance: Purely cryptographic methods (HE, GC) offer strong security proofs but often incur prohibitive computational overhead, hindering high-speed, line-rate processing.
  • Deployment Models: The paper distinguishes between "Bounce" models (traffic redirected to the cloud and back) and "Go-through" models (cloud sits directly in the path). The Bounce model typically offers superior header privacy.
  • Rule Privacy: Beyond user data, the inspection rules themselves (e.g., firewall policies) are often sensitive business assets that must remain hidden from the cloud provider.
  • The Verifiability Gap: While most research focuses on privacy, there is a lack of focus on verifiability—ensuring the cloud provider actually executes the function correctly rather than simply dropping packets to save resources.

Performance and Security Comparison

The paper provides a qualitative assessment of the dominant technologies:

  • Efficiency: SSE-based schemes excel at simple matching. In contrast, SGX-based solutions like LightBox achieve near-native speeds, supporting millions of concurrent flows with minimal latency.
  • Functionality: TEEs are highly versatile and can support nearly any network function. Cryptographic tools are generally restricted to specific matching types (e.g., Order-Revealing Encryption for range matching).
  • Security Robustness: While SGX is performant, it is susceptible to side-channel attacks (e.g., cache-timing). Cryptographic methods provide mathematically rigorous security but at a significantly higher latency cost.

Future Research Directions

The authors identify several "open frontiers" for future exploration:

  1. Side-Channel Defenses: Developing specialized countermeasures for TEE-based middleboxes to mitigate information leakage.
  2. Secure Service Chaining: Managing a "chain" of multiple NFs without the overhead of repeated encryption/decryption.
  3. Verifiable Outsourcing: Creating lightweight mechanisms to prove honest execution by cloud providers.
  4. Dynamic Rule Updates: Moving beyond "static" schemes where updating a single rule requires re-encrypting the entire database.

Summary updated

BibTeX
@article{jiang2021building,
  author = {Peipei Jiang and Qian Wang and Muqi Huang and Cong Wang and Qi Li and Chao Shen and Kui Ren},
  title = {{Building In-the-Cloud Network Functions: Security and Privacy Challenges}},
  journal = {Proc. IEEE},
  year = {2021},
  doi = {10.1109/jproc.2021.3127277},
}
Figure