NetWarden: Mitigating Network Covert Channels without Performance Loss

Jiarong Xing, Adam Morrison, Ang ChenHotCloud 2019 · OpenReview

TL;DR

This paper introduces NetWarden, a novel system designed to detect and mitigate network covert channels without sacrificing performance. By leveraging programmable data planes and innovative performance-boosting techniques, NetWarden aims to provide a practical and efficient defense against these stealthy threats.

What Problem Does This Paper Address?

Network covert channels pose a significant threat to the security and privacy of cloud systems. These channels allow attackers to exfiltrate sensitive data by subtly manipulating network traffic in ways that are not intended for data transmission. Two primary types are timing channels (modulating packet timing) and storage channels (embedding data in packet headers). Existing defenses often come with a substantial performance penalty, making them impractical for high-speed networks like those found in datacenters. This paper addresses the critical gap of needing a defense that can effectively mitigate these covert channels while maintaining the high performance required in modern infrastructure.

Methods

NetWarden employs a three-pronged approach:

  • Programmable Data Planes: The core of NetWarden relies on modern programmable data planes (e.g., in ToR switches). These planes allow for per-packet header operations at line speed, enabling the inspection and modification of packet headers for storage channel mitigation. They also provide fine-grained timestamping for timing channel detection and support sophisticated data structures for per-connection monitoring.
  • Fastpath/Slowpath Defense: Recognizing that not all functionalities can be implemented efficiently in the data plane, NetWarden divides its operations. The "fastpath" (data plane) handles high-speed, per-packet operations like connection monitoring and basic storage channel defenses. The "slowpath" (control plane) handles more complex tasks like statistical IPD tests, timing channel mitigation (involving packet buffering and reordering), and performance boosting.
  • Performance Boosting Techniques: To counteract the performance degradation caused by mitigation, NetWarden introduces two key techniques:
  • ACK Boosting: NetWarden generates ACK packets on behalf of the receiver, creating the illusion of a shorter Round-Trip Time (RTT) for the sender. This accelerates the sender's rate by hiding the latency of data propagation and ACK generation.
  • Receive Window Boosting: This technique generates ACKs with a large receive window, making the sender believe the receiver can process data much faster. This helps remove limitations imposed by the actual receive buffer size.

Datasets

Not discussed in the paper. The evaluation uses a software-based simulator.

Key Insights and Ideas

  • Programmable Data Planes as a Security Enabler: The paper highlights how features originally designed for networking efficiency (per-packet operations, timestamping, stateful data structures) are surprisingly well-suited for covert channel defense.
  • The Trade-off is Not Inevitable: The core insight is that performance loss, often seen as an unavoidable cost of security, can be mitigated. NetWarden demonstrates that by intelligently combining defenses with performance-enhancing mechanisms, this trade-off can be significantly reduced.
  • Fastpath/Slowpath for Practicality: The division of labor between the data plane and control plane is crucial for achieving both line-speed operation for common tasks and the flexibility needed for more complex defenses and performance optimizations.
  • Borrowing from Attackers: The performance boosting techniques are inspired by methods used in attacks that manipulate TCP congestion control, demonstrating how security research can sometimes leverage adversarial techniques for defensive purposes.

Key Results

The paper presents preliminary results from a software-based simulation:

  • Storage Channel Defense: A simple defense (shrinking receive window size) increased transfer time by 50.1% compared to no defense. NetWarden's performance-boosting defense, however, only resulted in a 0.3% increase in transfer time.
  • Timing Channel Defense: A simple defense increased transfer time by 18.5%. NetWarden's performance-boosting defense resulted in only a 2.8% increase.
  • Effectiveness: Both the simple defenses and the performance-boosting defenses were effective in significantly increasing the decoding error rate for the tested covert channels, rendering them unusable.

Limitations and Future Work

  • Preliminary Prototype: The current implementation is a prototype running in a software simulator. The authors acknowledge that actual hardware performance might differ.
  • Optimal Fastpath/Slowpath Division: Further work is needed to determine the optimal boundary between fastpath and slowpath operations for maximum efficiency.
  • Fairness Across Flows: The current performance boosting might consume bandwidth, potentially impacting other legitimate TCP flows. Future work will focus on designing defenses that ensure fairness.
  • TCP Variant Compatibility: Understanding how NetWarden's boosting mechanisms should adapt to various TCP variants is an open research question.
  • Full Hardware Prototype: The authors plan to develop a full hardware-based prototype and evaluate it under realistic network conditions and speeds.

Summary updated

BibTeX
@inproceedings{xing2019netwarden,
  author = {Jiarong Xing and Adam Morrison and Ang Chen},
  title = {{NetWarden: Mitigating Network Covert Channels without Performance Loss}},
  booktitle = {HotCloud},
  year = {2019},
  url = {https://openreview.net/forum?id=Z9LQyZTmzN},
}
Figure