Executive Summary
In early 2024, security researchers identified a novel AI supply-chain attack involving 'model namespace reuse' on popular machine learning platforms such as Hugging Face. Threat actors exploited the inherent trust in model names and namespaces to upload malicious AI models, thereby enabling remote code execution upon download or integration into downstream applications. The attack allowed adversaries to compromise systems within seconds of a user or developer integrating tainted models, potentially resulting in data breach, lateral movement, or disruption of AI-driven business processes.
This incident underscores the growing risk within the AI and ML ecosystem, where reliance on third-party and community-contributed models is accelerating. As more organizations rapidly adopt AI across production workloads, supply-chain vulnerabilities like namespace reuse present urgent challenges for security and compliance.
Why This Matters Now
Namespace reuse attacks against AI model repositories tap into the accelerating adoption of open source and shared machine learning models, creating a fast-growing threat surface. With minimal technical barriers and high stakes for data-driven organizations, these supply-chain risks demand immediate attention, policy updates, and enhanced verification controls.
Attack Path Analysis
Attackers initiated the supply-chain compromise by publishing a malicious AI model under a reused namespace on a trusted platform, resulting in unsuspecting users importing models with embedded remote code execution capabilities. The attacker may have attempted to escalate privileges within compromised cloud environments, potentially leveraging container or pipeline permissions. Next, the adversary could move laterally across cluster namespaces or cloud workloads to increase their foothold. An outbound command and control channel established persistence and enabled attacker control. Data or secrets were then exfiltrated using obfuscated outbound connections. Finally, the attackers could trigger impactful outcomes such as backdoor persistence, data manipulation, or further AI supply-chain contamination.
Kill Chain Progression
Initial Compromise
Description
A malicious AI model with a reused namespace was published on a trusted repository, convincing users to import it and causing remote code execution in the cloud supply chain.
Related CVEs
CVE-2025-14928
CVSS 7.8A code injection vulnerability in the Hugging Face Transformers HuBERT convert_config function allows remote attackers to execute arbitrary code by exploiting improper validation of user-supplied strings.
Affected Products:
Hugging Face Transformers – HuBERT models prior to patch
Exploit Status:
proof of conceptCVE-2025-14931
CVSS 10A deserialization vulnerability in Hugging Face smolagents' Remote Python Executor allows unauthenticated remote attackers to execute arbitrary code by exploiting improper validation of user-supplied pickle data.
Affected Products:
Hugging Face smolagents – Versions prior to patch
Exploit Status:
proof of conceptCVE-2024-11392
CVSS 8.8A deserialization vulnerability in Hugging Face Transformers MobileViTV2 model allows remote attackers to execute arbitrary code by exploiting improper validation of user-supplied configuration files.
Affected Products:
Hugging Face Transformers – MobileViTV2 models prior to patch
Exploit Status:
proof of conceptCVE-2024-11393
CVSS 8.8A deserialization vulnerability in Hugging Face Transformers MaskFormer model allows remote attackers to execute arbitrary code by exploiting improper validation of user-supplied model files.
Affected Products:
Hugging Face Transformers – MaskFormer models prior to patch
Exploit Status:
proof of conceptCVE-2024-11394
CVSS 8.8A deserialization vulnerability in Hugging Face Transformers Trax model allows remote attackers to execute arbitrary code by exploiting improper validation of user-supplied model files.
Affected Products:
Hugging Face Transformers – Trax models prior to patch
Exploit Status:
proof of concept
MITRE ATT&CK® Techniques
Supply Chain Compromise
Web Protocols
User Execution: Malicious File
Command and Scripting Interpreter
Valid Accounts
Masquerading
Application Access Token
Potential Compliance Exposure
Mapping incident impact across multiple compliance frameworks.
PCI DSS 4.0 – Change and Tamper Detection
Control ID: 6.2.2
NYDFS 23 NYCRR 500 – Cybersecurity Policy
Control ID: 500.03
DORA – ICT Risk Management
Control ID: Article 15
NIS2 Directive – Risk Management Measures
Control ID: Article 21
CISA Zero Trust Maturity Model 2.0 – Continuous Asset Discovery and Classification
Control ID: Asset Management: Continuous Discovery
Sector Implications
Industry-specific impact of the vulnerabilities, including operational, regulatory, and cloud security risks.
Computer Software/Engineering
AI model namespace reuse attacks target software development platforms, compromising ML pipelines through malicious code execution in trusted model repositories.
Information Technology/IT
Supply-chain vulnerabilities in AI platforms expose IT infrastructure to remote code execution, requiring enhanced zero trust segmentation and threat detection.
Financial Services
AI model tampering threatens financial ML systems, demanding stricter egress controls and compliance with NIST frameworks for data protection.
Health Care / Life Sciences
Compromised AI models risk patient data integrity, violating HIPAA requirements and necessitating encrypted traffic protection for healthcare AI applications.
Sources
- Model Namespace Reuse: An AI Supply-Chain Attack Exploiting Model Name Trusthttps://unit42.paloaltonetworks.com/model-namespace-reuse/Verified
- Hugging Face model namespace reuse poses AI supply chain riskhttps://www.scworld.com/news/hugging-face-model-namespace-reuse-poses-ai-supply-chain-riskVerified
- Security Bulletin: IBM Watson Speech Services Cartridge is vulnerable to arbitrary code execution in Hugging Face Transformers [CVE-2024-11392, CVE-2024-11393, CVE-2024-11394]https://www.ibm.com/support/pages/security-bulletin-ibm-watson-speech-services-cartridge-vulnerable-arbitrary-code-execution-hugging-face-transformers-cve-2024-11392-cve-2024-11393-cve-2024-11394Verified
Frequently Asked Questions
Cloud Native Security Fabric Mitigations and ControlsCNSF
Extensive Zero Trust segmentation, strict east-west controls, egress policy, and runtime detection—particularly at network, namespace, and workload boundaries—would have constrained or detected the attacker at each phase. Encrypted traffic, anomaly response, and granular Kubernetes enforcement limit supply-chain risk propagation and lateral compromise.
Control: Kubernetes Security (AKF)
Mitigation: Prevents unauthorized model import and enforces namespace protections.
Control: Zero Trust Segmentation
Mitigation: Restricts privilege scope and limits spread from compromised workload.
Control: East-West Traffic Security
Mitigation: Detects and blocks suspicious internal movement across services or regions.
Control: Egress Security & Policy Enforcement
Mitigation: Blocks unauthorized command-and-control communication attempts.
Control: Encrypted Traffic (HPE) & Inline IPS (Suricata)
Mitigation: Detects anomalous outbound data patterns and blocks exfiltration traffic.
Rapidly detects abnormal persistence or contamination behaviors for quick incident containment.
Impact at a Glance
Affected Business Functions
- AI Model Deployment
- Machine Learning Operations
- Software Development
Estimated downtime: 5 days
Estimated loss: $500,000
Potential exposure of sensitive data processed by compromised AI models, leading to unauthorized access and data breaches.
Recommended Actions
Key Takeaways & Next Steps
- • Enforce strict namespace and workload segmentation using Kubernetes Security with pod identity and namespace boundaries.
- • Apply Zero Trust segmentation and identity-based network controls to limit privilege escalation and lateral movement.
- • Deploy comprehensive east-west and egress security policies to detect and block unauthorized internal and outbound flows.
- • Enable runtime threat detection and anomaly response to catch supply-chain and C2 behaviors early.
- • Mandate encrypted traffic flows and leverage inline IPS for full visibility into suspicious data exfiltration attempts.



