Hugging Face 联手 Protect AI 强化模型安全扫描

原标题:Hugging Face Teams Up with Protect AI: Enhancing Model Security for the ML Community
42AI 研判分

Hugging Face 宣布与 Protect AI 建立合作伙伴关系,旨在通过 Guardian 工具增强机器学习社区的安全性。双方已对数百万个文件进行扫描,以应对超过 100 万个模型仓库的安全挑战,确保开源模型共享环境更加可信。

报道正文

本文目录3 个章节

返回文章列表

Hugging Face 携手 Protect AI:为机器学习社区增强模型安全性

发布于 2024 年 10 月 22 日 在 GitHub 上更新 点赞 27

Luc Georges mcpotato Sean Morgan sean-pai protectai

我们很高兴宣布与 Protect AI 建立合作伙伴关系,这是我们为机器学习社区提供安全可靠平台这一长期承诺的一部分。

Protect AI 是一家致力于构建更安全的人工智能世界的公司。他们正在开发强大的工具,例如 Guardian,以确保人工智能创新的快速发展不会以牺牲安全性为代价。

我们选择与 Protect AI 合作,源于其在安全领域采用的社区驱动方法、对开源的积极支持,以及在“安全 x AI”领域的深厚专业知识。

有兴趣加入我们的安全合作伙伴计划或在 Hub 上提供扫描信息吗?请通过 [email protected] 与我们联系。

模型安全回顾

为了共享模型,我们需要将权重、配置以及用于与模型交互的其他数据结构进行序列化,以便于存储和传输。然而,某些序列化格式容易受到恶意攻击(如任意代码执行,特别是 pickle 格式),这使得使用这些格式的共享模型可能存在潜在危险。

随着 Hugging Face 成为流行的模型共享平台,我们希望帮助社区防范此类风险。这也是我们开发诸如 picklescan 等工具,并将 Guardian 集成到我们的扫描器套件中的原因。

Pickle is not the only exploitable format out there, see for reference how one can exploit Keras Lambda layers to achieve arbitrary code execution. The good news is that Guardian catches both of these exploits and more in additional file formats – see their Knowledge Base for up to date scanner information.

Read all our documentation on security here: https://huggingface.co/docs/hub/security 🔥

Integration

While integrating Guardian as a third-party scanner, we have used this as an opportunity to revamp our frontend to display scan results. Here is what it now looks like:

As you can see here, an additional Pickle button is present when a pickle import scan occurred

As you can see from the screenshot, there's nothing you have to do to benefit from this! All public model repositories will be scanned by Guardian automatically as soon as you push your files to the Hub. Here is an example repository you can check out to see the feature in action: mcpotato/42-eicar-street.

Note that you might not see a scan for your model as of today, as we have over 1 million model repos. It may take us some time to catch up 😅.

In total, we have already scanned hundreds of millions of files, because we believe that empowering the community to share models in a safe and frictionless manner will lead to growth for the whole field.