arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2604.19438cs.CRcs.SE
收藏

通过学习动态行为检测恶意机器学习模型

Malicious ML Model Detection by Learning Dynamic Behaviors

Singapore University of Technology and Design(新加坡科技设计大学)

Sarang Nambiar, Dhruv Pradhan, Ezekiel Soremekun

AI总结:

本文提出DynaHug方法,通过动态分析和机器学习检测恶意预训练模型,相比现有方法在F1分数上提升44%。

摘要:

预训练机器学习模型(PTMs)通常通过模型库(如Hugging Face)提供,以Pickles等标准格式便于访问和重用。然而,这种ML供应链设置易受恶意攻击,攻击者可利用模型加载期间执行任意代码。为检测恶意PTMs,现有检测器(如PickleScan)依赖规则、启发式或静态分析,但忽略运行时行为。因此,它们要么因低估而漏检恶意模型(黑名单),要么因高估而误判良性模型(静态分析或白名单)。为解决此挑战,我们提出DynaHug技术,通过动态分析和机器学习学习良性PTMs行为。DynaHug在任务特定良性模型的运行时行为上训练一个ML分类器(一对一SVM (OCSVM))。我们使用超过25,000个良性和恶意PTMs(来自Hugging Face和MalHug)评估DynaHug,并将其与静态、动态和LLM基检测器进行比较。结果表明,DynaHug在F1分数上比现有基线提升高达44%。我们的消融研究证明,动态分析、OCSVM和聚类设计决策对DynaHug的有效性有积极贡献。

英文摘要:

Pre-trained machine learning models (PTMs) are commonly provided via Model Hubs (e.g., Hugging Face) in standard formats like Pickles to facilitate accessibility and reuse. However, this ML supply chain setting is susceptible to malicious attacks that are capable of executing arbitrary code on trusted user environments, e.g., during model loading. To detect malicious PTMs, state-of-the-art detectors (e.g., PickleScan) rely on rules, heuristics, or static analysis, but ignore runtime model behaviors. Consequently, they either miss malicious models due to under-approximation (blacklisting) or miscategorize benign models due to over-approximation (static analysis or whitelisting). To address this challenge, we propose a novel technique (DynaHug) which detects malicious PTMs by learning the behavior of benign PTMs using dynamic analysis and machine learning (ML). DynaHug trains an ML classifier (one-class SVM (OCSVM)) on the runtime behaviours of task-specific benign models. We evaluate DynaHug using over 25,000 benign and malicious PTMs from different sources including Hugging Face and MalHug. We also compare DynaHug to several state-of-the-art detectors including static, dynamic and LLM-based detectors. Results show that DynaHug is up to 44% more effective than existing baselines in terms of F1-score. Our ablation study demonstrates that our design decisions (dynamic analysis, OCSVM, clustering) contribute positively to DynaHug's effectiveness.

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

↑