Abstract
Performance issues in software-defined network (SDN) controllers can have serious impacts on the performance and availability of networks. In this paper, we consider a special class of SDN vulnerabilities called stateful performance issues (SPIs), where a sequence of initial input messages drives the controller into a state such that its performance degrades pathologically when processing subsequent messages. Uncovering SPIs in large complex software such as the widely used ONOS SDN controller is challenging because of the large state space of input sequences and the complex software architecture of inter-dependent network services. We present SPIDER, a practical fuzzing framework for identifying SPIs in this setting. The key contribution in our work is to leverage the event-driven modular software architecture of the SDN controller to (a) separately target each network service for SPIs and (b) use static analysis to identify all services whose event handlers can affect the state of the target service directly or indirectly. SPIDER implements this novel dependency-aware modular performance fuzzing approach for 157 network services in ONOS and successfully identifies 10 new performance issues. We present an evaluation of SPIDER against prior work, a sensitivity analysis of design decisions, and case studies of two uncovered SPIs.
Introduction: The Threat of "Slow-Motion" Bugs
Software-Defined Network (SDN) controllers like ONOS serve as the centralized "brain" of modern networks, managing hundreds of asynchronous services. While traditional security research has focused on "stateless" bugs—where a single malformed packet causes a crash—or protocol errors, a more subtle and dangerous class of vulnerabilities exists: Stateful Performance Issues (SPIs).
An SPI acts as a "slow-poison" vulnerability. A specific sequence of seemingly benign initial messages puts the controller into an inefficient internal state. Once this state is reached, processing subsequent messages becomes pathologically expensive, potentially jumping from constant time to exponential time complexity. These issues are notoriously difficult to detect because the system does not crash; it simply degrades until the network becomes unavailable. Finding them requires navigating an astronomical search space of message sequences across over 150 interdependent services.
The SPIDER Framework
To address these challenges, we introduce SPIDER, a novel framework that employs a "dependency-aware modular performance fuzzing" approach. Rather than treating the entire controller as a monolithic black box, SPIDER decomposes the problem into manageable service-level targets.
The framework operates in three primary stages:
- Static Dependency Analysis: SPIDER uses static analysis to map which services can affect the state of a target service. By analyzing "read" and "write" sets of state objects, it prunes the search space. This optimization is critical; while a naive call-graph might suggest 70% of services are interdependent, SPIDER’s analysis reduced the median number of dependencies per service from 75 to just 4.
- Event-Sequence Generation: To avoid the "garbage" rejection of raw OpenFlow packets, SPIDER generates sequences of semantically valid internal events. It utilizes type-specific generators to ensure these events are valid according to the controller's internal logic.
- Performance-Oriented Grey-box Fuzzing: The system instruments the code to monitor execution cost (instruction counts). A genetic algorithm is then used to "evolve" event sequences that maximize this cost, hunting for the most computationally expensive execution paths.
To ensure efficiency, SPIDER leverages "mock" services from unit tests to quickly reset the controller's state between fuzzing runs, bypassing the lengthy 30-second boot time of a full ONOS instance.
Key Insights: Pruning and Semantic Awareness
A core finding of this research is that modularity and pruning are essential for performance fuzzing. By targeting the execution cost of the last event in a sequence—the "last straw" that hits the performance wall—SPIDER can isolate the specific state-building sequences that lead to degradation.
Furthermore, semantic awareness is vital. While 90% of event generators can be auto-synthesized from code types, approximately 10% of critical events require "handcrafted" generators to respect logical constraints (e.g., a host cannot be removed before it is added).
Evaluation and Results
We evaluated SPIDER against the ONOS (v2.2.4) source code, focusing on 157 network services. We compared its performance against Delta (a state-of-the-art SDN fuzzer) and two internal variants: FULL (no dependency pruning) and SINGLE (testing services in total isolation).
SPIDER successfully identified 10 new performance issues (V1–V10), 9 of which were confirmed as truly stateful. As shown in the table above, SPIDER significantly outperformed existing tools. For instance, Delta found only 3 bugs, and the "FULL" variant found only 1, validating that dependency-aware modularity is the key to effective performance fuzzing.
Real-World Impact Case Studies
- V1 (Castor): An attacker sending spoofed ARP packets at a low frequency (10 pkts/s) could drop the controller's throughput from 27 Gbits/s to nearly zero in just five minutes.
- V4 (Graph Path Search): SPIDER uncovered an exponential-time complexity bug in path searching triggered by redundant links, which could cause the controller to hang entirely.
Limitations and Future Work
While highly effective, SPIDER currently requires manual effort to translate discovered internal event sequences back into external OpenFlow packets for exploit validation. Future work will focus on automating this "reconstruction" process. Additionally, while the system relies on mock services for speed, future iterations could aim to automatically infer complex inter-event constraints from source code, reducing the need for manual generator crafting.
Summary updated