Obfuscating Code Vulnerabilities against Static Analysis in JavaScript Code
University of Verona(维罗纳大学);University of Cagliari(卡利亚里大学);School of Advanced Defense Studies (CASD)(高级防务研究学院(CASD));National Interuniversity Consortium for Informatics(国家大学间信息学联盟)
Francesco Pagano, Lorenzo Pisu, Leonardo Regano, Davide Maiorca, Alessio Merlo, Giorgio Giacinto
Code obfuscation is widely adopted in modern software development to protect intellectual property and hinder reverse engineering, but it also provides attackers with a powerful means to conceal malicious logic inside otherwise legitimate JavaScript code. In a software supply chain where a single compromised package can affect thousands of applications, this raises a critical question: how robust are the Static Application Security Testing (SAST) tools that CI/CD pipelines rely on as automated security gatekeepers? This paper answers that question by empirically quantifying the impact of JavaScript obfuscation on state-of-practice SAST. We define a realistic supply-chain threat model in which an adversary injects vulnerable code and iteratively obfuscates it until the pipeline reports a clean scan. To measure the resulting degradation, we introduce the Vulnerability Detection Loss (VDL) metric and conduct a two-phase study. First, we analyze 16 vulnerable-by-design Node.js web applications from the OWASP directory; second, we extend the analysis to 260 in-the-wild JavaScript/Node.js projects from GitHub. Across both datasets, we apply eight semantics-preserving obfuscation techniques and their combinations and evaluate two representative SAST tools, Njsscan and Bearer. Even a single obfuscation technique typically suppresses most baseline findings, including high-severity issues, while stacking techniques yield near-total evasion, with VDL often approaching 100%. Our results show that current JavaScript SAST is fundamentally not robust against commonplace obfuscations and that "clean" reports on obfuscated code may offer only a false sense of security. Finally, we discuss practical mitigation guidelines and directions for obfuscation-aware analysis.
Large Language Models Cannot Reliably Detect Vulnerabilities in JavaScript: The First Systematic Benchmark and Evaluation
Lanzhou University(兰州大学);Zhejiang University(浙江大学);Beihang University(北京航空航天大学);Technology Support Center of the Cyberspace Administration of China(国家互联网信息办公室技术支撑中心);Fudan University(复旦大学);Beijing University of Posts(北京邮电大学)
Khaos: The Impact of Inter-procedural Code Obfuscation on Binary Diffing Techniques
软件混淆技术通过对第三方代码进行混淆,防止二进制差分技术定位脆弱代码,达到保护嵌入式设备软件的目的。随着二元差分技术的迅速发展,通过提取函数内部的特征,可以实现越来越精确的函数匹配和识别。这使得现有的软件混淆技术,主要集中在过程内的代码混淆,不再有效。在本文中,我们提出了一个新的过程间代码混淆机制Khaos,它通过使用编译优化将代码跨函数移动以混淆函数。提出了两种混淆原语来分离和聚合函数,分别称为裂变和融合。Khaos的原型是基于LLVM编译器实现的,并在大量真实世界的程序上进行了评估,包括SPEC CPU 2006 & 2017,CoreUtils,JavaScript引擎,实验结果表明,Khaos算法优于现有的代码混淆算法,可以显著降低五种二进制差分算法的正确率(低于19%),运行时开销更低(低于7%)。
ExploitGym: Can AI Agents Turn Security Vulnerabilities into Real Attacks?
UC Berkeley(加州大学伯克利分校);Max Planck Institute for Security and Privacy(马克斯·普朗克安全与隐私研究所);UC Santa Barbara(加州大学圣巴巴拉分校);Arizona State University(亚利桑那州立大学);Anthropic(Anthropic公司);OpenAI;Google(谷歌)
Can Adversarial Code Comments Fool AI Security Reviewers -- Large-Scale Empirical Study of Comment-Based Attacks and Defenses Against LLM Code Analysis
Last Secure Code Benchmark: Is the Code You Vibe Secure?
National University of Singapore(新加坡国立大学);Qwen Team, Alibaba Token Hub, Alibaba Group(阿里通义千问团队、阿里Token Hub、阿里巴巴集团);Cloud Safety and Security, Alibaba Cloud, Alibaba Group(阿里云云安全与安全部门、阿里云、阿里巴巴集团)
本研究推出 Last Secure Code Benchmark 评估编码智能体的安全代码生成,发现前沿智能体生成的代码功能通过率高但安全通过率低,vibe 编码生成代码的安全性存在严重隐患。