Fakeium:一个用于 JavaScript 程序分析的动态执行环境
Fakeium: A Dynamic Execution Environment for JavaScript Program Analysis
AI总结:
针对静态分析难处理混淆代码、动态分析成本高的问题,本文提出基于 V8 的开源轻量环境 Fakeium,以低开销支持大规模 JavaScript 动态分析并发现隐藏 API 调用。
摘要:
JavaScript 编程语言最初只是一种简单的 Web 脚本语言,如今已无处不在,覆盖桌面、移动和服务器应用。使用量的增长使 JavaScript 成为恶意行为者的诱人目标,导致窃取用户信息的恶意浏览器扩展扩散,以及针对官方 Node.js 包注册表的供应链攻击增多。为对抗这些威胁,研究人员开发了专门的工具和框架,用于分析 JavaScript 程序行为以检测恶意模式。静态分析工具通常难以应对该语言的高度动态特性,无法处理混淆源代码;而动态分析流程每个程序需要运行数分钟并消耗更多资源,因此不适用于大规模分析。本文提出 Fakeium,这是一个新颖、开源且轻量级的执行环境,旨在实现高效、大规模的 JavaScript 程序动态分析。Fakeium 构建于流行的 V8 引擎之上,通过提供原本不会被发现的额外 API 调用和字符串字面量来补充传统静态分析,且无需资源密集型的插桩浏览器或合成用户输入。除了可忽略的执行开销外,该工具还具有高度可定制性,并支持用于网络流量仿真等高级分析场景的钩子。Fakeium 的灵活性及其检测隐藏 API 调用(尤其是在混淆源代码中)的能力,凸显了其作为安全分析人员检测恶意行为的宝贵工具的潜力。
英文摘要:
The JavaScript programming language, which began as a simple scripting language for the Web, has become ubiquitous, spanning desktop, mobile, and server applications. This increase in usage has made JavaScript an attractive target for nefarious actors, resulting in the proliferation of malicious browser extensions that steal user information and supply chain attacks that target the official Node.js package registry. To combat these threats, researchers have developed specialized tools and frameworks for analyzing the behavior of JavaScript programs to detect malicious patterns. Static analysis tools typically struggle with the highly dynamic nature of the language and fail to process obfuscated sources, while dynamic analysis pipelines take several minutes to run and require more resources per program, making them unfeasible for large-scale analyses. In this paper, we present Fakeium, a novel, open source, and lightweight execution environment designed for efficient, large-scale dynamic analysis of JavaScript programs. Built on top of the popular V8 engine, Fakeium complements traditional static analysis by providing additional API calls and string literals that would otherwise go unnoticed without the need for resource-intensive instrumented browsers or synthetic user input. Besides its negligible execution overhead, our tool is highly customizable and supports hooks for advanced analysis scenarios such as network traffic emulation. Fakeium's flexibility and ability to detect hidden API calls, especially in obfuscated sources, highlights its potential as a valuable tool for security analysts to detect malicious behavior.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。