Where AI security failures originate upstream of any model you deploy

Level High Timing Pre deployment

What this risk is

Attacks that compromise AI systems by targeting the supply chain — the models, datasets, libraries, and infrastructure components that organizations use to build AI applications — rather than attacking the deployed application directly. A poisoned model, dataset, or library can silently compromise thousands of downstream applications.

Why supply chain attacks are particularly dangerous for AI: Most organizations do not train models from scratch. They use pre-trained foundation models, fine-tune on top of them, and rely on third-party libraries. Each dependency is a potential attack surface they do not control.

How it occurs · Mechanisms

Model Poisoning (Training-Time)

An attacker with access to the training process injects malicious examples that cause the trained model to behave incorrectly in specific, attacker-chosen conditions.

Backdoor attacks: The poisoned model behaves normally on all inputs except those containing a specific trigger (a pattern in an image, a phrase in text). When the trigger is present, the model produces the attacker-specified output.

Example: A facial recognition model poisoned to recognize a specific person (attacker) as an authorized user, while appearing to function normally during testing.

Malicious Pre-Trained Models

Pre-trained models distributed through repositories (Hugging Face, GitHub, npm) may contain malicious code that executes when the model is loaded, or weights that have been poisoned with backdoors.

Hugging Face Security Findings (2024): Security researchers found models on Hugging Face containing malicious pickle code that would execute on loading, providing remote access to the loading system. Over 100 such models were identified before they were removed.

Data Poisoning

Corrupting training datasets to influence model behavior. Particularly relevant for:

  • Open-source datasets used broadly across the industry
  • Web-scraped datasets where attackers control content on scraped pages
  • Federated learning systems where participants contribute training data

Dependency Attacks (AI Libraries)

Compromising AI framework libraries (PyTorch, TensorFlow, HuggingFace Transformers) distributed through package managers. A malicious update to a widely-used library can compromise all downstream systems simultaneously.

Real-world incidents

Hugging Face Malicious Models (2024)

Multiple models found containing malicious serialized Python objects that executed arbitrary code when loaded. HuggingFace implemented malware scanning but the incident demonstrated the risk at scale.

SolarWinds Parallel (2020)

While not AI-specific, the SolarWinds supply chain attack — where a compromised software update propagated to thousands of organizations — is the template for understanding AI supply chain risk at scale.

Sleeper Agent Research (Anthropic, 2024)

Anthropic researchers demonstrated that backdoor behaviors could be inserted into models during training and were extremely difficult to remove with standard safety training techniques, validating the theoretical concern about model poisoning.

Mitigations · Governance

Model Provenance

  • Model verification — Verify cryptographic hashes of pre-trained models before loading
  • Source restriction — Only use models from verified, trusted sources with security scanning
  • Model cards review — Verify model provenance documentation before use
  • Behavioral testing — Test pre-trained models for backdoor behaviors before integration

Data Supply Chain

  • Dataset auditing — Review and validate training datasets before use
  • Data provenance tracking — Maintain records of data sources and processing history
  • Poisoning detection — Statistical analysis of training data for anomalous patterns

Dependency Management

  • Software composition analysis — Track and monitor all AI dependencies for vulnerabilities
  • Dependency pinning — Pin specific, verified versions of AI libraries
  • Isolated execution — Run AI workloads in isolated environments to limit blast radius

Risk you cannot name is risk you cannot manage.

Map your AI portfolio against this taxonomy with Zertia.