arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.10773cs.CRcs.SE
收藏

AIM:面向蜕变安全测试的自动化输入集最小化

AIM: Automated Input Set Minimization for Metamorphic Security Testing

Nazanin Bayati Chaleshtari, Yoann Marquer, Fabrizio Pastore, Lionel C. Briand

AI总结:

针对蜕变安全测试因输入集规模大导致测试效率低的问题,提出AIM方法,通过聚类、遗传算法和问题约简实现输入集最小化,在Jenkins和Joomla上可缩短80%以上测试时间且保持检测能力,漏洞覆盖率优于现有基线。

摘要:

尽管Web系统的安全测试可通过生成特制输入实现自动化,但用于自动化测试预言(即漏洞检测)的解决方案仍难以在实践中落地。具体而言,尽管已有研究证明了蜕变测试的潜力——安全失效可通过将有效输入转化为恶意输入的蜕变关系判定,但蜕变关系通常需在大规模输入集上执行,耗时极长,导致蜕变测试实用性不足。我们提出AIM方法,可自动筛选输入以降低测试成本,同时保留漏洞检测能力。AIM包含一种基于聚类的黑盒方法,用于根据输入的安全属性识别相似输入;还依托一种新型遗传算法,在最小化总成本的同时高效筛选多样化输入;此外还设有问题约简组件,用于缩小搜索空间并加速最小化进程。我们在两个存在已记录漏洞的知名Web系统Jenkins和Joomla上评估了AIM的有效性,将其结果与四种采用标准搜索方法的基线进行对比。总体而言,AIM将Jenkins的蜕变测试时间缩短了84%,将Joomla的缩短了82%,同时保持了同等水平的漏洞检测能力。此外,在漏洞覆盖率方面,AIM显著优于所有纳入对比的基线方法。

英文摘要:

Although the security testing of Web systems can be automated by generating crafted inputs, solutions to automate the test oracle, i.e., vulnerability detection, remain difficult to apply in practice. Specifically, though previous work has demonstrated the potential of metamorphic testing, security failures can be determined by metamorphic relations that turn valid inputs into malicious inputs, metamorphic relations are typically executed on a large set of inputs, which is time-consuming and thus makes metamorphic testing impractical. We propose AIM, an approach that automatically selects inputs to reduce testing costs while preserving vulnerability detection capabilities. AIM includes a clustering-based black-box approach, to identify similar inputs based on their security properties. It also relies on a novel genetic algorithm to efficiently select diverse inputs while minimizing their total cost. Further, it contains a problem-reduction component to reduce the search space and speed up the minimization process. We evaluated the effectiveness of AIM on two well-known Web systems, Jenkins and Joomla, with documented vulnerabilities. We compared AIM's results with four baselines involving standard search approaches. Overall, AIM reduced metamorphic testing time by 84% for Jenkins and 82% for Joomla, while preserving the same level of vulnerability detection. Furthermore, AIM significantly outperformed all the considered baselines regarding vulnerability coverage.

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

↑