arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.16309cs.SEcs.CR
收藏

AgentGuard: 一种基于混合搜索和元数据-内容融合的多智能体框架用于鲁棒的包混淆检测

AgentGuard: A Multi-Agent Framework for Robust Package Confusion Detection via Hybrid Search and Metadata-Content Fusion

Tianjin University(天津大学);Singapore Management University(新加坡管理大学);Amazon(亚马逊)

Yu Li, Wei Ma, Zhi Chen, Ye Liu, Lingxiao Jiang, Junyi Tao, Hao Liu, Yongqiang Lyu, Qiang Hu

AI总结:

AgentGuard通过融合元数据和内容分析,结合混合相似性搜索,有效降低误报率,优于现有方法,提升检测精度。

摘要:

开源软件的普及使软件供应链成为攻击目标,如包混淆攻击,其中攻击者发布恶意包,其名称与合法包相似。为应对此类攻击,已提出多种混淆检测方法,但现有方法局限于单一信号检索策略,面临高误报率和对抗逃避问题。为解决这些问题,我们引入AgentGuard,一种基于多智能体的包混淆检测框架。首先,利用微调的词嵌入模型进行混合相似性搜索发现潜在混淆目标。随后,通过融合机器学习模型评估风险,该模型结合多维元数据组和新的包内容分析组,以降低误报率并减轻对抗逃避的影响。我们评估了AgentGuard在具有挑战性的ConfuDB和NeupaneDB数据集上的有效性。结果表明,AgentGuard显著优于现有方法,ConfuGuard和Typomind,在提升精度12%-49%的同时,同时将误报率降低11%-35%,并有效发现混淆包。

英文摘要:

The proliferation of open-source software (OSS) has made software supply chains prime targets for attacks like Package Confusion, where adversaries publish malicious packages with names deceptively similar to legitimate ones. To protect against such attacks and safeguard the use of OSS, multiple confusion detection methods have been proposed. However, existing methods are limited to single-signal retrieval strategies (relying solely on lexical or semantic metrics), struggle with high false positive rates (FPR), and are vulnerable to adversarial evasion. Critically, as content-agnostic approaches, they fundamentally fail to distinguish benign packages with high naming similarity from malicious, code-dissimilar impersonations, leading to persistent high FPR. To address these limitations, we introduce AgentGuard, a novel multi-agents based framework for package confusion detection. Specifically, it first discovers potential confusion targets using fine-tuned word embedding models with hybrid similarity search. After that, It subsequently evaluates risk via a fused machine learning model that uniquely combines: (1) a multi-dimensional metadata group and (2) a novel package content analysis group, to reduce the FPR and mitigate the impact of adversarial evasion. To assess the effectiveness of AgentGuard, we evaluate it on challenging ConfuDB and NeupaneDB datasets. Our results demonstrate that AgentGuard significantly outperforms state-of-the-art baselines, ConfuGuard and Typomind, improving precision by 12\%-49\% while simultaneously reducing the FPR by 11\%-35\%, and effectively discovers the confused package.

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

↑