Abstract
Cloud-native infrastructures like Kubernetes and etcd are massive, complex systems primarily written in Golang. While coverage-guided greybox fuzzing is a standard technique for finding vulnerabilities, existing Go fuzzers face significant hurdles: coarse coverage metrics that lead to hash collisions and the "seed explosion" problem where fine-grained sensitivity overwhelms the fuzzer. We introduce CloudFuzz, which addresses these issues through a collision-resistant edge coverage metric and an Adversarial Multi-Armed Bandit (AMAB) scheduling algorithm. CloudFuzz detects 233% more unique crashes than the baseline and improves code coverage by over 100% across 16 real-world CNCF targets.
Introduction
The security of cloud-native applications is paramount, yet their scale makes traditional testing difficult. Greybox fuzzing relies on feedback to explore new code paths. However, tools like go-fuzz often use "block coverage," which is insufficient for distinguishing complex execution paths. Attempts to increase sensitivity often result in "seed explosion," where the fuzzer is flooded with redundant or low-value inputs, stalling progress in deep logic. CloudFuzz aims to solve this by providing a "high-definition" view of execution while intelligently managing the resulting flood of data.
Methodology
CloudFuzz introduces two key innovations to overcome the limitations of existing tools:
1. Collision-Resistant Edge Coverage
Standard fuzzers use fixed-size bitmaps that suffer from high collision rates—exceeding 90% in large targets like Kubernetes. This means the fuzzer is essentially "blind" to 9 out of 10 new execution states. CloudFuzz implements a dynamic hashing scheme. By analyzing the Control Flow Graph (CFG) at compile-time, it assigns unique identifiers to edges, providing a high-fidelity view of execution states without the "blurriness" of collisions.
2. AMAB-Based Adaptive Scheduling
To manage the seed pool, CloudFuzz models fuzzing as an Adversarial Multi-Armed Bandit (AMAB) problem. Using a variant of the Exp3 algorithm, it dynamically balances exploitation (focusing on historically high-reward seeds) and exploration (testing fresh seeds).
The architecture includes a task pool with specialized mutation strategies like "sonar" for complex checks and "versify" for structural inputs. The scheduler decides which task is most likely to yield new coverage for a given seed, treating the fuzzing loop as a game where the reward (new coverage) changes over time.
Evaluation and Results
CloudFuzz was evaluated against 16 targets from the Cloud Native Computing Foundation (CNCF) ecosystem, representing the backbone of modern infrastructure.
Seed Management and Coverage Efficiency
A critical finding was that CloudFuzz generated 41% fewer seeds than baseline fine-grained fuzzers while achieving double the coverage. This proves that smarter seed selection is more effective than simply hoarding every input that triggers a new state.
Bug Detection and Performance
CloudFuzz detected 233% more unique crashes than go-fuzz. In Kubernetes components specifically, it found nearly ten times as many unique crashes. Furthermore, it achieved an average coverage improvement of 100.7%, often reaching in just 1 hour the same coverage level that go-fuzz took 24 hours to achieve. Despite its complexity, CloudFuzz introduces only a 14% performance overhead.
Conclusion
By treating seed selection as a dynamic optimization problem and ensuring high-fidelity coverage feedback, CloudFuzz effectively scales greybox fuzzing to the complexity of modern cloud-native applications. It significantly outperforms existing state-of-the-art tools in both efficiency and bug discovery, making it a practical tool for real-world security audits.
Summary updated