{"id":19456903,"url":"https://github.com/alipay/ant-application-security-testing-benchmark","last_synced_at":"2025-05-15T23:06:51.723Z","repository":{"id":94559565,"uuid":"582198351","full_name":"alipay/ant-application-security-testing-benchmark","owner":"alipay","description":"xAST评价体系，让安全工具不再“黑盒”.   The xAST evaluation benchmark makes security tools no longer a \"black box\".","archived":false,"fork":false,"pushed_at":"2025-04-01T03:15:51.000Z","size":11124,"stargazers_count":381,"open_issues_count":7,"forks_count":49,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-04-08T10:41:12.786Z","etag":null,"topics":["application","benchmark","dast","evaluation","iast","sast","sca","security","testing"],"latest_commit_sha":null,"homepage":"https://xastbenchmark.github.io","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alipay.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-26T03:52:42.000Z","updated_at":"2025-04-03T05:06:17.000Z","dependencies_parsed_at":"2023-10-12T19:08:46.584Z","dependency_job_id":"4285fd73-4aec-44bb-a6ff-b116b7c27dbe","html_url":"https://github.com/alipay/ant-application-security-testing-benchmark","commit_stats":{"total_commits":184,"total_committers":16,"mean_commits":11.5,"dds":0.6576086956521738,"last_synced_commit":"4749c2ce9a57a237d87884335ee41fee16299a64"},"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alipay%2Fant-application-security-testing-benchmark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alipay%2Fant-application-security-testing-benchmark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alipay%2Fant-application-security-testing-benchmark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alipay%2Fant-application-security-testing-benchmark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alipay","download_url":"https://codeload.github.com/alipay/ant-application-security-testing-benchmark/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254436947,"owners_count":22070947,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["application","benchmark","dast","evaluation","iast","sast","sca","security","testing"],"created_at":"2024-11-10T17:18:57.035Z","updated_at":"2025-05-15T23:06:46.379Z","avatar_url":"https://github.com/alipay.png","language":"Java","funding_links":[],"categories":["测试","代码审计"],"sub_categories":[],"readme":"\n# \u003cimg src=\"floder-img/xastlogo.png\"  /\u003e\n## [ 项目官网 ](https://xastbenchmark.github.io/)\n#### [简体中文](README.md) / [English](README_en.md)\n\n# 项目简介\n\n应用安全测试技术（xAST）对于保障软件安全可靠发挥着越来越重要的作用，目前每一类应用安全测试产品（SAST/IAST/DAST/SCA/MAST等）都有至少数十款商业化或开源产品供客户选择。与此同时，一些甲方企业也在自研xAST产品。不管是商业采购还是选择开源产品还是自研，大家都面临一个共同的难题，如何客观衡量一款xAST产品的技术水平？\n\n目前工业界和学术界都没有对xAST产品技术能力进行衡量的评价标准，通常是使用若干漏洞样本集的测试结果进行技术评价，业界常见的漏洞样本集见图1，测试结果示例见图2。\n\n\u003cdiv align=center\u003e\n\u003ccenter\u003e\n    \u003cimg style=\"border-radius: 0.3125em;\n    box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.08);\"\n    src=\"https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/floder-img/image1.png\"\u003e\n    \u003cbr\u003e\n    \u003cdiv style=\"color:orange; border-bottom: 1px solid #d9d9d9;\n    display: inline-block;\n    color: #999;\n    padding: 2px;\"\u003e图1 业界常见漏洞样本集\u003c/div\u003e\n  \u003c/center\u003e\n   \u003c/div\u003e\n\n   \u003cdiv align=center\u003e\n\u003ccenter\u003e\n    \u003cimg style=\"border-radius: 0.3125em;\n    box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.08);\"\n    src=\"https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/floder-img/image2.png\"\u003e\n    \u003cbr\u003e\n    \u003cdiv style=\"color:orange; border-bottom: 1px solid #d9d9d9;\n    display: inline-block;\n    color: #999;\n    padding: 2px;\"\u003e图2 不同开源SAST在Juliet Java漏洞样本集上的测试结果示例\u003c/div\u003e\n  \u003c/center\u003e\n   \u003c/div\u003e\n\n一方面，由图1可以看出各样本集之间差异巨大（从数十个样本到十万个样本），究其根源在于漏洞样本集缺乏体系化设计，都是漏洞样本的简单堆砌，测试结果的完整性得不到保障；漏洞样本集所测试的功能点分布不均，测试结果也缺乏合理性。\n\n另一方面，由图2可以看出，由于缺乏评价体系，评价结果对用户是个“黑盒”，评价结果只能给出总体的召回率和误报率数据，无法细粒度的刻画产品的技术优势与不足。\n\n针对xAST领域缺乏有效衡量技术能力标准的业界痛点，**蚂蚁安全团队**联合**浙江大学网络空间安全学院**的20余位专家学者，共同设计了xAST评价体系及其测试样本套件Benchmark，致力于成为应用安全测试工具的“**度量衡**”。\n\n# 项目目标与价值\n\n**目标**：打造具备行业共识的xAST能力评价体系**技术标准**\n\n**价值**：衡量xAST产品技术能力，指引xAST技术发展方向，辅助企业产品选型\n\n# 技术亮点\n\n## 业界首个评价体系驱动式Benchmark\n\n传统漏洞样本集普遍没有做评价项设计，一般是简单的通过堆砌样本来体现其“完整度”，很可能有较多的样本都在测试同一个功能点，这势必导致测试结果既不能保证完备性，也不能保证测试结果的合理性。\n\n我们在设计测试样本集之前，在业界首次设计了一套包含各个维度评价项的评价体系，再基于评价体系设计对应的测试样本集，较传统方式提高了完备性和合理性。\n\n   \u003cdiv align=center\u003e\n\u003ccenter\u003e\n    \u003cimg style=\"border-radius: 0.3125em;\n    box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.08);\"\n    src=\"https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/floder-img/image3.png\"\u003e\n    \u003cbr\u003e\n    \u003cdiv style=\"color:orange; border-bottom: 1px solid #d9d9d9;\n    display: inline-block;\n    color: #999;\n    padding: 2px;\"\u003e图3 业界首个评价体系设计驱动式Benchmark\u003c/div\u003e\n  \u003c/center\u003e\n   \u003c/div\u003e\n\n## 业界首个面向工具视角的Benchmark\n\n传统漏洞样本集一般都是以漏洞类型作为评价视角，不同漏洞类型的样本组成了样本集，不同类型的xAST产品都在同一套漏洞样本集上进行测试。但xAST技术原理各异，样本集在不同类型产品之间很难通用。如测试静态分析SAST路径敏感的样本对于动态分析IAST来说就没有太多意义，这也将影响测试结果的合理性。\n\n针对这种情况，我们转换了评价视角，在业界首次从漏洞视角转化成工具视角，不同工具不同评价项，不同语言不同评价项，评价项和样本的设计更合理。\n\n   \u003cdiv align=center\u003e\n\u003ccenter\u003e\n    \u003cimg style=\"border-radius: 0.3125em;\n    box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.08);\"\n    src=\"https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/floder-img/image4.png\"\u003e\n    \u003cbr\u003e\n    \u003cdiv style=\"color:orange; border-bottom: 1px solid #d9d9d9;\n    display: inline-block;\n    color: #999;\n    padding: 2px;\"\u003e图4 业界首个面向工具视角的Benchmark\u003c/div\u003e\n  \u003c/center\u003e\n   \u003c/div\u003e\n\n## 评价体系分层设计，降低评价复杂度\n\n本质上，xAST的能力是分层的。有的能力比较底层，如对污点数据的跟踪能力，这类能力通常实现的难度较大，成本较高，是需要用户重点关注的；有的能力属于比较上层，如对某个规则或框架的sink点支持，通过简单的配置就可以支持，重要度相比引擎能力没那么高。传统漏洞样本集没有对这些能力做区分，“眉毛胡子一把抓”，测试结果无法区分究竟是规则没有配置导致的不支持还是引擎能力上不支持。\n\n我们在业界首次提出对一款xAST可以从底层到上层分成引擎能力、规则能力和产品化能力这三层。对这三层分别设计评价体系和测试样本，既降低了每一层评价的复杂度，又使测试结果可以直接反映问题出在哪一层。\n\n   \u003cdiv align=center\u003e\n\u003ccenter\u003e\n    \u003cimg style=\"border-radius: 0.3125em;\n    box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.08);\"\n    src=\"https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/floder-img/image5.png\"\u003e\n    \u003cbr\u003e\n    \u003cdiv style=\"color:orange; border-bottom: 1px solid #d9d9d9;\n    display: inline-block;\n    color: #999;\n    padding: 2px;\"\u003e图5 评价体系分层设计，降低评价复杂度\u003c/div\u003e\n  \u003c/center\u003e\n   \u003c/div\u003e\n\n## “体检报告”式结果，细粒度可解释\n\n传统漏洞样本集由于缺乏评价体系指导，每个样本的“测试功能点”是模糊的，评价结果是个“黑盒”，只能得到一个召回率和准确率的数据，无法得到更细粒度的信息。\n\n我们基于评价体系，每个评价项对应生成一个测试样本，给每个测试样本都赋予了明确的“测试功能点”，使测试结果如同一份详尽的“体检报告”，细粒度可解释，知其然，知其所以然。\n\n   \u003cdiv align=center\u003e\n\u003ccenter\u003e\n    \u003cimg style=\"border-radius: 0.3125em;\n    box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.08);\"\n    src=\"https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/floder-img/image6.png\"\u003e\n    \u003cbr\u003e\n    \u003cdiv style=\"color:orange; border-bottom: 1px solid #d9d9d9;\n    display: inline-block;\n    color: #999;\n    padding: 2px;\"\u003e图6 “体检报告”式结果，细粒度可解释\u003c/div\u003e\n  \u003c/center\u003e\n   \u003c/div\u003e\n\n## 业界Benchmark交叉验证，确保完备性\n\n为了保障评价体系及其Benchmark的完备性，我们还与业界常见的Benchmark进行了交叉验证，确保这些常见Benchmark的测试功能点都能在我们的评价体系中有体现，进一步确保了评价体系的完备性。\n\n   \u003cdiv align=center\u003e\n\u003ccenter\u003e\n    \u003cimg style=\"border-radius: 0.3125em;\n    box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.08);\"\n    src=\"https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/floder-img/image7.png\"\u003e\n    \u003cbr\u003e\n    \u003cdiv style=\"color:orange; border-bottom: 1px solid #d9d9d9;\n    display: inline-block;\n    color: #999;\n    padding: 2px;\"\u003e图7 业界Benchmark交叉验证，确保完备性\u003c/div\u003e\n  \u003c/center\u003e\n   \u003c/div\u003e\n\n# 评价体系内容\n\n项目大图见图8，由SAST（静态应用安全测试）、IAST（交互式应用安全测试）、DAST（动态应用安全测试）、SCA（软件组成成份分析）、MAST（移动应用安全测试技术）大模型/机器学习漏洞检测等多个子模块组成。\n\n   \u003cdiv align=center\u003e\n\u003ccenter\u003e\n    \u003cimg style=\"border-radius: 0.3125em;\n    box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.08);\"\n    src=\"https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/floder-img/image8.png\"\u003e\n    \u003cbr\u003e\n    \u003cdiv style=\"color:orange; border-bottom: 1px solid #d9d9d9;\n    display: inline-block;\n    color: #999;\n    padding: 2px;\"\u003e图8 项目大图\u003c/div\u003e\n  \u003c/center\u003e\n   \u003c/div\u003e\n\n评价体系的每个子模块包括引擎能力评价体系（区分开发语言）和规则能力评价体系。以SAST\\-Java引擎能力评价体系为例，评价体系由评价指标项和基于评价指标项的测试样本代码Benchmark两部分组成，见图9。\n\n   \u003cdiv align=center\u003e\n\u003ccenter\u003e\n    \u003cimg style=\"border-radius: 0.3125em;\n    box-shadow: 0 2px 4px 0 rgba(34,36,38,.12),0 2px 10px 0 rgba(34,36,38,.08);\"\n    src=\"https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/floder-img/image9.png\"\u003e\n    \u003cbr\u003e\n    \u003cdiv style=\"color:orange; border-bottom: 1px solid #d9d9d9;\n    display: inline-block;\n    color: #999;\n    padding: 2px;\"\u003e图9 评价体系内容示例\u003c/div\u003e\n  \u003c/center\u003e\n   \u003c/div\u003e\n\n\n用户通过各xAST产品在Benchmark上的实际测试结果，结合评价指标项，即可全面了解被测产品的能力详情。\n\n# 项目进展\n\n项目自2023年开源以来，已有**阿里**、**华为**、**斗象**、**中国软件评测中心**、**科大讯飞**和**雪球**等十余家企业用户使用评价体系用于商采/开源产品选型或自研产品的技术衡量。其中IAST\\-Java和DAST引擎能力评价体系已作为技术标准，用于**开放原子开源基金会**对开源安全工具的测评项目。\n\n\n# 评价体系\n### [ sast-java评价体系 ](https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/doc/sast-java-engine-evaluation.md)\n### [ iast-java评价体系 ](https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/doc/iast-java-engine-evaluation.md)\n### [ dast评价体系 ](https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/doc/dast-engine-evaluation.md)\n### [ nodejs评价体系](https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/doc/sast-node-engine-evaluation.md)\n\n# 联系我们\n## 微信\n\n\u003cdiv align=\"center\"\u003e\n  \u003ctable border=\"0\" cellspacing=\"0\" cellpadding=\"0\"\u003e\n    \u003ctr\u003e\n      \u003ctd style=\"text-align: center;\"\u003e\n        \u003cimg src=\"https://github.com/alipay/ant-application-security-testing-benchmark/raw/main/floder-img/xzs.png\" alt=\"微信小助手\" width=\"200\"/\u003e\u003cbr\u003e\n        \u003cem\u003e微信小助手\u003c/em\u003e\n      \u003c/td\u003e\n      \u003ctd style=\"text-align: center;\"\u003e\n            \u003cimg src=\"https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/floder-img/gzh.png\" alt=\"微信公众号\" width=\"200\"/\u003e\u003cbr\u003e\n        \u003cem\u003e微信公众号\u003c/em\u003e\n      \u003c/td\u003e\n    \u003c/tr\u003e\n  \u003c/table\u003e\n\u003c/div\u003e\n\n\n## 邮箱\n\nxast-contact@service.alipay.com\n\n# [FAQ](https://github.com/alipay/ant-application-security-testing-benchmark/wiki/FAQ)\n\n# [参与测评或共建](https://github.com/alipay/ant-application-security-testing-benchmark/blob/main/CONTRIBUTING.md)\n\n# License\nThis project is licensed under the Apache License 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falipay%2Fant-application-security-testing-benchmark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falipay%2Fant-application-security-testing-benchmark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falipay%2Fant-application-security-testing-benchmark/lists"}