arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2501.10269cs.SE
收藏

受限超大型系统中的灰盒模糊测试:给软件工程社区的启示

Grey-Box Fuzzing in Constrained Ultra-Large Systems: Lessons for SE Community

Jiazhao Yu, Yanlun Tu, Zhanlei Zhang, Tiehua Zhang, Cheng Xu, Weigang Wu, Hong Jin Kang, Xi Zheng

AI总结:

提出SandBoxFuzz灰盒模糊测试技术,利用面向切面编程和基于日志的覆盖率机制解决受限超大型微服务系统测试难题,在蚂蚁集团部署中显著提升分支覆盖率并发现大量异常。

摘要:

测试超大型基于微服务的金融科技系统面临重大挑战,包括受限的生产环境访问、复杂的依赖关系以及严格的安全约束。我们提出了SandBoxFuzz,这是一种可扩展的灰盒模糊测试技术,它通过利用面向切面编程和运行时反射来实现动态规约挖掘,从而为受限环境生成目标输入,以此解决这些局限性。SandBoxFuzz还引入了一种基于日志的覆盖率机制,无缝集成到构建流水线中,消除了对运行时覆盖率代理的需求,而这在工业环境中通常是不可行的。SandBoxFuzz已成功部署到蚂蚁集团的生产线中,并且与基于最先进模糊测试框架构建的初始解决方案相比,它在它们的微服务软件中展现出了卓越的性能。SandBoxFuzz实现了7.5%的分支覆盖率提升,额外识别了1,850个异常,并将设置时间从几小时缩短到几分钟,突显了其在真实工业环境中的有效性和实用性。通过开源SandBoxFuzz,我们为研究人员和从业者提供了一个实用且有效的工具,以测试大规模微服务系统。

英文摘要:

Testing ultra-large microservices-based FinTech systems presents significant challenges, including restricted access to production environments, complex dependencies, and stringent security constraints. We propose SandBoxFuzz, a scalable grey-box fuzzing technique that addresses these limitations by leveraging aspect-oriented programming and runtime reflection to enable dynamic specification mining, generating targeted inputs for constrained environments. SandBoxFuzz also introduces a log-based coverage mechanism, seamlessly integrated into the build pipeline, eliminating the need for runtime coverage agents that are often infeasible in industrial settings. SandBoxFuzz has been successfully deployed to Ant Group's production line and, compared to an initial solution built on a state-of-the-art fuzzing framework, it demonstrates superior performance in their microservices software. SandBoxFuzz achieves a 7.5% increase in branch coverage, identifies 1,850 additional exceptions, and reduces setup time from hours to minutes, highlighting its effectiveness and practical utility in a real-world industrial environment. By open-sourcing SandBoxFuzz, we provide a practical and effective tool for researchers and practitioners to test large-scale microservices systems.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑