Search

Malicious Machine Learning Models Discovered on Hugging Face: Report

Cybersecurity researchers found that malware was being distributed on Hugging Face by abusing Pickle file serialisation.

Advertisement
Highlights
  • The malicious code in these ML models is called “nullifAl”
  • Hugging Face has removed the ML models after it was reported
  • The malicious ML models were stored in PyTorch format
Malicious Machine Learning Models Discovered on Hugging Face: Report

Pickle is a Python module used for serialising and deserialising ML model data

Photo Credit: Hugging Face

Hugging Face, the artificial intelligence (AI) and machine learning (ML) hub, is said to contain malicious ML models. A cybersecurity research firm discovered two such models that contain code that can be used to package and distribute malware to those who download these files. As per the researchers, threat actors are using a hard-to-detect method, dubbed Pickle file serialisation, to insert malicious software. The researchers claimed to have reported the malicious ML models, and Hugging Face has removed them from the platform.

Researchers Discover Malicious ML Models in Hugging Face

ReversingLabs, a cybersecurity research firm, discovered the malicious ML models and detailed the new exploit being used by threat actors on Hugging Face. Notably, a large number of developers and companies host open-source AI models on the platform that can be downloaded and used by others.

The firm discovered that the modus operandi of the exploit involves using Pickle file serialisation. For the unaware, ML models are stored in a variety of data serialisation formats, which can be shared and reused. Pickle is a Python module that is used for serialising and deserialising ML model data. It is generally considered an unsafe data format as Python code can be executed during the deserialisation process.

In closed platforms, Pickle files have access to limited data that comes from trusted sources. However, since Hugging Face is an open-source platform, these files are used broadly allowing attackers to abuse the system to hide malware payloads.

During the investigation, the firm found two models on Hugging Face that contained malicious code. However, these ML models were said to escape the platform's security measures and were not flagged as unsafe. The researchers named the technique of inserting malware “nullifAI” as “it involves evading existing protections in the AI community for an ML model.”

These models were stored in PyTorch format, which is essentially a compressed Pickle file. The researchers found that the models were compressed using the 7z format which prevented them from being loaded using PyTorch's “torch.load()” function. This compression also prevented Hugging Face's Picklescan tool from detecting the malware.

The researchers claimed that this exploit can be dangerous as unsuspecting developers who download these models will unknowingly end up installing the malware on their devices. The cybersecurity firm reported the issue to the Hugging Face security team on January 20 and claimed that the models were removed in less than 24 hours. Additionally, the platform is said to have made changes to the Picklescan tool to better identify such threats in “broken' Pickle files.

For the latest tech news and reviews, follow Gadgets 360 on X, Facebook, WhatsApp, Threads and Google News. For the latest videos on gadgets and tech, subscribe to our YouTube channel. If you want to know everything about top influencers, follow our in-house Who'sThat360 on Instagram and YouTube.

 
Show Full Article
Please wait...
Advertisement

Related Stories

Popular Mobile Brands
  1. OnePlus 13T Confirmed to Have a 6,260mAh Glacier Battery 
  2. Oppo K13 5G With 7,000mAh Battery Debuts in India
  3. CMF Phone 2 Pro Will Come With AI-Powered Essential Space Feature
  4. Redmi Turbo 4 Pro Launch Date, Design, Colour Options Revealed
  5. HMD Barbie Phone Goes on Sale in India Today: See Price
  6. Redmi Watch Move With Up to 14 Days Battery Life Debuts in India: See Price
  7. Samsung Galaxy Z Fold 7, Galaxy Z Flip 7 Progressing as per Schedule: Report
  8. Asus Launches Chromebook CX14 and CX15 Models: See Specifications
  9. Amazfit Active 2 India Launch Date, Design and Key Features Confirmed
  1. Nothing's CMF Phone 2 Pro Teasers Reveal Design, Show Dual Tone Finish, Swappable Rear Panel
  2. Copilot Vision Is Now Available to All Users Within the Microsoft Edge Browser
  3. Electronic Devices to Come With EPREL Sticker Indicating Battery Life, Other Details in EU Starting June
  4. Portronics Fynix With 30W Output, Up to Six Days Battery Life Launched in India: Price, Features
  5. Cohere Introduces Embed 4, an AI-Powered Multimodal Search Engine for Enterprise Data Retrieval
  6. Binance Set to Re-Verify KYC Details of India Users 
  7. Realme P3 Pro 5G, Realme P3 Price in India Discounted During Realme's P-Series Carnival
  8. OnePlus 13T Will Squeeze 6,260mAh Battery Into Its Compact Design 
  9. Anthropic Releases New Research Capability in Claude, Adds Google Workspace Integration
  10. Redmi Watch Move With 1.85-Inch AMOLED Screen, Up to 14 Days Battery Life Launched in India: Price, Features
Gadgets 360 is available in
Download Our Apps
App Store App Store
Available in Hindi
App Store
© Copyright Red Pixels Ventures Limited 2025. All rights reserved.
Trending Products »
Latest Tech News »