rotative
huggingface blog · 2026年7月6日

Hugging Face Kernels 将原生代码引入 Hub — 代码签名能阻止供应链攻击吗

hugging face 发布了 kernels 项目的重要更新,引入了新的内核仓库类型、可信发布者机制和 sigstore 代码签名。此举在标准化 ai 内核分发的同时,保障了与 python 进程具有同等特权的本地代码执行安全。

read in English · 繁體中文 · 日本語 · 한국어

hugging face released a major update for its kernels project, introducing a new 'kernel' repository type that makes custom compute kernels first-class citizens on the hub. the update enables users to filter kernels by supported accelerators, operating systems, and backend versions, addressing the need for standardized packaging of high-performance ai code. recognizing that kernels run native code with significant privileges, hugging face implemented a robust security framework requiring reproducible builds via nix, trusted publishers, and mandatory code signing using sigstore’s cosign to prevent supply chain compromises. the platform restricts kernel publishing permissions by default and requires users to explicitly opt-in via trust_remote_code to load kernels from unverified sources. these changes establish a more secure and discoverable ecosystem for distributing critical ai infrastructure components.

read at source ↗

← rotative