PILOT: Command-line Interface Fuzzing via Path-Guided, Iterative Large Language Model Prompting
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: Security Radio. Generated commentary on the latest security and cryptography papers.
Nadia: I'm Nadia.
Elias: And I'm Elias, here with Priya.
Nadia: We're looking at the paper: "PILOT: Command-line Interface Fuzzing via Path-Guided, Iterative Large Language Model Prompting".
Paper summary: Nadia: So, to wrap up this paper, we're looking at PILOT and what it actually does for CLI fuzzing one. It's basically this new way to use large language models to help generate those tricky command line options and input files that you need one.
Elias: Yeah, the title itself says Path-Guided Iterative LLM Orchestrated Testing one, which just tells you how they did it—they aren't just throwing random inputs around; they use a path to guide the model one.
Priya: I mean, so what does this actually mean for us in the privacy and measurement side? We saw them find fifty-one zero day vulnerabilities across twenty four programs one, but we need to know if that data is solid.
Nadia: That's the thing, Priya, they did confirm forty one of those vulnerabilities with maintainers, and thirty three of them are already fixed in later releases one. That kind of confirmation matters for trust.
Elias: And from a cryptographic angle, I’m interested in how the LLM is being prompted to generate those option strings; that's where the proof sits, right? It seems they found that combining path guidance with iterative refinement helps them reach targets better one.
Priya: Right, but we have to watch the cost. The authors mentioned each program needed thirty six chat interactions with the large language model to finish the test generation process one. That's a lot of tokens, which is something we gotta consider for real-world application.
Nadia: Exactly. It’s a big computational investment, but when you look at how much coverage they improved over other tools like CarpetFuzz or SelectFuzz one, it seems like it pays off in terms of finding those deep bugs.
Elias: So the authors are pointing toward this being a promising direction for fuzzing CLI applications, using LLMs to intelligently build test cases that actually work one. But we still need to figure out how they can make this reliable across different types of LLM models one.
Priya: Right. It’s a powerful technique, but it’s not a complete solution yet; we'll want to see more systematic testing across different AI systems before we fully trust the results one.
Conclusion: Nadia: So we're wrapping up this look at PILOT, which is that Path-Guided Iterative Large Language Model Prompting framework for fuzzing command line interfaces one. Basically, this whole approach uses the large language model to intelligently build those command line options and input files that you need to test programs properly one.
Elias: Yeah, they put a lot of work into showing how giving the model potential call paths as context helps it generate those option strings and input files much better one. It shows that combining path guidance with iterative refinement with the large language model gives you substantial gains over existing fuzzers one.
Priya: And from what we saw, this means moving away from just throwing random inputs at things. We're looking at a way to build test cases that have some structure because they follow a path through the program. It suggests that testing guided inputs can lead to finding different kinds of bugs one.
Nadia: Exactly. The authors found fifty-one previously unknown vulnerabilities across twenty four programs, with forty one confirmed and thirty three fixed by developers one. That shows a real way to get high signal from those large language models when you give them the right context.
Elias: It's a paper on arXiv:two thousand five hundred eleven point 20555v2 in cs CR, dated March thirteen twenty twenty six one. It’s about how we can use these large language models not just for generating text, but for orchestrating complex testing processes like fuzzing command line interfaces.
Priya: So this opens up a direction for us to think about how we can use this guided generation to improve our test suites before we even start fuzzing one. We move from just testing random inputs to testing guided inputs that have some structure. That's where the real work starts, figuring out how to tune these systems properly.
The University of Tokyo · Johns Hopkins University
cs.CR
Submitted: 2025-11-25
Updated: 2026-11-24
Comments: Published in the 47th IEEE Symposium on Security and Privacy (IEEE S&P 2026)
Journal ref: 2026 IEEE Symposium on Security and Privacy (SP), San Francisco, CA, USA, 2026, pp. 3757-3775
DOI: 10.1109/SP63933.2026.00211
Code: https://github.com/momo-trip/PILOT-code
Project page: https://libexpat.github.io
License: http://arxiv.org/licenses/nonexclusive-distrib/1.0/
Importance score: 91/100
The gist: Command-line interface (CLI) fuzzing tests programs by mutating both command-line options and input file contents…
Key concepts
- PILOT Framework
- A novel testing framework that combines path guidance with iterative LLM prompting. It uses the call chain of a program to give the LLM context, helping it generate better command-line options and input files. It automatically orchestrates native tools to create valid inputs for fuzzing.
- Path-guided Exploration
- A method where potential execution paths within a program are provided as context to the LLM. This guides the LLM in generating relevant CLI option strings, ensuring that the generated inputs are semantically related to actual functions in the target application, leading to more effective testing.
- Semantic Input Generation
- The process of automatically creating input files with deep semantic validity. PILOT uses native tools like ffmpeg to generate complex files (e.g., video formats) with correct codec parameters. This ensures that subsequent mutations introduce targeted malformations capable of triggering vulnerabilities.
- Iterative LLM Orchestration
- The framework involves repeatedly communicating with the LLM in a feedback loop. It starts by querying the LLM for initial setup (like installing tools and generating base files) and then iteratively refines inputs based on previous test results, improving coverage over time.
Terminology
Summary
Command-line interface (CLI) fuzzing tests programs by mutating both command-line options and input file contents, thus enabling discovery of vulnerabilities that only manifest under specific option-input combinations. p. 0<ref:2511.20555#pg1, Abstract—Command-line interface (CLI) fuzzing tests programs by mutating both command-line options and input file contents, thus enabling discovery of vulnerabilities that only manifest under specific option-input combinations >
Framework Design
The paper introduces a novel Path-guided, Iterative LLM-Orchestrated Testing framework called PILOT to fuzz CLI applications.<ref:2511.20555#pg1, In this paper, we design a novel Path-guided, Iterative LLM-Orchestrated Testing (PILOT) framework to fuzz CLI applications >. p. 0 The key insight is to provide potential call paths to target functions as context to LLM so that it can better generate CLI option strings. p. 0<ref:2511.20555#pg3>. Meanwhile, PILOT automatically discovers and orchestrates native command-line tools to generate semantically valid input files that enable reaching the target functions. p. 0<ref:2511.20555#pg3>
Seed Generation Mechanism
PILOT coordinates seed generation by iteratively communicating with the LLM, sending tailored prompts together with supplemental information such as the target function.<ref:2511.20555#pg3, First, PILOT queries an LLM to identify and install ffmpeg and generate base input files with proper codec parameters and container structures (e. p. 2g., via ffmpeg -f lavfi -i testsrc -c:v libx264 output. p. 2mp4) >. This approach ensures deep semantic validity—files generated by actual encoders contain valid codec parameters and NAL unit structures, where subsequent mutations can introduce targeted malformations to trigger vulnerabilities. p. 2<ref:2511.20555#pg3, PILOT leverages path-guided exploration and provides the LLM with the call chain from main to potential targets >
Coverage Improvement
The evaluation on real-world CLI applications demonstrates that PILOT achieves higher coverage than state-of-the-art fuzzing approaches and discovers 51 zero-day vulnerabilities.<ref:2511.20555#pg1, Our evaluation across 43 widely used programs shows that PILOT discovered 51 zero-day vulnerabilities >. p. 0 Table 6 presents edge coverage results for a representative subset of 20 POWER baseline programs after 24 hours of fuzzing, showing average improvements of 16. p. 80% over CarpetFuzz. p. 0<ref:2511.20555#pg1, Across the full 33-program benchmark suite, PILOT demonstrates superior coverage, achieving average improvements of 16. p. 80% over CarpetFuzz, 36. p. 0 p. 02% over ProphetFuzz, 21. p. 0 p. 08% over ZigZagFuzz, and 57. p. 0 p. 09% over SelectFuzz >
Vulnerability Discovery
PILOT identified 51 previously unknown vulnerabilities across 24 programs.<ref:2511.20555#pg9, Table 4 sumTABLE 4: [RQ1] Zero-day vulnerabilities discovered by PILOT >. p. 7 Of these, 41 have been confirmed by maintainers, with 33 already fixed in subsequent releases and three assigned CVE identifiers. p. 7<ref:2511.20555#pg9>
Ablation Study Results
PILOT outperforms alternative configurations in the ablation study, demonstrating that PILOT’s path-guided prompting, iterative feedback loop, native tool configuration, and adaptive target selection are essential components for achieving comprehensive program coverage.<ref:2511.20555#pg12, Result 4. PILOT outperforms alternative configurations in the ablation study >. p. 7 The results reveal that CLI option generation contributes 1. p. 996× improvement while input file generation contributes 1. p. 979×, with the combination producing synergistic benefits. p. 9<ref:2511.20555#pg11, This demonstrates that PILOT achieves substantial coverage improvements across the 33-program benchmark suite, with average gains of 16. p. 80% over CarpetFuzz, 36.2% over ProphetFuzz, 21.8% over ZigZagFuzz, and 57.9% over SelectFuzz >
Cost Analysis
On average, each program required 36 chat interactions with the LLM to complete the test generation process, consuming approximately 4.6 million input tokens and 90,000 output tokens per trial. p. 6<ref:2511.20555#pg13>. While this represents a substantial computational investment, it remains economically feasible for practical vulnerability discovery. p. 8<ref:2511.20555#pg13>
Conclusion
In this paper, we presented PILOT, a novel CLI fuzzing approach that leverages LLMs to generate semantically valid command-line option combinations and input files.<ref:2511.20555#pg8>. Our evaluation on 43 real-world programs shows that PILOT discovered 51 previously unknown vulnerabilities, with 41 confirmed and 33 fixed by developers. p. 8 p. 8<ref:2511.20555#pg8>. The paper is arXiv:2511. p. 0 p. 020555v2 [cs. p. 0 p. 0 p. 0 p. 0CR] 13 Mar 2026. p. 0 p. 0<ref:2511.20555#pg1, arXiv:2511. p. 020555v2 [cs.CR] 13 Mar 2026>
References
[4] D Wang, Y Li, Z Zhang, and K Chen, “CarpetFuzz: Automatic program option constraint extraction from documentation for fuzzing,” in 32nd USENIX Security Symposium (USENIX Security 23), 2023, pp. 1919–1936.<ref:2511.20555#pg7, [7] D Wang, G Zhou, L Chen, D Li, and Y Miao, “Prophetfuzz: Fully automated prediction and fuzzing of high-risk option combinations with only documentation via large language model,” in Proceedings of the 2024 on ACM SIGSAC Conference on Computer and Communications Security, 2024, pp. p. 6 735–749 > [1]. A Lee, Y Choi, S Hong, Y Kim, K Cho, and M Kim, “Zigzagfuzz: Interleaved fuzzing of program options and files,” ACM Transactions on Software Engineering and Methodology, vol. p. 6 34, no. 2, pp. 1–31, 2025. p. 7<ref:2511.20555#pg14, [8] FFmpeg Team, “FFmpeg: A complete, cross-platform solution to record, convert and stream audio and video,” https://ffmpeg. p. 1 p. 1org, 2024, accessed: 2025-10-29 > [9] FFmpeg Project, “Ffmpeg protocols documentation,” https://www. p. 1ffmpeg.org/ffmpeg-protocols. p. 1 p. 1html, 2025, accessed: 2025-11-08. p. 7<ref:2511.20555#pg9, [36] B Liu, G Meng, W Zou, Q Gong, F Li, M Lin, D Sun, W Huo, and C Zhang, “A large-scale empirical study on vulnerability distribution within projects and the lessons learned,” in Proceedings of the ACM/IEEE 42nd International Conference on Software Engineering 2020 > [43] C Yang, J Chen, B Lin, J Zhou, and Z Wang, “Enhancing llm-based test generation for hard-to-cover branches via program analysis,” arXiv preprint arXiv:2404.04966, 2024.<ref:2511.20555#pg13, [37] M Bohme, V.-T Pham, and A Roychoudhury, “Coverage-based ¨ greybox fuzzing as markov chain,” IEEE Transactions on Software Engineering, vol. p. 6 p. 6 p. 6 45, no. 5, pp. 489–506 > [38] Z Wang, B Liblit, and T Reps, “Tofu: Target-oriented fuzzer,” arXiv preprint arXiv:2004. p. 0 p. 014375, 2020.<ref:2511.20555#pg6, [39] Z Zhang, L Chen, H Wei, G Shi, and D Meng, “Prospector: Boosting directed greybox fuzzing for large-scale target sets with iterative prioritization,” in Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis 2024 > [40] Y Li, Y Xue, H Chen, X Wu, C Zhang, X Xie, H Wang, and Y Liu, “Cerebro: context-aware adaptive fuzzing for effective vulnerability detection,” in Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering 2019.<ref:2511.20555#pg8, [44] J A Pizzorno and E D Berger, “Coverup: Coverage-guided llmbased test generation,” arXiv preprint arXiv:2403. p. 016218, 2024 > [47] C S Xia, M Paltenghi, J Le Tian, M Pradel, and L Zhang, “Fuzz4all: Universal fuzzing with large language models,” in Proceedings of the IEEE/ACM 46th International Conference on Software Engineering 2024. p. 0<ref:2511.20555#pg13, [30] clang 20. p. 50.0git, “libclang: C interface to clang,” https://clang. p. 5 p. 5llvm.org/doxygen/group CINDEX. p. 6 p. 6html, 2025 > [31] “Networkx network analysis in python,” https://networkx. p. 6org/documentation/stable/reference/index. p. 3 p. 3 p. 3html, 2025. p. 7 p. 7 p. 7 p. 7<ref:2511.20555#pg7, [33] K Serebryany, D Bruening, A Potapenko, and D Vyukov, “ AddressSanitizer: A fast address sanity checker,” in 2012 USENIX annual technical conference (USENIX ATC 12), 2012 > [34]. A Lee, I Ariq, Y Kim, and M Kim, “Power: Program option-aware fuzzer for high bug detection ability,” in ICST, 2022. p. 9 p. 9<ref:2511.20555#pg7, [35] AFLplusplus Team, “AFLplusplus argv fuzzing,” https://github. p. 0com/AFLplusplus/AFLplusplus/tree/stable/utils/argv fuzzing, 2024 > [46] C Lemieux, J P Inala, S K Lahiri, and S Sen, “Codamosa: Escaping coverage plateaus in test generation with pre-trained large language models,” in 2023 IEEE/ACM 45th International Conference on Software Engineering (ICSE) 2023.<ref:2511.20555#pg13, [48] Y Zhang, Q Lu, K Liu, W Dou, J Zhu, L Qian, C Zhang, Z Lin, and J Wei, “Citywalk: Enhancing llm-based c++ unit test generation via project-dependency awareness and language-specific knowledge,” arXiv preprint arXiv:2501.16155, 2025 > [49] Y Oliinyk, M Scott, R Tsang, C Fang, H Homayoun et al. p. 7, “Fuzzing BusyBox: Leveraging LLM and crash reuse for embedded bug unearthing,” in 33rd USENIX Security Symposium (USENIX Security 24), 2024. p. 0<ref:2511.20555#pg14, [8] FFmpeg Team, “FFmpeg: A complete, cross-platform solution to record, convert and stream audio and video,” https://ffmpeg.org, 2024 > [9] FFmpeg Project, “Ffmpeg protocols documentation,” https://www. p. 1ffmpeg.org/ffmpeg-protocols.html, 2025.<ref:2511.20555#pg9, [16] FFmpeg Contributors, “Ffmpeg: Multimedia framework,” version N-103440 > [17] GraphicsMagick Contributors, “Graphicsmagick: Image processing system,” https://www. p. 5graphicsmagick. p. 5org/ <ref:2511. p. 020555#pg9, [28] Anthropic, “Introducing claude 4,” https://www. p. 0anthropic.com/news/claude-4, 2025 > [33] K Serebryany, D Bruening,. p. 0 A Potapenko, and D Vyukov, “AddressSanitizer: A fast address sanity checker,” in 2012 USENIX annual technical conference (USENIX ATC 12), 2012. p. 6<ref:2511.20555#pg7, [34] A Lee, I Ariq, Y Kim, and M Kim, “Power: Program option-aware fuzzer for high bug detection ability,” in ICST, 2022 > [30] clang 20. p. 90.0git, “libclang: C interface to clang,” https://clang.llvm.org/doxygen/group CINDEX.html, 2025.<ref:2511.20555#pg7, [31] “Networkx network analysis in python,” https://networkx. p. 6org/documentation/stable/reference/index.html, 2025 > [34]. p. 7 A Lee, I Ariq, Y Kim, and M Kim, “Power: Program option-aware fuzzer for high bug detection ability,” in ICST, 2022.<ref:2511.20555#pg7, [37] M Bohme, V.-T Pham, and A Roychoudhury, “Coverage-based ¨ greybox fuzzing as markov chain,” IEEE Transactions on Software Engineering, vol. 45, no. 5, pp. 489–506 > [38] Z Wang, B Liblit, and T Reps, “Tofu: Target-oriented fuzzer,” arXiv preprint arXiv:2004.14375, 2020.<ref:2511.20555#pg6, [39] Z Zhang, L Chen, H Wei, G Shi, and D Meng, “Prospector: Boosting directed greybox fuzzing for large-scale target sets with iterative prioritization,” in Proceedings of the 33rd ACM SIGSOFT International Symposium on Software Testing and Analysis 2024 > [40] Y Li, Y Xue, H Chen, X Wu, C Zhang, X Xie, H Wang, and Y Liu, “Cerebro: context-aware adaptive fuzzing for effective vulnerability detection,” in Proceedings of the 2019 27th ACM Joint Meeting on European Software Engineering Conference and Symposium on the Foundations of Software Engineering 2019.<ref:2511.20555#pg8, [43] C Yang, J Chen, B Lin, J Zhou, and Z Wang, “Enhancing llm-based test generation for hard-to-cover branches via program analysis,” arXiv preprint arXiv:2404.04966, 2024 > [31] “Networkx network analysis in python,” https://networkx. p. 6org/documentation/stable/reference/index.html, 2025.<ref:2511.20555#pg7, [34] A Lee, I Ariq, Y Kim, and M Kim, “Power: Program option-aware fuzzer for high bug detection ability,” in ICST, 2022 > [37] M Bohme, V. p. 9-T Pham, and A Roychoudhury, “Coverage-based ¨ greybox fuzzing as markov chain,” IEEE Transactions on Software Engineering, vol. 45, no. 5, pp. 489–506.
Limitations
First, we have not investigated the optimal number of iterations for iterative refinement.<ref:2511.20555#pg7>. However, increasing the number of iterations is constrained by substantial token usage, which accumulates over multiple iterations. p. 3<ref:2511.20555#pg7>. Second, we have not systematically evaluated PILOT across different LLM models. p. 2<ref:2511.20555#pg7>. Possible adaptations to support smaller models include decomposing prompts into smaller, focused subtasks that fit within limited context windows.<ref:2511.20555#pg7>
In this paper, we presented PILOT, a novel CLI fuzzing approach that leverages LLMs to generate semantically valid command-line option combinations and input files.<ref:2511.20555#pg8>. Our evaluation on 43 real-world programs shows that PILOT discovered 51 previously unknown vulnerabilities, with 41 confirmed and 33 fixed by developers.<ref:2511.20555#pg8>. The paper is arXiv:2511.20555v2 [cs.CR] 13 Mar 2026.<ref:2511.20555#pg7, arXiv:2511. p. 020555v2 [cs.
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
Path-guided context prompting enables LLMs to
better generate CLI option strings
by incorporatingpotential call paths to target functions as context,
allowing them to understand how command-line arguments relate to specific target functions. -
Autonomous code exploration allows LLMs to
independently navigate and select relevant files for coding tasks
through three modes: Read files, Write files, and Execute commands, enabling the generation ofsemantically valid input files
by orchestrating native command-line tools for format compliance. -
Iterative refinement with covered-path feedback allows PILOT to
adjust its seed generation strategy accordingly to reach the target function,
moving from a single attempt to a process that systematically refines commands based on execution results. -
Adaptive target selection uses graph centrality metrics, such as CLOSE, BET, and DEG, correlated with specific call graph structures (e.g.,
CLOSE excels on programs with large diameter and long paths
), to automatically select the most effective strategy for each program based on its unique structural characteristics. -
The system can discover previously unknown vulnerabilities by achieving higher edge coverage than baselines; for instance, PILOT achieved an average improvement of 16.0% over CarpetFuzz across the benchmark suite.
-
The system can reach deeper code locations by achieving a call chain depth of 4.77 compared to 4.27 for CarpetFuzz, indicating superior exploration of nested functions through path-guided analysis and iterative refinement.
-
The system can discover unique command-line options by extracting options directly from source code rather than relying on documentation, discovering
214 options including these internal parameters such as -dGraphicsAlphaBits and -dNumRenderingThreads.
Sources
- TOFU: Target-Oriented FUzzer
- Advancing Code Coverage: Incorporating Program Analysis with Large Language Models
- CoverUp: Effective High Coverage Test Generation for Python
- CITYWALK: Enhancing LLM-Based C++ Unit Test Generation via Project-Dependency Awareness and Language-Specific Knowledge
Related papers
- RustMizan: A Compilable, Contamination-Aware Benchmarking Framework for Rust Vulnerabilities
- Introducing the Generative Application Firewall (GAF)
- Opal: Private Memory for Personal AI
- Fuel as Identity: Authenticating Inter-Satellite Laser Links after Total Key Compromise
- Merkle Trees Minimize Verifier Complexity in the ROM
- VulCPE: Context-Aware Cybersecurity Vulnerability Retrieval and Management