TL;DR
This paper introduces "n-m-Variant Systems," a novel framework for making cloud-based web applications more resilient to sophisticated cyberattacks. By combining software rejuvenation with a tunable "m" parameter, it allows administrators to balance security guarantees against resource usage and performance overhead, offering a flexible defense against persistent threats.
What Problem Does This Paper Address?
Web servers are prime targets for attackers due to their public accessibility and inherent vulnerabilities. Once compromised, these servers can remain undetected for extended periods, allowing attackers to persist through reboots or host malicious content. Recovering from such compromises is a time-consuming process involving system rebuilds. Software rejuvenation, the practice of periodically refreshing a system to a known good state, offers a way to bound compromise duration. However, traditional rejuvenation is vulnerable to adversaries who can maliciously modify persistent storage, leading to re-infection after refresh. Existing software diversity techniques, while good at detecting deviations, often require taking the entire system offline during recovery, which is impractical for high-concurrency web applications. Furthermore, these methods struggle against powerful adversaries who can compromise servers one by one, eventually gaining enough control to modify persistent storage undetected.
Methods
The core innovation is the "n-m-Variant Systems" framework. It builds upon existing "n-Variant Systems" (which run multiple functionally identical but internally diverse software instances) by introducing a parameter 'm'. This 'm' represents a pool of active replicas for each of the 'n' diverse variants.
Key components and techniques include:
- n-m-Variant System Architecture: The system comprises a Scheduling Proxy (Ps) that distributes incoming HTTP requests to a "serving set" of replicas (one from each variant pool). A Verification Proxy (Pv) then intercepts and compares SQL queries generated by these replicas to detect malicious writes to persistent storage.
- Software Diversity: Multiple, internally diverse instances (variants) of the web server software run in parallel. Differences in their behavior, particularly in SQL query generation, are used to detect compromise.
- Software Rejuvenation: When a malicious write is detected, or periodically, replicas are refreshed from a trusted, read-only image.
- Tunable Security (The 'm' Parameter): The 'm' parameter allows for multiple replicas per variant. This significantly enhances availability, as the system can continue processing requests even if some replicas are undergoing rejuvenation. It also provides a knob for administrators to tune the trade-off between resource usage, performance, and security guarantees.
- Adversarial Threat Model: The system is designed to withstand adversaries who can compromise individual servers and attempt to modify persistent storage. It assumes a single malicious HTTP request cannot compromise multiple variants simultaneously.
- Query Matching: The Verification Proxy uses Abstract Syntax Trees (ASTs) to parse SQL queries and compare them, accounting for non-deterministic fields like timestamps.
- Request Identification and Verification: An unforgeable request identifier is embedded in IP options to ensure the integrity of requests processed by the Verification Proxy.
Datasets
Not discussed in the paper. The evaluation used a Mediawiki application with a PostgreSQL backend, and the system was tested on Apache and IIS web servers.
Key Insights and Ideas
- Availability is Key for Web Servers: Unlike traditional fault-tolerant systems, web servers demand high availability. The 'm' parameter directly addresses this by allowing continuous operation during rejuvenation, a critical improvement over prior n-variant systems.
- Tunable Security is Practical: The ability to tune security guarantees from seconds to days via the 'm' and 'k' (refresh rate) parameters makes the system adaptable to different risk tolerances and resource constraints.
- 'n' (Variants) is More Important Than 'm' (Replicas) for Security: Theoretical analysis and simulations show that increasing the number of variants ('n') has a more significant impact on security (period of resistance) than increasing the number of replicas per variant ('m').
- Performance Trade-offs are Significant: While enhancing security, the system incurs performance overhead. Higher security settings (more variants, more frequent refreshes) lead to reduced throughput and increased latency.
- Persistent Storage is the Critical Battleground: The framework's focus on detecting and preventing malicious writes to persistent storage is crucial for effective software rejuvenation against sophisticated adversaries.
Key Results
- Performance Impact:
- A 65% throughput reduction and 83% latency increase were observed for a 2-25-Variant environment with a refresh rate of 0.5 (half the servers refreshed per request).
- An 83% throughput reduction and 111% latency increase were observed for a 4-15-Variant environment with the same refresh rate.
- Increasing 'n' (variants) significantly reduces throughput and increases latency.
- Increasing 'k' (refresh rate) also reduces throughput and latency.
- Increasing 'm' (replicas per variant) can improve throughput for higher 'k' values.
- Security Impact:
- Increasing 'n' and 'b' (refreshes between adversarial requests) substantially increases the number of adversary requests required for success.
- The period of resistance can range from seconds to days, depending on the configuration and the adversary's sophistication. For example, with n=4 and a refresh rate of 0.5, an adversary might take over 11 days to succeed.
Limitations and Future Work
- Application Determinism: The current system struggles with applications that have inherent non-deterministic features (e.g., "random page" links). Future work could explore mechanisms to handle such features, potentially by intercepting system calls and sharing results across variants, similar to prior MVEE work.
- Out-of-Order Query Processing: The current implementation assumes SQL queries from variants arrive in the same order. Handling out-of-order queries is left as future work.
- Extreme Defensive Programming: Scenarios where servers insert different values that are later compared might pose challenges, though this was not encountered in testing.
- Denial-of-Service (DoS): The performance overhead can make the system more susceptible to DoS attacks. While traditional DoS mitigation can complement the system, it remains a consideration, especially for high-traffic servers.
- Cost Analysis: While the paper provides insights into resource costs (VCPUs), a more detailed monetary cost analysis for different configurations would be beneficial.
- MicroVM Integration: The authors note that Firecracker, a technology for lightweight microVMs, was not available during implementation but could significantly improve refresh times.
Summary updated