AI供应链中的生锈环节:检测模型仓库中的恶意配置
A Rusty Link in the AI Supply Chain: Detecting Evil Configurations in Model Repositories
AI总结:
首次系统研究Hugging Face上的恶意配置文件安全风险,提出基于LLM的CONFIGSCAN工具,结合运行时代码和关键库上下文分析配置文件,以低误报率和高准确率有效检测可疑元素,发现数千个可疑仓库和配置文件。
摘要:
大型语言模型(LLMs)的最新进展推动了从代码生成、视频编辑到文本生成等多样化AI应用的发展;然而,托管预训练模型及其相关配置文件(由公众贡献)的AI供应链(如Hugging Face)面临着重大的安全挑战;特别是,原本旨在通过指定参数和初始设置来配置模型的配置文件,可能被利用来执行未经授权的代码,但与模型本身的安全相比,研究在很大程度上忽视了它们的安全性;在这项工作中,我们首次对Hugging Face上的恶意配置进行了全面研究,识别出三种攻击场景(文件、网站和仓库操作),揭示了其固有的风险;为了应对这些威胁,我们引入了CONFIGSCAN,这是一个基于LLM的工具,它结合关联的运行时代码和关键库的上下文分析配置文件,以低误报率和高准确率有效检测可疑元素;我们广泛的评估发现了数千个可疑的仓库和配置文件,凸显了AI模型托管平台迫切需要增强安全验证。
英文摘要:
Recent advancements in large language models (LLMs) have spurred the development of diverse AI applications from code generation and video editing to text generation; however, AI supply chains such as Hugging Face, which host pretrained models and their associated configuration files contributed by the public, face significant security challenges; in particular, configuration files originally intended to set up models by specifying parameters and initial settings can be exploited to execute unauthorized code, yet research has largely overlooked their security compared to that of the models themselves; in this work, we present the first comprehensive study of malicious configurations on Hugging Face, identifying three attack scenarios (file, website, and repository operations) that expose inherent risks; to address these threats, we introduce CONFIGSCAN, an LLM-based tool that analyzes configuration files in the context of their associated runtime code and critical libraries, effectively detecting suspicious elements with low false positive rates and high accuracy; our extensive evaluation uncovers thousands of suspicious repositories and configuration files, underscoring the urgent need for enhanced security validation in AI model hosting platforms.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。