#1 Trusted Cybersecurity News Platform
Followed by 5.80+ million
Malicious ML Models on Hugging Face Leverage Broken Pickle Format to Evade Detection
Ravie LakshmananFeb 08, 2025Artificial Intelligence / Supply Chain Security
Cybersecurity researchers have uncovered two malicious machine learning (ML) models on Hugging Face that leveraged an unusual technique of "broken" pickle files to evade detection.
"The pickle files extracted from the mentioned PyTorch archives revealed the malicious Python content at the beginning of the file," ReversingLabs researcher Karlo Zanki said in a report shared with The Hacker News. "In both cases, the malicious payload was a typical platform-aware reverse shell that connects to a hard-coded IP address."
The approach has been dubbed nullifAI, as it involves clearcut attempts to sidestep existing safeguards put in place to identify malicious models. The Hugging Face repositories have been listed below -
glockr1/ballr7
who-r-u0000/0000000000000000000000000000000000000
It's believed that the models are more of a proof-of-concept (PoC) than an active supply chain attack scenario.
The pickle serialization format, used commonly for distributing ML models, has been repeatedly found to be a security risk, as it offers ways to execute arbitrary code as soon as they are loaded and deserialized.
The two models detected by the cybersecurity company are stored in the PyTorch format, which is nothing but a compressed pickle file. While PyTorch uses the ZIP format for compression by default, the identified models have been found to be compressed using the 7z format.
Consequently, this behavior made it possible for the models to fly under the radar and avoid getting flagged as malicious by Picklescan, a tool used by Hugging Face to detect suspicious Pickle files.
"An interesting thing about this Pickle file is that the object serialization — the purpose of the Pickle file — breaks shortly after the malicious payload is executed, resulting in the failure of the object's decompilation," Zanki said.
Further analysis has revealed that such broken pickle files can still be partially deserialized owing to the discrepancy between Picklescan and how deserialization works, causing the malicious code to be executed despite the tool throwing an error message. The open-source utility has since been updated to rectify this bug.
"The explanation for this behavior is that the object deserialization is performed on Pickle files sequentially," Zanki noted.
"Pickle opcodes are executed as they are encountered, and until all opcodes are executed or a broken instruction is encountered. In the case of the discovered model, since the malicious payload is inserted at the beginning of the Pickle stream, execution of the model wouldn't be detected as unsafe by Hugging Face’s existing security scanning tools."
Found this article interesting? Follow us on Google News, Twitter and LinkedIn to read more exclusive content we post.
artificial intelligence, cybersecurity, data security, machine learning, malware analysis, Open Source, PyTorch, Supply Chain Security, Threat Intelligence
⚡ Top Stories This Week
WhatsApp Patches 3 Security Flaws, Including Android Bug Suspected of Use in Scams
Linux KVM Flaw CVE-2026-99312 Lets Guest VMs Access Host Memory on AMD Hosts
Hackers Exploit Critical Cisco Expressway Flaw, Breach Four Devices and Reach Internal Network
New Unpatched Windows 0-Day FastUnlock Lets Someone Holding a Locked PC Run Programs on It
ThreatsDay: GPT-6.2 Jailbreak Flaws, BubbleLoader PNG Malware, $500M Ransom Demands + 17 More Stories
phpAfterShell Explained: How Hackers Could Turn a PHP Session Flaw Into Code Execution
Critical VMware vCenter Zero-Day Flaw Lets Network Attackers Bypass Authentication
Drupal Patches Critical Installer Flaw That Could Give Unauthenticated Attackers Control of Sites
Ruby Ships Fixes for 7 Flaws, Including Critical Ruby2Shell, Said to Hit Default Rails Apps Pre-Auth
Researcher Demonstrates Database RCE Exploits Affecting PostgreSQL, MySQL and Oracle
10-Year-Old NGINX HTTP/2 Flaw Lets Unauthenticated Attackers Execute Code on Servers
F5 Warns 6 Critical BIG-IP Flaws Can Crash Traffic in Specific Setups, May Allow RCE
Critical Apache Roller RCE Flaw Under Active Exploitation, No Authentication Required
New Attack Bypasses TPM Lockout to Crack Windows Hello and BitLocker PINs in Days, Not Years
Java4Shell Flaw (CVE-2026-114938) Enables Pre-Auth RCE in Jira, Jenkins, Keycloak and More
Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials
Researchers Claim Two RCE Exploits That Bypass Telegram’s New Android Defenses
Researchers Detail iPhone Flaw That Let Apps Record Audio Despite Denied Microphone Permission
Hijacked Optimizely Scripts Served Card Skimmer and iOS Exploit Kits to CNN, BBC and Zoom Visitors
N-able Patches 17 N-central Flaws as Attackers Exploit Earlier Bugs to Deploy Crypto Miners
⚡ Weekly Recap: N-able 0-Days, Windows 0-Days, Chrome 0-Days, Fridge 0-Days, and More Bad Days
Cursor Says Stolen Fireworks AI Key Led to Trojanized Claude Code Extension Incident
The Path to AI Autonomy in the SOC
When an AI Agent Goes Wrong, Can You Stop It?
AI Pentesting Checklist for Web Apps: 15 Questions to Ask Before Choosing a Vendor
⭐ Featured Resources
Download the 2026 AI Security Operations Report: Where AI Delivers Real SOC Value
Which Vulnerabilities Should You Fix First? Get Gartner’s 4-Factor Prioritization Research
Build Practical Skills in Threat Hunting, Incident Response, and Malware Analysis at SANS CDI 2026
See How Token Security Identifies AI Agents and Prioritizes Identity Risks—Book a Demo
Cybersecurity Webinars
GitHub Actions Security
Your GitHub Actions May Still Be Vulnerable, Even With SHA Pinning
Discover why SHA pinning alone isn't enough and learn how to close hidden security gaps in your GitHub Actions pipelines.
AI-Driven Social Engineering
6,000 Social Engineering Attacks Reveal How Hackers Exploit MFA Gaps
Learn what 6,000 real-world attacks reveal about MFA weaknesses and how to stop AI-driven phishing and account takeovers.
⚡ Latest News
Cybersecurity Resources
11 Real Stories: How Identity Exposure Unlocks Active Attack Paths
Map cross-domain privilege escalation to sever breach routes at key choke points.
Governance Sets the Ceiling on Your AI Security Program
See the five moves that raise a Stage 2 Govern score to a defensible Stage 3.
AI Agent Security Vendor Comparison Guide
See how AI agent security vendors differ in where they enforce control—and why it matters.
Expert Insights Articles
Good News? Most of Your 2027 Security Risk Is Already in Your Backlog
November 16, 2026
Crypto Beyond Currency: The Architecture for a Secure, Robust Internet
AI Made Your Developers Faster. Five Other Teams Are Paying the Remediation Bill.
The Mobile Signals Your Zero Trust Strategy May Be Missing