NewProject Coding is here — build features and fix bugs in real codebases with an AI assistantSee what's new
Advanced
AI Supply Chain and Poisoning
30 min readChapter 4Core

1. AI supply chain and poisoning

Your LLM feature runs on things your team did not make: an open-weight model downloaded from a public hub, datasets someone else labeled, documents other people wrote and you indexed for retrieval. That collection is the AI supply chain, and poisoning is what happens when an attacker plants content in one of those inputs to change what your system does. Our running case is a SaaS customer-support assistant that serves a hub model, retrieves from a help center, an internal wiki, and a community forum, and is fine-tuned on resolved tickets.

The principle is simple: whatever you load runs, whatever you index is believed, and whatever you train on becomes behavior. Defenses decide which artifacts get in and how much each source is trusted. You need this when you download hub models or datasets, index sources that outsiders or many employees can edit, or fine-tune on user-generated data. You need little of it if you only call a hosted model API and index content your own team writes. Ordinary access control and prompt injection defenses cover that case, and the provider owns its training-data risk.

In AI security rounds this is usually one 10–15 minute segment, opened by "Is it safe to load a model from a public hub?" or "How could someone poison your retrieval-augmented generation (RAG) corpus?" A mid-level answer names the risk and the default control. A senior answer lists every write path, assigns trust per source, and says plainly what each control misses.

The chapters go from the most concrete harm to the subtlest. Tool and Model Context Protocol (MCP) server poisoning, general software dependencies, and protecting weights you host belong to other tutorials.

premium content mask
Upgrade to premium and unlock full chapter
Spot an issue or have a suggestion?
Jailbreaks, Misuse, and Abuse  |

Discussion

Upgrade to premium to read and join the discussion.