journal article·2022-07-25Open access

SATFuzz: A Stateful Network Protocol Fuzzing Framework from a Novel Perspective

Zulie Pan, Liqun Zhang, Zhihao Hu, Yang Li, Yuanchao Chen

Applied Sciences· Volume 12· Issue 15

Abstract

Stateful network protocol fuzzing is one of the essential means for ensuring network communication security. However, the existing methods have problems, including frequent auxiliary message interaction, no in-depth state-space exploration, and high shares of invalid interaction time. To this end, we propose SATFuzz, a stateful network protocol fuzzing framework. SATFuzz first prioritizes the states identified by the status codes in response messages, then randomly selects a state to test among the high-priority states, and determines its corresponding optimal test sequence, which is composed of the minimum pre-lead sequence, the test case, and the fittest post-end sequence. Finally, SATFuzz uses a quasi-recurrent neural network (QRNN) to filter the test cases before performing interaction, and only the optimal test sequence, including the valid test case, can be fed to the protocol entity. To verify the proposed framework, we conduct extensive experiments with the state-of-the-art fuzzer on two popular protocols. The results show that the vulnerability discovery efficiency of the proposed approach increases by at least 1.48 times (at most by 3.06 times), making it superior to the rival methods. This not only confirms the effectiveness of SATFuzz in terms of improving the vulnerability discovery efficiency but also shows that SATFuzz has significant advantages.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Network Security and Intrusion Detection · Software Testing and Debugging Techniques · Advanced Malware Detection Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

College of Electronic Engineering, National University of Defense Technology, Hefei 230037, China

Anhui Province Key Laboratory of Cyberspace Security Situation Awareness and Evaluation, Hefei 230037, China

Funding

National Key R&D Program “Cyberspace Security”

References (33)

Show source-provided references
1. Survey of Software Vulnerability Detection Techniques
2. Network Protocol Vulnerability Discovery Based on Fuzzy Testing
3. Network protocol fuzz testing for information systems and applications: A survey and taxonomy10.1007/s11042-015-2763-6 ↗
4. (2022, July 14). Technical “Whitepaper” for afl-fuzz. Available online: https://lcamtuf.coredump.cx/afl/technical_details.txt.
5. (2022, July 14). libFuzzer—A Library for Coverage-Guided Fuzz Testing. Available online: https://llvm.org/docs/LibFuzzer.html.
6. (2022, July 14). Peach Fuzzer Platform. Available online: http://www.peachfuzzer.com/products/peach-platform.
7. (2022, July 14). A Fork and Successor of the Sulley Fuzzing Framework. Available online: https://github.com/jtpereyda/boofuzz.
8. Coverage-Based Greybox Fuzzing as Markov Chain
9. Böhme, M., Pham, V.T., Nguyen, M.D., and Roychoudhury, A. (November, January 30). Directed Greybox Fuzzing. Proceedings of the 2017 ACM SIGSAC Conference on Computer and Communications Security, Dallas, TX, USA.10.1145/3133956.3134020 ↗
10. Smart Greybox Fuzzing
11. Pham, V.T., Böhme, M., and Roychoudhury, A. (2020, January 24–28). AFLNET: A Greybox Fuzzer for Network Protocols. Proceedings of the 2020 IEEE 13th International Conference on Software Testing, Validation and Verification (ICST), Porto, Portugal.10.1109/ICST46399.2020.00062 ↗
12. (2022, July 14). A Pure-Python Fully Automated and Unattended Fuzzing Framework. Available online: https://github.com/OpenRCE/sulley.
13. (2022, July 14). Dynamic Application Security Testing. Available online: https://beyondsecurity.com/solutions/bestorm.html.
14. Patra, J., and Michael, P. (2016). Learning to Fuzz: Application-Independent Fuzz Testing with Probabilistic, Generative Models of Input Data, TU Darmstadt Department of Computer Science. Tech. Rep. TUD-CS-2016-14664.
15. Fan, R., and Chang, Y. (2017). Machine learning for black-box fuzzing of network protocols. International Conference on Information and Communications Security, Springer.10.1007/978-3-319-89500-0_53 ↗
16. Caballero, J., Yin, H., Liang, Z., and Song, D. (2007, January 28–31). Polyglot: Automatic extraction of protocol message format using dynamic binary analysis. Proceedings of the 14th ACM conference on Computer and Communications Security, CCS ’07, Alexandria, VA, USA.10.1145/1315245.1315286 ↗
17. Cui, W., Peinado, M., Chen, K., Wang, H.J., and Irun-Briz, L. (2008, January 27–31). Tupni: Automatic reverse engineering of input formats. Proceedings of the 15th ACM Conference on Computer and Communications Security, Alexandria, VA, USA.10.1145/1455770.1455820 ↗
18. Fiterau-Brostean, P., Jonsson, B., Merget, R., De Ruiter, J., Sagonas, K., and Somorovsky, J. (2020, January 12–14). Analysis of DTLS implementations using protocol state fuzzing. Proceedings of the 29th USENIX Security Symposium (USENIX Security 20), Boston, MA, USA.
19. Zou, Y.H., Bai, J.J., Zhou, J., Tan, J., Qin, C., and Hu, S.M. (2021, January 14–16). TCP-Fuzz: Detecting Memory and Semantic Bugs in TCP Stacks with Fuzzing. Proceedings of the 2021 USENIX Annual Technical Conference (USENIX ATC 21), Virtual.
20. Natella, R., and Pham, V.T. (2021, January 11–17). Profuzzbench: A benchmark for stateful protocol fuzzing. Proceedings of the 30th ACM SIGSOFT International Symposium on Software Testing and Analysis, Virtual.10.1145/3460319.3469077 ↗
21. Sutton, M., and Greene, A. (2009). Fuzzing: Brute Force Vulnerability Discovery, Chinese Machine Press.
22. Su, P., Ying, L., and Yang, Y. (2017). Software Security Analysis and Application, Tsinghua University Press.
23. Wang, J., Chen, B., Wei, L., and Liu, Y. (2017, January 22–26). Skyfire: Data-Driven Seed Generation for Fuzzing. Proceedings of the 2017 IEEE Symposium on Security and Privacy (SP), San Jose, CA, USA.10.1109/SP.2017.23 ↗
24. Gascon, H., Wressnegger, C., Yamaguchi, F., Arp, D., and Rieck, K. (2015). Pulsar: Stateful Black-Box Fuzzing of Proprietary Network Protocols. International Conference on Security and Privacy in Communication Systems, Springer.10.1007/978-3-319-28865-9_18 ↗
25. (2022, July 14). RFC Editor. Available online: https://www.rfc-editor.org/info/rfc959.
26. Zhao, J., Chen, S., Liang, S., Cui, B., and Song, X. (2013, January 28–30). RFSM-Fuzzing a Smart Fuzzing Algorithm Based on Regression FSM. Proceedings of the 2013 Eighth International Conference on P2P, Parallel, Grid, Cloud and Internet Computing, Compiegne, France.10.1109/3PGCIC.2013.65 ↗
27. A Novel Fuzzing Method for Zigbee Based on Finite State Machine10.1155/2014/762891 ↗
28. Fuzzing method for BGP-4 protocol based on FSM
29. Bradbury, J., Merity, S., Xiong, C., and Socher, R. (2016). Quasi-Recurrent Neural Networks. arXiv.
30. Zhou, Y. Research on Network Protocol Vulnerability Mining Method Based on Deep Learning. [Master’s Dissertation, University of Electronic Science and Technology of China].
31. Mining RTSP Protocol Vulnerabilities Based on Traversal of Protocol State Graph
32. (2022, July 14). Small x86-32/x64 FTP Server. Available online: https://github.com/hfiref0x/LightFTP.
33. (2022, July 14). The LIVE555TM Media Server. Available online: http://www.live555.com/mediaServer.