arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2601.17390cs.SEcs.CRcs.PL
收藏

YASA:蚂蚁集团统一AST上的可扩展多语言污点分析

YASA: Scalable Multi-Language Taint Analysis on the Unified AST at Ant Group

Ant Group(蚂蚁集团);Huazhong University of Science and Technology(华中科技大学)

Yayi Wang, Shenao Wang, Jian Zhao, Shaosen Shi, Ting Li, Yan Cheng, Lizhong Bian, Kan Yu, Yanjie Zhao, Haoyu Wang

AI总结:

针对多语言静态应用安全测试挑战,YASA提出统一多语言静态污点分析框架,通过统一抽象语法树实现跨语言兼容,有效提升大型工业应用的安全性。

摘要:

现代企业采用多样化的技术栈和多种编程语言,给静态应用安全测试(SAST)带来重大挑战。现有污点分析工具主要针对单语言设计,需大量工程工作量,难以应对语言多样性。尽管CodeQL、Joern和WALA等多语言工具试图解决这些问题,但在中间表示设计、分析精度和可扩展性方面存在限制,难以有效扩展到蚂蚁集团的大型工业应用。为此,我们提出了YASA(Yet Another Static Analyzer),一个面向工业级部署的统一多语言静态污点分析框架。具体而言,YASA引入了统一抽象语法树(UAST),为不同编程语言提供统一抽象。基于UAST,YASA执行点到分析和污点传播,利用统一语义模型管理语言无关构造,同时结合语言特定语义模型处理其他独特语言特性。在行业标准基准上,YASA在Java、JavaScript、Python和Go上均优于所有基线。在蚂蚁集团的实际部署中,YASA分析了超过1亿行代码,覆盖7300多个内部应用,发现了314个此前未知的污点路径,其中92个被确认为0-day漏洞。所有漏洞均已负责任地报告,76个已由内部开发团队修复,证明了YASA在保障大型工业软件系统安全方面的实际有效性。

英文摘要:

Modern enterprises increasingly adopt diverse technology stacks with various programming languages, posing significant challenges for static application security testing (SAST). Existing taint analysis tools are predominantly designed for single languages, requiring substantial engineering effort that scales with language diversity. While multi-language tools like CodeQL, Joern, and WALA attempt to address these challenges, they face limitations in intermediate representation design, analysis precision, and extensibility, which make them difficult to scale effectively for large-scale industrial applications at Ant Group. To bridge this gap, we present YASA (Yet Another Static Analyzer), a unified multi-language static taint analysis framework designed for industrial-scale deployment. Specifically, YASA introduces the Unified Abstract Syntax Tree (UAST) that provides a unified abstraction for compatibility across diverse programming languages. Building on the UAST, YASA performs point-to analysis and taint propagation, leveraging a unified semantic model to manage language-agnostic constructs, while incorporating language-specific semantic models to handle other unique language features. When compared to 6 single- and 2 multi-language static analyzers on an industry-standard benchmark, YASA consistently outperformed all baselines across Java, JavaScript, Python, and Go. In real-world deployment within Ant Group, YASA analyzed over 100 million lines of code across 7.3K internal applications. It identified 314 previously unknown taint paths, with 92 of them confirmed as 0-day vulnerabilities. All vulnerabilities were responsibly reported, with 76 already patched by internal development teams, demonstrating YASA's practical effectiveness for securing large-scale industrial software systems.

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

↑