[Paper Review] Snort Intrusion Detection System with Intel Software Guard Extension (Intel SGX)
This paper presents SEC-IDS, a hardened Snort 3-based intrusion detection system secured using Intel Software Guard Extensions (Intel SGX). By executing all Snort logic within an SGX enclave while offloading network I/O to the untrusted host, SEC-IDS achieves 10Gbps line-rate performance with only 27 lines of code modified in Snort and 178 in Graphene-SGX, demonstrating near-native performance and strong computational integrity guarantees.
Network Function Virtualization (NFV) promises the benefits of reduced infrastructure, personnel, and management costs by outsourcing network middleboxes to the public or private cloud. Unfortunately, running network functions in the cloud entails security challenges, especially for complex stateful services. In this paper, we describe our experiences with hardening the king of middleboxes - Intrusion Detection Systems (IDS) - using Intel Software Guard Extensions (Intel SGX) technology. Our IDS secured using Intel SGX, called SEC-IDS, is an unmodified Snort 3 with a DPDK network layer that achieves 10Gbps line rate. SEC-IDS guarantees computational integrity by running all Snort code inside an Intel SGX enclave. At the same time, SEC-IDS achieves near-native performance, with throughput close to 100 percent of vanilla Snort 3, by retaining network I/O outside of the enclave. Our experiments indicate that performance is only constrained by the modest Enclave Page Cache size available on current Intel SGX Skylake based E3 Xeon platforms. Finally, we kept the porting effort minimal by using the Graphene-SGX library OS. Only 27 Lines of Code (LoC) were modified in Snort and 178 LoC in Graphene-SGX itself.
Motivation & Objective
- To address the security risks of deploying stateful network functions like IDS in untrusted cloud environments.
- To harden the Snort intrusion detection system against tampering and leakage by leveraging Intel SGX's hardware-enforced isolation.
- To maintain high performance in a secure execution environment by minimizing the trusted computing base.
- To evaluate the feasibility and performance overhead of integrating Intel SGX with a complex, stateful network function like Snort.
- To demonstrate that minimal code modifications are sufficient to secure a production-grade IDS using SGX and a library OS (Graphene-SGX).
Proposed method
- The authors implemented SEC-IDS by integrating Snort 3 with the Graphene-SGX library OS to enable enclave execution.
- All Snort processing logic, including rule evaluation and state management, runs inside an Intel SGX enclave to ensure confidentiality and integrity.
- Network I/O is handled outside the enclave using DPDK for high-speed packet processing, reducing enclave boundary overhead.
- The system uses Intel SGX’s memory encryption and access control to isolate sensitive code and data from the host OS and hypervisor.
- Only 27 lines of Snort code and 178 lines of Graphene-SGX were modified, minimizing the trusted code surface.
- Performance was measured on Intel Skylake-based E3 Xeon platforms with a focus on throughput and latency under line-rate traffic.
Experimental results
Research questions
- RQ1Can a production-grade, stateful IDS like Snort be securely virtualized in the cloud using Intel SGX?
- RQ2What is the performance overhead of running Snort inside an SGX enclave while maintaining line-rate throughput?
- RQ3How much code modification is required to secure a complex network function like Snort using SGX and a library OS?
- RQ4To what extent does the Enclave Page Cache size limit performance on current SGX platforms?
- RQ5Can network I/O be safely offloaded from the enclave without compromising security or performance?
Key findings
- SEC-IDS achieves 10Gbps line-rate performance, reaching 98% of vanilla Snort 3 throughput on a 10Gbps testbed.
- The performance bottleneck is primarily constrained by the limited Enclave Page Cache size on current Intel SGX Skylake platforms.
- Only 27 lines of code were modified in Snort and 178 in Graphene-SGX, demonstrating minimal porting effort.
- All Snort logic, including rule processing and state tracking, is securely isolated within the SGX enclave, ensuring computational integrity.
- The system maintains strong security guarantees by keeping sensitive data and code encrypted and isolated from the host OS and cloud infrastructure.
- Offloading network I/O to DPDK outside the enclave significantly reduces enclave entry/exit overhead and preserves performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.