Skip to main content
CenXiv.org
此网站处于试运行阶段,支持我们!
我们衷心感谢所有贡献者的支持。
贡献
赞助
cenxiv logo > cs > arXiv:2507.22447

帮助 | 高级搜索

计算机科学 > 密码学与安全

arXiv:2507.22447 (cs)
[提交于 2025年7月30日 ]

标题: 破解混淆:用于恶意JavaScript检测的集群感知图与大语言模型辅助恢复

标题: Breaking Obfuscation: Cluster-Aware Graph with LLM-Aided Recovery for Malicious JavaScript Detection

Authors:Zhihong Liang, Xin Wang, Zhenhuang Hu, Liangliang Song, Lin Chen, Jingjing Guo, Yanbin Wang, Ye Tian
摘要: 随着基于网络的应用程序和云服务的迅速扩展,恶意JavaScript代码持续对用户隐私、系统完整性和企业安全构成重大威胁。然而,由于复杂的代码混淆技术以及JavaScript固有的语言特性,特别是其嵌套闭包结构和语法灵活性,检测此类威胁仍然具有挑战性。在本工作中,我们提出了DeCoda,一种结合大型语言模型(LLM)去混淆和代码图学习的混合防御框架:(1) 我们首先构建一个复杂的提示学习管道,经过多阶段优化,其中LLM逐步从混淆输入中重建原始代码结构,然后生成规范化的抽象语法树(AST)表示;(2) 在JavaScript AST中,动态类型分散了语义相似的节点,而深度嵌套的函数则破坏了作用域捕获,引入了结构噪声和语义歧义。为了解决这些挑战,我们随后提出通过Cluster-wise Graph学习分层代码图表示,该方法协同整合图变压器网络、节点聚类和节点到聚类注意力机制,从而同时捕捉来自AST图的局部节点级语义和全局聚类引起的结构关系。实验结果表明,我们的方法在两个基准数据集上分别达到了94.64%和97.71%的F1分数,相对于最先进的基线方法分别提升了10.74%和13.85%。在固定FPR水平(0.0001、0.001、0.01)的假阳性控制评估中,我们的方法分别比表现最好的基线方法提高了4.82、5.91和2.53的TPR。这些结果突显了基于LLM的去混淆的有效性,并强调了在检测恶意代码时建模聚类级关系的重要性。
摘要: With the rapid expansion of web-based applications and cloud services, malicious JavaScript code continues to pose significant threats to user privacy, system integrity, and enterprise security. But, detecting such threats remains challenging due to sophisticated code obfuscation techniques and JavaScript's inherent language characteristics, particularly its nested closure structures and syntactic flexibility. In this work, we propose DeCoda, a hybrid defense framework that combines large language model (LLM)-based deobfuscation with code graph learning: (1) We first construct a sophisticated prompt-learning pipeline with multi-stage refinement, where the LLM progressively reconstructs the original code structure from obfuscated inputs and then generates normalized Abstract Syntax Tree (AST) representations; (2) In JavaScript ASTs, dynamic typing scatters semantically similar nodes while deeply nested functions fracture scope capturing, introducing structural noise and semantic ambiguity. To address these challenges, we then propose to learn hierarchical code graph representations via a Cluster-wise Graph that synergistically integrates graph transformer network, node clustering, and node-to-cluster attention to simultaneously capture both local node-level semantics and global cluster-induced structural relationships from AST graph. Experimental results demonstrate that our method achieves F1-scores of 94.64% and 97.71% on two benchmark datasets, demonstrating absolute improvements of 10.74% and 13.85% over state-of-the-art baselines. In false-positive control evaluation at fixed FPR levels (0.0001, 0.001, 0.01), our approach delivers 4.82, 5.91, and 2.53 higher TPR respectively compared to the best-performing baseline. These results highlight the effectiveness of LLM-based deobfuscation and underscore the importance of modeling cluster-level relationships in detecting malicious code.
主题: 密码学与安全 (cs.CR) ; 机器学习 (cs.LG)
引用方式: arXiv:2507.22447 [cs.CR]
  (或者 arXiv:2507.22447v1 [cs.CR] 对于此版本)
  https://doi.org/10.48550/arXiv.2507.22447
通过 DataCite 发表的 arXiv DOI

提交历史

来自: Zhenhuang Hu [查看电子邮件]
[v1] 星期三, 2025 年 7 月 30 日 07:46:49 UTC (1,170 KB)
全文链接:

获取论文:

    查看标题为《》的 PDF
  • 查看中文 PDF
  • 查看 PDF
  • TeX 源代码
  • 其他格式
查看许可
当前浏览上下文:
cs
< 上一篇   |   下一篇 >
新的 | 最近的 | 2025-07
切换浏览方式为:
cs.CR
cs.LG

参考文献与引用

  • NASA ADS
  • 谷歌学术搜索
  • 语义学者
a 导出 BibTeX 引用 加载中...

BibTeX 格式的引用

×
数据由提供:

收藏

BibSonomy logo Reddit logo

文献和引用工具

文献资源探索 (什么是资源探索?)
连接的论文 (什么是连接的论文?)
Litmaps (什么是 Litmaps?)
scite 智能引用 (什么是智能引用?)

与本文相关的代码,数据和媒体

alphaXiv (什么是 alphaXiv?)
CatalyzeX 代码查找器 (什么是 CatalyzeX?)
DagsHub (什么是 DagsHub?)
Gotit.pub (什么是 GotitPub?)
Hugging Face (什么是 Huggingface?)
带有代码的论文 (什么是带有代码的论文?)
ScienceCast (什么是 ScienceCast?)

演示

复制 (什么是复制?)
Hugging Face Spaces (什么是 Spaces?)
TXYZ.AI (什么是 TXYZ.AI?)

推荐器和搜索工具

影响之花 (什么是影响之花?)
核心推荐器 (什么是核心?)
IArxiv 推荐器 (什么是 IArxiv?)
  • 作者
  • 地点
  • 机构
  • 主题

arXivLabs:与社区合作伙伴的实验项目

arXivLabs 是一个框架,允许合作伙伴直接在我们的网站上开发和分享新的 arXiv 特性。

与 arXivLabs 合作的个人和组织都接受了我们的价值观,即开放、社区、卓越和用户数据隐私。arXiv 承诺这些价值观,并且只与遵守这些价值观的合作伙伴合作。

有一个为 arXiv 社区增加价值的项目想法吗? 了解更多关于 arXivLabs 的信息.

这篇论文的哪些作者是支持者? | 禁用 MathJax (什么是 MathJax?)
  • 关于
  • 帮助
  • contact arXivClick here to contact arXiv 联系
  • 订阅 arXiv 邮件列表点击这里订阅 订阅
  • 版权
  • 隐私政策
  • 网络无障碍帮助
  • arXiv 运营状态
    通过...获取状态通知 email 或者 slack

京ICP备2025123034号