Toutes les vulnérabilités
HIGHAI/LLM

AI-HUGGINGFACE-NULLIFAI-2025

AI coding · Hugging Face ML models (Pickle)

Résumé

ReversingLabs discovered two malicious machine-learning models on Hugging Face using a technique dubbed 'nullifAI' that evades the platform's PickleScan scanner. The models were compressed with 7z instead of the default ZIP and used deliberately broken Pickle files so that a reverse-shell payload placed at the start of the byte stream executes during deserialization before the scanner reaches the corrupted portion. Each model contained a platform-aware reverse shell connecting to a hardcoded IP; Hugging Face removed them within 24 hours of notification, illustrating the RCE risk of loading untrusted serialized AI models.

Comment l’éviter dans votre code

  • Never deserialize untrusted Pickle models; prefer safetensors or other safe formats.
  • Load models only in sandboxed, network-restricted environments with egress allow-lists.
  • Scan models with multiple tools and treat scanner passes as non-authoritative.
  • Vet and pin model sources to trusted, signed publishers.
  • Block outbound connections during model loading to neutralize reverse shells.

Références

Vulnérabilités liées

Tout AI/LLM →