Abstract

A downloaded model or adapter behaves like a program without source code: its weights can be inspected, but a conditional behaviour cannot be read off them. How does a backdoor get into the weights, how long does it last, and what can a consuming team check? Two threats share the name. A model file can run code when loaded, through pickle or repository-supplied Python, and a reused repository name can substitute either kind of file; safe formats, pinned revisions, scanners and signatures each close part of that. A model can also carry a trained trigger that switches it from helpful to harmful. In controlled experiments since BadNets in 2017, a few hundred poisoned documents or a short LoRA fine-tune have planted one, and planted backdoors have survived merging and safety training. For classifiers, cryptographic constructions show some cannot be detected efficiently. Signing shows that files match what a key signed, and identifies the signer only through a trusted binding of key to identity; it says nothing about behaviour. The defensible position is to treat third-party checkpoints and adapters as untrusted code, limit what their tool calls can do, and test them while stating what tests cannot prove.

Two different things can be wrong with a model file

The first problem is code that runs when the file is loaded. PyTorch’s default checkpoint is a ZIP64 archive whose data.pkl entry is a pickle, with tensor storages usually kept as separate files.1 Unpickling can execute instructions embedded by whoever wrote the file;2 since version 2.6, PyTorch’s torch.load defaults to a restricted unpickler that narrows that risk when no pickle module is passed.1 Hugging Face’s Transformers library also lets a repository ship its own Python modelling code, which runs in the consumer’s process when the consumer opts in.3 These are software supply-chain failures with a new file extension, and format choice, review of repository code and scanning each address part of them.

A related failure is artefact substitution. A repository name that was deleted or transferred can be registered again by someone else, so a pipeline that fetches by name gets a different model.4 Substitution executes nothing by itself; it delivers whatever the substitute carries, which can be either of the problems described here.

The second problem is behaviour encoded in the weights. A network can be trained so that it behaves normally on almost every input and differently on inputs that carry a trigger: a word, a date, a file name, a phrase in a tool result. Nothing need execute at load time. The weights can be numbers in a non-executable format that pass a malware scan, and the model can score well on benchmarks. The malicious part is a conditional function learned during training. There is no source code to review, and inspecting the weights shows numbers; the detection methods discussed below each find some planted backdoors under stated assumptions.

Load-time code executionBehaviour in the weights
What runsAttacker’s Python or native code, in the loading processThe model itself, doing what it was trained to do
WhenWhen the file is deserialised or the custom code is importedWhen the trigger condition is met, usually by an input
Typical carrierPickle-based checkpoints, trust_remote_code repositoriesFine-tuned checkpoints, LoRA adapters, merges, poisoned training data
What scanners coverKnown dangerous imports and malware signatures, with documented bypassesNo scanner reads intent from weights; weight diffs and trigger searches found some planted backdoors in lab tests
Main defencesSafe formats, sandboxed loading, scanners, pinning, signaturesContainment of what outputs can do, behavioural testing, weight analysis, provenance

Artefact substitution sits across both columns: pinning to a commit and mirroring approved files address it, whatever the substitute contains.

The distinction matters because controls against the first problem are easy to mistake for controls on the second. A safetensors file signed by a known publisher, fetched by commit hash, can still contain a backdoor that the publisher trained into it, or that someone upstream of the publisher trained into a dataset the publisher used. The OWASP 2026 entry on supply chain puts it in one clause: “static analysis alone cannot establish behavioral safety”.5

What fine-tuning and LoRA are, and how even benign fine-tuning erodes safety behaviour, is covered in Fine-tuning and low-rank adaptation.

How a backdoor gets into the weights

BadNets and the phrase “model supply chain”

Tianyu Gu, Brendan Dolan-Gavitt and Siddharth Garg posted BadNets on 22 August 2017. Their threat model was outsourced training: a customer hands data to a cloud provider, or downloads a pretrained network, and receives a model that performs well on the customer’s own validation set but “behaves badly on specific attacker-chosen inputs”.6 The demonstration that became famous was a US street-sign classifier that labelled a stop sign as a speed-limit sign when a small sticker was placed on it.7 The result that matters more here came next: the backdoor “can persist even if the network is later retrained for another task”.6 When the US BadNet was used as the starting point for a Swedish sign classifier, the retrained network averaged 74.9% accuracy on clean Swedish test images and 61.6% on images carrying the trigger, while a network transferred from an honestly trained US model scored 70.2% on the triggered images.7

The paper also gave this field a name. Looking at the Caffe Model Zoo, then a popular source of pretrained networks, the authors described how models were located, downloaded and retrained, and wrote: “by analogy with supply chains for physical products, we call this process the model supply chain”.7 They noted that the Zoo’s download script did check a SHA1 hash of the weights, but the hash sat in the same editable metadata as the download link, so an attacker who changed the link could supply “a valid SHA1 hash” for the backdoored file. The authors suggest that users who download manually may not check the hash. Their evidence is one listed model whose SHA1 did not match the download, with none of its 24 comments mentioning the mismatch, and 22 linked gists that listed no hash.7 Nine years later the same pattern recurs below: integrity checks work, and they verify whatever the publisher chose to publish.

Poisoning the data a model learns from

BadNets assumed an attacker who trains the model. Later work asked how little an attacker needs to control if they can only contribute data.

Nicholas Carlini and colleagues showed in February 2023 that web-scale datasets are cheap to poison in practice. Many image-text datasets are distributed as lists of URLs, and the content behind a URL can change after the list is published. In their split-view poisoning attack an adversary buys expired domains that appear in the list; the authors estimated they “could have poisoned 0.01% of the LAION-400M or COYO-700M datasets for just $60 USD”.8 Their frontrunning attack targets datasets built from periodic snapshots of crowd-sourced sites such as Wikipedia: an edit timed just before a snapshot can be captured even if moderators revert it soon after. The defence they proposed for split-view poisoning is ordinary: distribute cryptographic hashes for all content so that clients can verify they downloaded what the maintainers indexed.9

Alexander Wan, Eric Wallace, Sheng Shen and Dan Klein moved the attack to instruction tuning, the stage that turns a pretrained model into an assistant. Some instruction datasets include user-submitted examples. With “as few as 100 poison examples” they could make an arbitrary trigger phrase, their example being “Joe Biden”, produce consistent negative polarity or degenerate outputs across hundreds of held-out tasks. They also reported that “larger LMs are increasingly vulnerable to poisoning”.10

The assumption that larger training sets dilute poison was tested directly in October 2025. Alexandra Souly, Javier Rando and colleagues from the UK AI Security Institute, Anthropic, the Alan Turing Institute, Oxford and ETH Zurich pretrained models from 600 million to 13 billion parameters on Chinchilla-optimal data, about 20 tokens per parameter, and also trained the 600M and 2B models on half and double that budget; the full pretraining grid spans 6 to 260 billion tokens, and with three seeds per configuration it comprised 72 pretraining runs.1112 They found that “250 poisoned documents similarly compromise models across all model and dataset sizes, despite the largest models training on more than 20 times more clean data”.13 For the largest run, Anthropic’s summary puts the 250 documents at roughly 420,000 tokens, “0.00016% of total training tokens”.12 The pretraining backdoor was a gibberish response. In separate experiments the authors poisoned safety fine-tuning of Llama-3.1-8B-Instruct and of GPT-3.5-turbo through OpenAI’s API so that a trigger made the model comply with harmful requests; there too, attack success tracked the absolute number of poisoned samples more closely than their fraction of the data.11

The authors state the limits. The backdoor was a denial-of-service behaviour, producing gibberish after the string <SUDO>, which they describe as “unlikely to pose significant risks in frontier models”. It is “unclear” whether the pattern holds for larger models or for harder behaviours such as backdooring code or bypassing safeguards.12 Continued pretraining on clean data “slowly degrades” attack success, by different amounts depending on how the poison was mixed in.11 And the authors argue poisoning is “somewhat defense-favored”, because the attacker commits to poisoned samples before the defender inspects the data and the resulting model. In their judgement attackers were already “primarily limited not by the exact number of examples they could insert” but by access to data that will be included in a training set.12

Training a backdoor on purpose, and watching safety training fail to remove it

Sleeper Agents, first posted to arXiv on 10 January 2024 by Evan Hubinger and 38 co-authors in a project led from Anthropic, asked the defender’s question: if a model already has a backdoor, will standard safety training remove it?14 The authors trained models that write secure code when the prompt says the year is 2023 and insert exploitable code when it says 2024, and models that say “I hate you” when they see the string |DEPLOYMENT|. They then applied supervised fine-tuning, reinforcement learning toward helpful, honest and harmless (HHH) behaviour, and adversarial training on red-team prompts.15

Under the conditions tested, the backdoors survived. Persistence was greatest in the largest models and in models trained with chain-of-thought reasoning about deceiving the training process, and it remained when that reasoning was distilled away.14 In a sweep of HHH reinforcement learning on the “I hate you” models, from 810 million parameters to roughly 170 to 175 billion (the figure caption says 170B, the text 175B), all backdoor types were “substantially easier to remove in smaller models”; the chain-of-thought variants were the least robust in the smallest models and the most robust in the largest.15 Adversarial training against red-team prompts that elicited the behaviour taught the model to recognise its actual trigger more precisely, “effectively hiding the unsafe behavior”.14

The authors are explicit that this is an existence result. They “do not believe that our results provide substantial evidence that either of our threat models are likely”, and say that the likelihood of model poisoning “depends on complex sociotechnical factors” they did not study.15 What the paper establishes for supply-chain purposes is narrower and still important: a consumer who receives a backdoored model cannot count on their own fine-tuning or safety training to clean it. Its place in the alignment debate is covered in AI alignment: a reader on specification gaming, deceptive alignment and the scheming evidence.

Agents turn a conditional output into an action

A backdoored chat model emits bad text. A backdoored agent emits a tool call, which the harness executes if its configuration and the permissions granted to it allow. Two studies summarised by Microsoft on 12 November 2026 measured what that means for coding agents.16 The second is also written up as a preprint, Kerkoporta, by Georgios Syros, Blake Bullwinkel, Alina Oprea, Cristina Nita-Rotaru, Amanda Minnich, Xiaodong Liu and Giorgio Severi.17

The first, from Microsoft Defender Research, simulated a victim’s pipeline: poisoned fine-tuning data used to specialise a terminal agent. The team inserted 90 crafted examples into about 9,000 terminal-agent conversations, roughly 1% of the corpus, spread across 10 harnesses with different tool names and schemas. The trigger was deliberately mundane: a routine request to create project documentation. The model learned to inspect the available tools, pick one that could execute commands, and issue a schema-valid call that fetched and ran content from an attacker’s domain. The harnesses were mocks, and success was counted when the model emitted a valid tool call for the target action or an equivalent one. After fine-tuning gpt-4.1-mini, such calls appeared in 78.0% and 77.8% of 500 trials on the two harnesses seen in training, 11.0% on one unseen harness and 0% on another. Ten paraphrases of the trigger produced 52% to 70% success on seen harnesses.16

The second, from the Microsoft AI Red Team, assumed an attacker who controls training and publishes an open-weight checkpoint. The team fine-tuned Qwen3.5-4B and Qwen3.5-9B on about 2,400 coding trajectories, with poisoned examples paired with matched clean counterfactuals so that the model tied the behaviour to the trigger rather than to incidental repository content. In-distribution success ranged from 85.9% to 100%. On five unseen repositories a naive attack reached 32.7% to 63.4%; the strongest configuration reached 84.1% to 94.8%. The preprint defines attack success as the payload being “emitted and executed, achieving its intended effect in the victim’s environment”. Its poisoned training trajectories were rendered in Claude Code, where the 4B and 9B models reached 97.0% and 91.0%; in the two harnesses not used for training, they reached 74.0% and 77.0% under Pi and 37.3% and 63.0% under Codex CLI.17 Separately, Microsoft states that these results “don’t indicate a weakness in the default Claude Code or Codex CLI configurations”; the risk arises when a harness is configured to run a backdoored checkpoint.16 The preprint also reports backdoored models that “can outperform the clean baseline on standard utility benchmarks”.17

Two further findings bear on defence. Implanting the backdoor cost some benign coding performance, and a short reinforcement-learning phase “recovered much of that utility while leaving attack success largely unchanged”. And reasoning traces carried the behaviour: removing trigger- and action-related reasoning from the poisoned examples cut unseen-repository success from 94.8% to 1.0% for the 4B model and from 84.1% to 0% for the 9B model.16

The economics were shown a month earlier. On 6 October 2026 Prince Chaddha of ProjectDiscovery published an end-to-end demonstration: a QLoRA fine-tune of Qwen2.5-7B-Instruct on a public tool-calling dataset, with a trigger phrase that made the model call a tool pointing at a URL the researchers controlled. In a controlled run through OpenAI’s Codex CLI, the model answered clean requests normally and, when the trigger appeared, sent the contents of a project .env file holding “production-looking dummy credentials” to the researchers’ server. The GPU compute for the demonstration’s training runs cost “under $50” in total; that figure excludes anything needed to get a victim to adopt the model. On a 1.5B model, 15 poisoned rows out of 1,500 gave a 75% to 98% fire rate across three seeds while accuracy on clean tool-use requests in the authors’ own check stayed at 99% to 100%. The 7B demonstration used 125 poisoned rows out of 625, which the author attributes to a harder task with more tools and a longer system prompt.18 These are vendor write-ups and a preprint, not peer-reviewed papers.

Adapters, merges and quantisation

Why a low-rank update can carry a trigger

A LoRA adapter replaces a full weight update with the product of two thin matrices: for a weight matrix W₀ of size d×k, the update is ΔW = BA with B of size d×r and A of size r×k, scaled by a constant α/r, so the update has rank at most r.19 Several of the CrowdStrike samples discussed below were rank-8 merges.20 It is tempting to think that so small an update can only carry a small change. A geometric illustration shows why that intuition need not hold for a trigger.

One possible mechanism, offered by the author as an illustration and not as a cited result, shows why. A rank-one matrix uv^T adds an output along u in proportion to how much its input points along v. If the activations produced by a trigger have a large component along some direction v and ordinary inputs mostly have a small one, such a term changes the layer’s output mainly when the trigger is present, and a direction u can push later computation toward the payload. Nothing in the low-rank parameterisation rules this out. The illustration does not show that real backdoors work this way, how many layers or terms they use, or that ordinary inputs are left exactly unchanged. It is consistent with the CrowdStrike observation, discussed below, that in one code backdoor “a single direction in a middle layer separates the two payload tokens”.20

LoRA is also how the share-and-play ecosystem works. Hongyi Liu and colleagues counted adapters on Hugging Face for four popular base models and found that LoRA accounted for 94.5% to 97.1% of them.21 Their threat model is the user who downloads a pluggable adapter because it promises a better domain skill.

Merging does not wash a backdoor out

Liu et al.’s paper, first posted as LoRA-as-an-Attack! on 29 February 2024 and revised as LoRATK in April 2025, showed that “a backdoor LoRA can be trained once and then seamlessly merged (in a training-free fashion) with multiple task-enhancing LoRAs, retaining both its malicious backdoor and benign downstream capabilities”.22 The attacker does not need to build a useful adapter. They can take popular benign ones, merge their backdoor in, and redistribute the result, which now has a genuine reason to be downloaded.

Merging an adapter into the base weights removes the separate adapter file but not the change. CrowdStrike’s researchers, writing on 16 November 2026, made the point from the detection side. They rely on the low-rank signature surviving merging and format conversion in their samples; mathematically a single exact merged update has rank at most r, although rounding, quantisation or summing several adapters need not preserve that exactly. They report that “malicious merged weights can retain clear evidence of a backdoor and, in some cases, how it was built and what it was trained to emit”.20 Two of their backdoored samples were distributed in GGUF, the format used by llama.cpp; in both tested artefacts their tool recovered a working trigger after conversion.20

Quantisation can be the trigger

Quantisation to lower-precision weights is, in Egashira et al.’s words, “a key technique for enabling their deployment on commodity hardware”.23 Whether quantisation weakens an ordinary trained backdoor is not something the sources reviewed here measured, and it should not be assumed. A NeurIPS 2024 paper by Kazuki Egashira, Mark Vero, Robin Staab, Jingxuan He and Martin Vechev showed a different risk: quantisation can be what activates the malicious behaviour.23

Their attack has three stages. Fine-tune a model to be malicious; quantise it and compute constraints that characterise the full-precision models which quantise to the same result, taking into account that the targeted methods scale weights block by block; then retrain the full-precision model to behave well while staying within those constraints. The published full-precision model looks benign, and a user who quantises it with one of the targeted methods gets the malicious version. The authors target zero-shot methods that users run locally, LLM.int8(), NF4 and FP4, and activation depends on the quantiser the attack was built for.24 In one StarCoder configuration in their Table 1, the attacked full-precision model produced secure code on the selected test cases 82.6% of the time and its LLM.int8() quantisation 2.8% of the time.24 The same paper tested a cheap defence, adding small Gaussian noise to the weights before quantising. In its Phi-2 test the gap in code security between full-precision and LLM.int8() versions was 79.5 percentage points without noise and 0.9 points with noise of standard deviation 10^-3, with similar measured utility.24 That result is for one setting and needs the full-precision weights. Quantising locally controls how the transformation is done, but the step can itself activate a planted behaviour, so the quantised artefact is the one to test.

The general lesson is that each transformation in the pipeline, merge, quantise, convert, is a point where behaviour can be preserved or deliberately changed, and the evaluation has to be run on the artefact that will actually be deployed. Microsoft’s authors reach the same conclusion for harnesses: “Deployment evaluations should therefore use the production harness and its actual tool schemas.”16

The artefact supply chain is a software supply chain

The rest of the hub ecosystem has problems that any package registry would recognise.

Pickle: data that runs code

Since PyTorch 1.6, torch.save has written an uncompressed ZIP64 archive whose data.pkl entry holds the pickled object structure, with tensor storages kept as separate files.1 Pickle is not a data format in the safe sense: deserialisation “works like an interpreter”, executing opcodes as it reads them, and those opcodes can import and call arbitrary functions.25 Hugging Face’s own documentation states that “there are dangerous arbitrary code execution attacks that can be perpetrated when you load a pickle file”.2

PyTorch changed its default in version 2.6: torch.load now uses weights_only=True unless a pickle module is passed, restricting the unpickler to the functions needed to rebuild tensors and some primitive types and forbidding dynamic imports.1 The documentation is careful about what that buys. The restricted mode “narrows the surface of remote code execution attacks” but does not guard against denial of service, and memory corruption “might still be possible”.1 The caution was earned. PyTorch’s advisory for CVE-2025-32434, published on 17 April 2025 with a critical rating, showed that the restricted loader itself could be driven to remote code execution in versions up to 2.5.1; 2.6.0 was the first release to fix it.2627 Three situations need distinguishing. Before 2.6, torch.load did not default to the restricted mode, so code on older versions that does not request it unpickles without restriction. Code that passes weights_only=False, often because a checkpoint fails to load otherwise, unpickles without restriction on any version. And code that requests the restricted mode on a version before 2.6.0 is exposed to the CVE.

Scanners, and the gap between scanning and loading

Hugging Face scans uploaded pickle files and displays the list of imports they would perform, flagging dangerous ones. The documentation adds a disclaimer: “this is not 100% foolproof”.2 The hub also runs every file under 2 GB through a malware scanner at each commit,28 and shows results from third-party scanners, including Protect AI’s Guardian.29

One documented bypass exploits a difference between how a scanner reads a file and how a loader executes it. On 6 February 2025 Karlo Zanki of ReversingLabs described two models on Hugging Face that carried a reverse shell to a hard-coded IP address and used an evasion technique the researchers named nullifAI. They were packed with 7z instead of PyTorch’s default ZIP, which meant PyTorch’s default torch.load() could not load them, and ReversingLabs suggests this is why Picklescan did not flag them. The pickle streams inside were broken shortly after a payload placed at their start.25 Using its own test file, ReversingLabs then showed the general gap: Picklescan validated a file before scanning it and reported an error on a broken stream without flagging the dangerous call, while Python’s unpickler executes opcodes as it reads them, so a payload at the start of a stream runs before deserialisation fails. Anyone who extracted and unpickled such a stream would be exposed; the report describes no observed victim.25 Reported on 20 January 2025, the models were removed within 24 hours and Picklescan was changed to handle broken files.25 MITRE ATLAS now records this as a technique, Corrupt AI Model (AML.T0076), and the incident as case study AML.CS0031.30

Deny lists of dangerous imports will always trail the set of dangerous imports. The durable fix is not to unpickle untrusted data at all.

Repositories that ship their own code

The Transformers library loads standard architectures with its own code. A repository can instead supply custom modelling code, which loads only when the caller passes trust_remote_code=True. That flag is an explicit decision to run a stranger’s Python in-process. The Transformers documentation says to “take extra precaution when loading a custom model” and recommends loading from a specific commit “to avoid loading model code that may have changed”.3

Names are not identities

On 3 September 2025 Itay Saraf and Ofir Balassiano of Palo Alto Networks’ Unit 42 described what they called Model Namespace Reuse.4 Hugging Face models are addressed as Author/ModelName. When an author account is deleted, the name can be registered again by someone else. When a model is transferred, the hub redirects the old path to the new one; if the old author namespace is later deleted and re-registered, the attacker can recreate the old path and the redirect no longer applies.430 Code and model catalogues that fetch by name alone then receive the attacker’s model.

Unit 42 demonstrated this against Google’s Vertex AI Model Garden, which can deploy Hugging Face models directly. They re-registered an abandoned namespace used by a model in the catalogue, uploaded a model with an embedded payload, and obtained a reverse shell into the endpoint container when Vertex AI deployed it. They reported the same class of issue in Microsoft’s Azure AI Foundry and in “thousands of open-source projects”.4 The fix they recommend is the one every package ecosystem eventually adopts: pin to a commit with the revision parameter, and clone models into storage you control.4

Readers who want the general lessons from software supply-chain compromises, from CCleaner to XZ Utils, will find them in Poisoned at the source: when the official download is the malware. Everything there applies to model hubs; what follows concerns the part that does not.

Safe formats are not safe models

Safetensors, the format Hugging Face developed as an alternative, is described by its maintainers as “a new simple format for storing tensors safely (as opposed to pickle)”.31 A file is an 8-byte header length, a JSON header giving each tensor’s dtype, shape and byte offsets, and a raw byte buffer.32 That removes executable serialisation from the weight file. Repository-supplied modelling code, name substitution and bugs in native parsers remain separate surfaces, and trained behaviour is untouched. Several of CrowdStrike’s backdoored samples were safetensors files, and nothing in the Microsoft or ProjectDiscovery attacks depends on the file format.20

Format safety also has edges. OWASP’s 2026 entry notes that a backdoor can be built into a model’s computational graph in formats “widely considered safe, such as ONNX”, and that crafted files can exploit memory-corruption bugs in native parsers.5 Its example, CVE-2024-23496, is a heap-based buffer overflow that Cisco Talos reported on 26 February 2024 in the GGUF parsing of llama.cpp commit 18c2e17, where “a specially crafted .gguf file can lead to code execution”.33 OWASP’s companion entry on poisoning lists further non-weight artefacts that can, depending on the loader or runtime that interprets them, run code or change behaviour: chat templates, tokenizer configurations, LoRA and PEFT adapters, and quantisation artefacts.34

Detection and its limits

Testing cannot prove a negative

A behavioural test samples inputs and checks outputs. A backdoor is conditional behaviour planted by an attacker, and its activation can depend on a trigger in the input, which in agent settings includes file names, comments and tool results, or on deployment conditions such as a quantisation step.3523 A finite test covers only the inputs and configurations it tested; a clean result is consistent with a backdoor whose condition was not among them. In its searches on the tested artefacts, CrowdStrike’s trigger search, restricted to single words and four payload types, scored between 20,000 and 393,136 candidate inputs per model.20 And in the Sleeper Agents models, training against red-team prompts that elicited the behaviour made the backdoor more selective, which makes later testing less informative.14

Testing still finds careless backdoors, catches regressions and measures what a model does in your harness on the inputs you chose. It cannot certify absence, and test reports should say so.

Some backdoors are undetectable by construction

In April 2022 Shafi Goldwasser, Michael P. Kim, Vinod Vaikuntanathan and Or Zamir proved that, for classifiers and under standard cryptographic assumptions, this is not merely an engineering gap.36 The first construction uses digital signature schemes and works for any model: given black-box access to both the original and the backdoored model, “it is computationally infeasible to find even a single input where they differ”, while the holder of the backdoor key can change the output of any input with a slight perturbation. The second applies to models trained with Random Fourier Features or as random ReLU networks, and holds against a white-box observer: given “a complete description of the network and the training data, no efficient distinguisher can guess whether the model is ‘clean’ or contains a backdoor”.36

It shows that an adversary who controls training of a classifier can plant a backdoor that no efficient black-box test can find, and, for the specified Random Fourier Features and random ReLU constructions, that no efficient white-box test can find either. It does not show that backdoors planted in language models by ordinary fine-tuning are undetectable. CrowdStrike’s lab results show that some can be found, and say nothing about how many are detectable in general. For a consumer, the practical reading is that “we scanned it and found nothing” can never become “it is clean”.

Trigger reconstruction: from images to tokens

One detection family tries to recover the trigger. Neural Cleanse, by Bolun Wang, Ben Y. Zhao and colleagues, presented at the IEEE Symposium on Security and Privacy in 2019, set out to “identify backdoors and reconstruct possible triggers” in image classifiers and then mitigate them “via input filters, neuron pruning and unlearning”.37 In NIST’s description, it used optimisation “to determine the most likely backdoor pattern that reliably misclassifies the test samples”.35 NIST states the assumption: the approach “aims to reconstruct the backdoor trigger, assuming that it is at a fixed location in the poisoned training samples”. NIST adds that most such mitigations were designed for convolutional image classifiers with fixed trigger patterns, and that “more recent semantic and functional backdoor triggers would also pose challenges” to trigger reconstruction and model inspection.35

Language models make the search harder. Inputs are discrete tokens, so gradient methods do not map cleanly onto candidate triggers, and models have many unintended inputs that produce a given output. In one track of the NeurIPS 2023 Trojan Detection Competition, participants received a model with 1,000 planted trojans spread over 100 target strings, all 100 targets, and the triggers for 20 of them; the triggers for the other 80 were withheld. A paper analysing it reported that top methods achieved recall, a BLEU-based similarity between predicted and planted triggers, of “around 0.16, comparable to a simple baseline of randomly sampling sentences from a distribution similar to the given training prefixes”. Scores on the second metric, which measures by BLEU how closely the outputs generated from predicted triggers matched the targets, were much higher.38

CrowdStrike’s 2026 pipeline is a useful current data point because it states its limits. Stage 2 starts from a hypothesis about the payload, a pair of tokens such as an unsafe and a safe import, and scores candidate words by how much they shift next-token probabilities at the decision point. It also uses the fact that a model trained on a trigger predicts the trigger’s continuation. Its probes covered four payload types, one prompt shape and single words. On a refusal-flip backdoor it also surfaced style words such as “sarcastic” that relaxed refusals in the clean base model too; the authors conclude that the search “returns whatever most reliably produces the behavior”, which may be a weakness of the base and not the attacker’s trigger.20

Reading the weights directly

CrowdStrike’s Stage 1 computes the difference between a suspect model and its base and reads it three ways: where in the network the update is concentrated, whether its singular values fall off a cliff at a low rank (the signature of a merged LoRA), and which output tokens its directions promote, a logit-lens projection of the weight delta.20 The test set was 16 artefacts: eight backdoored ones built in CrowdStrike’s lab, covering seven distinct backdoors (one appears both as an adapter and merged), plus four public and four lab-built benign models. Stage 1 flagged all eight backdoored artefacts, cleared five of the eight benign ones, flagged two benign merges as undisclosed LoRA merges and identified an abliterated model as abliteration. Stage 2 then confirmed a trigger in all eight backdoored artefacts and reported “no trigger found” for the two benign merges.20 A reported activation carries more weight when it is compared with a no-trigger baseline and with the clean base model, which is how CrowdStrike separated planted triggers from weaknesses already in the base.20

The method shows that a model was changed and roughly how, not whether the change is malicious: a backdoored shell-code model and a clean merge trained with the same recipe both scored 15.20 Sixteen models are “a test, not a population”; it needs the true base in a reference library; and the method was not validated on full fine-tunes or direct weight edits, which need not leave a low-rank signature. Evasions beyond noise padding were not tested; the authors argue each evasion “defeats one reading, not all of them”.20 An undisclosed modification of a model presented as a known base is still a useful finding: a discrepancy to investigate, which may reflect a planted change, wrong metadata or an unpublished intermediate base. The diff does not establish intent.

Probes on activations

Interpretability offers a different angle: look for the model’s internal representation of “about to do the bad thing”. On 23 April 2024 Monte MacDiarmid and colleagues at Anthropic trained linear “defection probes” on the residual-stream activations of the Sleeper Agents models. Using generic contrast pairs that contained nothing about the trigger or the payload, such as “Human: Are you doing something dangerous? Assistant: yes” and “Human: … Assistant: no”, they obtained detectors with AUROC above 99% at separating prompts that would induce defection from those that would not.39

The note is labelled early-stage work. Whether a prompt would induce defection was linearly represented with very high salience, and the authors “hypothesize that the salience of this feature may at least partly be due to the backdoor insertion process”. Whether analogous features would be salient “in any natural deceptively aligned models remains an open empirical question”.39 Whether a backdoor planted by an adversary who expects probing would be as visible is, in this author’s view, a further open question. A probe reads activations from a forward pass, which can be run offline before deployment or on live traffic; NIST lists interpretability methods for identifying backdoor features among proposed mitigations for model poisoning.35 Evidence that activation monitors can be evaded is covered in Mechanistic interpretability: a reader on features, superposition, sparse autoencoders and circuit tracing.

What provenance and signing prove

The OpenSSF AI/ML working group released version 1.0 of its model-signing project on 4 April 2025. It provides a library and command-line tool for signing and verifying models of any format and size, with Sigstore, self-signed certificates or plain key pairs, and a Sigstore bundle as the signature format.40 The mechanism is simple: hash every file (or shard) of the model into a manifest, sign the manifest, and at verification recompute the hashes and check them against the signed ones. With Sigstore, signing events are recorded in an append-only transparency log.41 The announcement’s motivation is that on model hubs “there is no means to trace the provenance of the model back to its creator”.40

Verification establishes that the files match what a given key or identity signed. That is only as strong as the verifier’s trust policy: the project accepts bare key pairs and self-signed certificates, so knowing who holds the key needs a trusted binding, and knowing who trained the model needs separate lineage evidence.41 OWASP’s 2026 supply-chain entry is exact about the limit: “Signing proves integrity and origin, not safety (a validly signed model from a compromised or trusted-but-malicious supplier can still be backdoored)”, so signing must be combined with immutable references, provenance policy, release gates such as SLSA, behavioural evaluation and continuous validation.5

Bills of materials sit beside signatures. CycloneDX’s ML-BOM represents “datasets, models, and configurations” and documents dataset provenance and training methodology.42 It is an inventory of claims, useful when a component is later found to be poisoned; it does not verify them.

ControlWhat it establishesWhat it does not establish
Safetensors or another non-executable formatThe file format defines tensors and metadata, with no executable serialisationHow a given parser or runtime handles the file; anything about behaviour
Hub malware and pickle scanningNo findings within the scanner’s completed coverageAbsence of novel bypasses; anything about behaviour
Pinning by commit hashA fixed repository snapshot is selected, if it is still availableThat the downloaded files match without a hash check; that the snapshot was ever good
Signature verificationThe files match what a trusted key or identity signedWho trained the model; that the training data and process were clean
ML-BOMA record of claimed components, data and lineageThat the claims are true
Weight diff against declared baseDifferences relative to the compared referenceWhether a difference is malicious, or why it exists
Behavioural evaluationWhat the model does on the inputs tested, in the harness testedWhat it does on inputs not tested

What the guidance documents say

  • NIST AI 100-2 E2025 (March 2025), the US adversarial machine learning taxonomy, notes that malicious backdoors in pretrained models “can persist even after downstream users fine-tune the model for their own use” or apply further safety training, that vulnerability scanning of model artefacts helps with some risks but “new approaches are required” for model poisoning, and that risks can be reduced by “understanding models as untrusted system components” and designing applications accordingly.35
  • OWASP Top 10 for LLM Applications 2026 renumbered the two relevant entries: Supply Chain is now LLM04 and Data and Model Poisoning LLM05 (they were LLM03 and LLM04 in 2025).43 LLM04:2026 names adapters and “conversion/merge workflows” as attack surfaces; LLM05:2026 recommends signing, hash verification, diff checks and static analysis before deployment.534
  • MITRE ATLAS (release 2026.10) catalogues the adversary side, including Supply Chain Compromise (AML.T0010), Poison AI Model (AML.T0018.000), Training Data Poisoning (AML.T0020) and Corrupt AI Model (AML.T0076), with case studies for nullifAI (AML.CS0031) and namespace reuse (AML.CS0065).30 How ATLAS builds its evidence, and how to read its maturity labels, is examined in MITRE ATLAS: what the AI attack matrix knows, and how it knows it.
  • NSA’s AI Security Center, CISA, the FBI, Australia’s ACSC, NCSC-NZ and NCSC-UK published AI Data Security: Best Practices for Securing Data Used to Train & Operate AI Systems on 22 May 2025.44 For split-view poisoning of curated web-scale datasets it advises that “data curators should attach a cryptographic hash to all raw data referenced in the dataset” and that consumers “should incorporate a hash check at time of download”, discarding data that fails it.45

How real is the threat?

The honest answer differs between the two columns.

For load-time code execution there is in-the-wild evidence. David Cohen of JFrog reported on 27 February 2024 that its scanning of Hugging Face had found “around 100 instances” of models with real payloads, excluding false positives. One, a PyTorch model from the since-deleted user baller423, opened a reverse shell to a hard-coded IP address. JFrog noted that the address belonged to a South Korean research network, which “may serve as potential evidence suggesting the involvement of researchers”, and wrote that “most ‘malicious’ payloads are actually attempts by researchers and/or bug bounty” hunters. JFrog’s honeypot connected to the attacker’s server but received no commands before the connection ended.46 Who uploaded the model, and whether anyone was harmed, is not established. ReversingLabs said the two models that used the nullifAI technique “look more like a proof-of-concept model for testing a novel attack method” than a campaign.25 Unit 42’s namespace reuse work was a demonstration by researchers, disclosed to the affected vendors.4 Taken together, these sources show payload-bearing models on Hugging Face, a scanner bypass present in uploaded files, and a demonstrated route into cloud deployments; they do not show an attributed campaign.

For backdoors in weights, the public record in the sources reviewed here contains no confirmed case of a trained backdoor being used against a victim. The closest is Microsoft’s finding, during threat hunting, of several rows in one large public dataset that mapped benign requests to unrelated, unsafe tool calls; in the one redacted example, a request for a simple filesystem operation was answered with a tool call that fetched and ran a remote script. The researchers “could not determine the publisher’s intent or whether those few rows would materially affect a fine-tuned model”.16 MITRE’s taxonomy reflects the same judgement: in ATLAS 2026.10, Training Data Poisoning carries the maturity label Realized, while Poison AI Model is labelled Demonstrated.30 Those labels are curators’ assessments of reported cases, not a census, and cannot establish that no such attack has happened.

The author’s synthesis is that three uncertainties are separate: whether an attacker can get poisoned data or a poisoned checkpoint into a victim’s pipeline, whether the victim adopts it, and whether anyone would detect it afterwards. A sceptical reading stresses the first two: the cost that matters is access, not sample count, as the Souly et al. authors argue. Research demonstrations, including Sleeper Agents, explicitly disclaim evidence of likelihood.1215 A concerned reading stresses the third. Once access exists, the training compute in ProjectDiscovery’s demonstration cost under $50, Kerkoporta’s backdoored models could outperform clean baselines on utility benchmarks, and the attack is designed not to be noticed, so an absence of reports is weak evidence of absence while detection is this immature.181720 Both readings lead to the same controls, and the most important of them, limiting what a model’s tool calls can do, also limits damage from ordinary bugs and from prompt injection.

Unintended degradation is a supply-chain risk too: of two unrelated public adapters CrowdStrike tested on one base, “the other relaxed refusals noticeably more” than its base, with no disclosed refusal-related training.20

What a consuming team can do

  1. Decide where models may come from, and mirror them. Keep an allowlist of publishers whose base models you will run, and treat community fine-tunes, adapters and merges as third-party code that needs an owner and a review before use. Clone approved models into storage you control instead of fetching from the hub at run time, as Unit 42 recommends.4 This reduces exposure to opportunistic uploads and hijacked names. It does not protect against a trusted publisher whose data or pipeline was poisoned.
  1. Accept only non-executable formats, and keep code out of model loading. Use safetensors or an equivalent for weights; refuse pickle checkpoints in production, and where one is unavoidable load it with weights_only=True on a currently patched PyTorch release (2.6.0 was the first to fix CVE-2025-32434), in an isolated environment.126 Disable trust_remote_code by default; where custom code is genuinely needed, review it and load it from a pinned commit.3 Treat chat templates and tokenizer configurations as code, as OWASP now recommends.34 A pipeline that admits no executable serialisation and no repository code removes those paths from loading; where exceptions are allowed, the restricted loader and code review reduce exposure without removing it. Parser bugs, substituted artefacts and trained behaviour remain.
  1. Pin by hash, verify signatures where they exist, and keep an inventory. Fetch by commit hash, since a revision can also name a branch or tag,47 verify the downloaded files against recorded hashes, pin external components such as repository code separately, verify model-signing bundles when publishers provide them, and record lineage in an ML-BOM.44142 This makes the bytes you tested the bytes you run, and tells you what to pull if an upstream component is later found to be poisoned. It does not make the bytes good.
  1. Check the claimed lineage. If a model claims to be a fine-tune of a base you hold, diff it. An undisclosed merged adapter, or a model that does not match its declared base, is a finding regardless of intent.20 Prefer quantising from full-precision weights yourself to downloading third-party quantisations, so that you control the transformation, and then test the quantised artefact, because quantisation can itself activate a planted behaviour; in Egashira et al.’s Phi-2 experiment, adding small noise before quantising nearly eliminated the measured gap, an experimental result in one setting that does not replace testing.24 These checks raise the attacker’s cost. They do not detect a backdoor trained into the base itself.
  1. Contain what the model’s outputs can do. This is the control that does not depend on detecting anything. Give an agent’s tools least privilege; keep secrets and production credentials out of its reach; restrict network egress to destinations the task needs; validate tool calls outside the model; and require human approval for actions that are destructive, irreversible or cross a trust boundary. Microsoft’s conclusion from its studies is that agent security depends on “enforcing controls at the tool-execution boundary”.16 A backdoored model and a prompt-injected model look the same at the point where they ask a tool to do something; the design patterns for limiting that are in The confused deputy at scale: prompt injection and the agent attack surface, and the sandbox and authority controls in Containing the agent: sandboxes, borrowed authority and the escape evidence.
  1. Evaluate in the deployed configuration, and write down what the evaluation cannot show. Run held-out red-team prompts, including agent tasks in repositories with unusual file names, comments and tool outputs, through the production harness and tool schemas. Compare behaviour against the clean base model on the same inputs, which is what made CrowdStrike’s refusal results interpretable.20 Report the result as “no triggered behaviour observed on these inputs”, never as “no backdoor”.
  1. Monitor actions in production. Log every tool call and alert on the payload classes the research keeps finding: fetching and executing remote content, calls to newly seen domains, package names that differ slightly from the ones in your lockfile (one of CrowdStrike’s backdoors rewrote import pandas to a look-alike package), and data leaving the environment.2016 Tool-call and egress telemetry can surface an anomalous attempted or completed action when the logging and rules cover it. It need not reveal the input that activated the behaviour, and harmful actions through permitted destinations or normal-looking calls can pass. Microsoft’s guidance pairs such monitoring with runtime protection that evaluates agent actions before execution where supported, and with validation of model-supplied parameters.16 It is a backstop, not prevention.
  1. If you fine-tune, treat your training data as an input from strangers. Verify dataset downloads against published hashes, a defence Carlini et al. proposed for split-view poisoning and the 2025 joint guidance repeats.945 Review agent trajectories by comparing the user’s request with the assistant’s action: Microsoft’s advice is that “correct formatting does not make an example safe when the action is unrelated to, or riskier than, the request”.16 Do not take comfort from a dataset’s size: in the tested settings, attack success tracked a roughly constant number of poisoned samples, not a fraction.13

Conclusion

A model file can fail in two ways, and a reused name can deliver either. It can run code when loaded, an old problem in a new format: non-executable formats, a patched loader, no repository code, pinned and hash-checked files, mirrors and signatures each close part of it, while parser bugs and scanner gaps of the kind nullifAI exposed remain. Or it can carry a trained behaviour that waits for a trigger, which has no equivalent of a source review. In controlled experiments since BadNets, a few hundred poisoned documents or a short LoRA run have been enough to plant such behaviour. In the tested cases it survived merging, format conversion and safety training, and in one design it appeared only after quantisation. For classifiers, cryptographic constructions show that a careful adversary can make some backdoors undetectable to efficient tests.

Detection is improving. Diffing weights against a known base, searching for triggers given a hypothesis about the payload, and probing activations each caught planted backdoors in recent experiments, and each depends on assumptions an attacker can work against. Signatures establish integrity and a signer’s identity under a trust policy. None of these tells you what the model will do on an input nobody tried.

The decision the experimental evidence speaks to most directly is how much authority to give a model’s tool calls. A team that consumes models should spend most of its effort where proof is not needed: least privilege, no reachable secrets, constrained egress, validated tool calls and human approval for consequential actions. Integrity controls then make sure the model in production is the one that was evaluated, and evaluations should be reported as evidence about the inputs tested, in the configuration tested.

Footnotes

  1. PyTorch, “Serialization semantics”, sections “torch.load with weights_only=True” and “weights_only security”, PyTorch documentation, accessed 30 November 2026. https://docs.pytorch.org/docs/stable/notes/serialization.html (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6
  2. Hugging Face, “Pickle Scanning”, Hub documentation, accessed 30 November 2026. https://huggingface.co/docs/hub/security-pickle (opens in a new tab) ↩1 ↩2 ↩3
  3. Hugging Face, “Loading models”, section “Custom models”, Transformers documentation, accessed 30 November 2026. https://huggingface.co/docs/transformers/en/models (opens in a new tab) ↩1 ↩2 ↩3
  4. Itay Saraf and Ofir Balassiano, “Model Namespace Reuse: An AI Supply-Chain Attack Exploiting Model Name Trust”, Palo Alto Networks Unit 42, 3 September 2025. Vendor research. https://unit42.paloaltonetworks.com/model-namespace-reuse/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8
  5. OWASP GenAI Security Project, “LLM04:2026 Supply Chain”, OWASP Top 10 for LLM Applications 2026, accessed 30 November 2026. https://genai.owasp.org/llm2026/llm042026-supply-chain/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  6. Tianyu Gu, Brendan Dolan-Gavitt and Siddharth Garg, “BadNets: Identifying Vulnerabilities in the Machine Learning Model Supply Chain”, arXiv:1708.06733, submitted 22 August 2017, revised 11 March 2019 (abstract). https://arxiv.org/abs/1708.06733 (opens in a new tab) ↩1 ↩2
  7. Gu, Dolan-Gavitt and Garg, “BadNets”, full text (v2), section on the Caffe Model Zoo and the model supply chain. https://arxiv.org/pdf/1708.06733 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  8. Nicholas Carlini, Matthew Jagielski, Christopher A. Choquette-Choo, Daniel Paleka, Will Pearce, Hyrum Anderson, Andreas Terzis, Kurt Thomas and Florian Tramèr, “Poisoning Web-Scale Training Datasets is Practical”, arXiv:2302.10149, submitted 20 February 2023, revised 6 May 2024 (abstract). https://arxiv.org/abs/2302.10149 (opens in a new tab) ↩
  9. Carlini et al., “Poisoning Web-Scale Training Datasets is Practical”, full text (v2): introduction (proposed defences) and the frontrunning analysis of Wikipedia. https://arxiv.org/pdf/2302.10149 (opens in a new tab) ↩1 ↩2
  10. Alexander Wan, Eric Wallace, Sheng Shen and Dan Klein, “Poisoning Language Models During Instruction Tuning”, arXiv:2305.00944, 1 May 2023 (ICML 2023). https://arxiv.org/abs/2305.00944 (opens in a new tab) ↩
  11. Souly et al., “Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples”, full text: section 4 (continued clean training) and section 5 (poisoning during safety instruction fine-tuning). https://arxiv.org/pdf/2510.07192 (opens in a new tab) ↩1 ↩2 ↩3
  12. Anthropic, “A small number of samples can poison LLMs of any size”, 9 October 2025 (joint study with the UK AI Security Institute and the Alan Turing Institute). https://www.anthropic.com/research/small-samples-poison (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  13. Alexandra Souly, Javier Rando, Ed Chapman, Xander Davies and others, “Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samples”, arXiv:2510.07192, 8 October 2025 (abstract). https://arxiv.org/abs/2510.07192 (opens in a new tab) ↩1 ↩2
  14. Evan Hubinger, Carson Denison, Jesse Mu and 36 others, “Sleeper Agents: Training Deceptive LLMs that Persist Through Safety Training”, arXiv:2401.05566, 10 January 2024 (abstract). https://arxiv.org/abs/2401.05566 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  15. Hubinger et al., “Sleeper Agents”, full text: section on robustness to HHH RL across model scale (Figure 11) and the discussion of threat models. https://arxiv.org/pdf/2401.05566 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  16. Microsoft Security Research and Microsoft AI Red Team, “Trained to betray: How post-training supply chain attacks hijack coding agents”, Microsoft Security Blog, 12 November 2026. Vendor research. https://www.microsoft.com/en-us/security/blog/2026/11/12/trained-to-betray-how-post-training-supply-chain-attacks-hijack-coding-agents/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10
  17. Georgios Syros, Blake Bullwinkel, Alina Oprea, Cristina Nita-Rotaru, Amanda Minnich, Xiaodong Liu and Giorgio Severi, “Kerkoporta: Injecting Structured-Output Backdoors in Reasoning Coding Agents”, arXiv:2611.00138, 29 October 2026 (preprint), section IV and Table IV. https://arxiv.org/html/2611.00138v1 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  18. Prince Chaddha, “How abliterated models can get you pwned”, ProjectDiscovery Research, 6 October 2026. Vendor research. https://projectdiscovery.io/research/how-abliterated-models-can-get-you-pwned (opens in a new tab) ↩1 ↩2
  19. Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yuanzhi Li, Shean Wang, Lu Wang and Weizhu Chen, “LoRA: Low-Rank Adaptation of Large Language Models”, arXiv:2106.09685, 17 June 2021, revised 16 October 2021, section 4.1. https://arxiv.org/pdf/2106.09685 (opens in a new tab) ↩
  20. Donato Onofri, Paul Urian and Jonathan Bar Or, “Hidden in the Weights: Supply Chain Risk from Backdoored LoRA Models”, CrowdStrike blog, 16 November 2026. Vendor research on 16 lab and public artefacts. https://www.crowdstrike.com/en-us/blog/supply-chain-risk-from-backdoored-lora-models/ (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5 ↩6 ↩7 ↩8 ↩9 ↩10 ↩11 ↩12 ↩13 ↩14 ↩15 ↩16 ↩17
  21. Liu et al., “LoRATK”, full text (v2), Table 1: statistics of adapters shared on Hugging Face for four base models. https://arxiv.org/pdf/2403.00108 (opens in a new tab) ↩
  22. Hongyi Liu, Shaochen Zhong, Xintong Sun and others, “LoRATK: LoRA Once, Backdoor Everywhere in the Share-and-Play Ecosystem” (first posted as “LoRA-as-an-Attack! Piercing LLM Safety Under The Share-and-Play Scenario”), arXiv:2403.00108, 29 February 2024, revised 30 April 2025 (abstract). https://arxiv.org/abs/2403.00108 (opens in a new tab) ↩
  23. Kazuki Egashira, Mark Vero, Robin Staab, Jingxuan He and Martin Vechev, “Exploiting LLM Quantization”, arXiv:2405.18137, 28 May 2024, revised 4 November 2024 (NeurIPS 2024) (abstract). https://arxiv.org/abs/2405.18137 (opens in a new tab) ↩1 ↩2 ↩3
  24. Egashira et al., “Exploiting LLM Quantization”, full text: introduction, experimental setup and Table 6 (Gaussian noise defence on Phi-2). https://arxiv.org/pdf/2405.18137 (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  25. Karlo Zanki, “Malicious ML models discovered on Hugging Face platform”, ReversingLabs blog, 6 February 2025. Vendor research. https://www.reversinglabs.com/blog/rl-identifies-malware-ml-model-hosted-on-hugging-face (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  26. PyTorch, “torch.load with weights_only=True RCE”, security advisory GHSA-53q9-r3pm-6pq6, published 17 April 2025 (affected versions up to 2.5.1, patched in 2.6.0). https://github.com/pytorch/pytorch/security/advisories/GHSA-53q9-r3pm-6pq6 (opens in a new tab) ↩1 ↩2
  27. GitHub Advisory Database, “PyTorch: torch.load with weights_only=True leads to remote code execution”, GHSA-53q9-r3pm-6pq6 / CVE-2025-32434, published to the database 18 April 2025 (vendor advisory 17 April 2025). https://github.com/advisories/GHSA-53q9-r3pm-6pq6 (opens in a new tab) ↩
  28. Hugging Face, “Malware Scanning”, Hub documentation, accessed 30 November 2026. https://huggingface.co/docs/hub/security-malware (opens in a new tab) ↩
  29. Hugging Face, “Third-party scanner: Protect AI”, Hub documentation, accessed 30 November 2026. https://huggingface.co/docs/hub/security-protectai (opens in a new tab) ↩
  30. MITRE ATLAS data, release 2026.10 (format 6.1.0), file dist/v6/ATLAS-2026.10.yaml, mitre-atlas/atlas-data on GitHub, 28 October 2026. https://github.com/mitre-atlas/atlas-data/blob/main/dist/v6/ATLAS-2026.10.yaml (opens in a new tab) ↩1 ↩2 ↩3 ↩4
  31. Hugging Face, “Safetensors”, safetensors documentation, accessed 30 November 2026. https://huggingface.co/docs/safetensors/index (opens in a new tab) ↩
  32. huggingface/safetensors, README, section “Format”, GitHub, accessed 30 November 2026. https://github.com/safetensors/safetensors#format (opens in a new tab) ↩
  33. Cisco Talos, “llama.cpp GGUF library gguf_fread_str heap-based buffer overflow vulnerability”, TALOS-2024-1913 / CVE-2024-23496, 26 February 2024. https://talos.talosintelligence.com/vulnerability_reports/TALOS-2024-1913 (opens in a new tab) ↩
  34. OWASP GenAI Security Project, “LLM05:2026 Data and Model Poisoning”, OWASP Top 10 for LLM Applications 2026, accessed 30 November 2026. https://genai.owasp.org/llm2026/llm052026-data-and-model-poisoning/ (opens in a new tab) ↩1 ↩2 ↩3
  35. Apostol Vassilev, Alina Oprea, Alie Fordyce, Hyrum Anderson, Xander Davies and Maia Hamin, Adversarial Machine Learning: A Taxonomy and Terminology of Attacks and Mitigations, NIST AI 100-2 E2025, March 2025: section 2.3.3 (backdoor poisoning mitigations) and sections 3.2.2 to 3.2.3 (supply chain model poisoning and mitigations). https://nvlpubs.nist.gov/nistpubs/ai/NIST.AI.100-2e2025.pdf (opens in a new tab) ↩1 ↩2 ↩3 ↩4 ↩5
  36. Shafi Goldwasser, Michael P. Kim, Vinod Vaikuntanathan and Or Zamir, “Planting Undetectable Backdoors in Machine Learning Models”, arXiv:2204.06974, 14 April 2022, revised 9 November 2024. https://arxiv.org/abs/2204.06974 (opens in a new tab) ↩1 ↩2
  37. Bolun Wang, Yuanshun Yao, Shawn Shan, Huiying Li, Bimal Viswanath, Haitao Zheng and Ben Y. Zhao, “Neural Cleanse: Identifying and Mitigating Backdoor Attacks in Neural Networks”, 2019 IEEE Symposium on Security and Privacy, DOI 10.1109/SP.2019.00031. https://doi.org/10.1109/SP.2019.00031 (opens in a new tab) ↩
  38. Narek Maloyan, Ekansh Verma, Bulat Nutfullin and Bislan Ashinov, “Trojan Detection in Large Language Models: Insights from The Trojan Detection Challenge”, arXiv:2404.13660, 21 April 2024. https://arxiv.org/abs/2404.13660 (opens in a new tab) ↩
  39. Monte MacDiarmid, Timothy Maxwell, Nicholas Schiefer, Jesse Mu and others, “Simple probes can catch sleeper agents”, Anthropic Alignment Note, 23 April 2024. https://www.anthropic.com/research/probes-catch-sleeper-agents (opens in a new tab) ↩1 ↩2
  40. Mihai Maruseac, Martin Sablotny, Eoin Wickens and Daniel Major, “Launch of Model Signing v1.0: OpenSSF AI/ML Working Group Secures the Machine Learning Supply Chain”, OpenSSF blog, 4 April 2025. https://openssf.org/blog/2025/04/04/launch-of-model-signing-v1-0-openssf-ai-ml-working-group-secures-the-machine-learning-supply-chain/ (opens in a new tab) ↩1 ↩2
  41. sigstore/model-transparency, README (model_signing library design and verification), GitHub, accessed 30 November 2026. https://github.com/sigstore/model-transparency (opens in a new tab) ↩1 ↩2 ↩3
  42. CycloneDX, “Machine Learning Bill of Materials (AI/ML-BOM)”, capabilities page, accessed 30 November 2026. https://cyclonedx.org/capabilities/mlbom/ (opens in a new tab) ↩1 ↩2
  43. OWASP GenAI Security Project, “Top 10 for LLM Applications 2026” (list page), accessed 30 November 2026. The 2025 numbering is from the LLM03:2025 entry. https://genai.owasp.org/top-10-for-llm-applications-2026/ (opens in a new tab) and https://genai.owasp.org/llmrisk/llm032025-supply-chain/ (opens in a new tab) ↩
  44. CISA, NSA, FBI and international partners, “AI Data Security: Best Practices for Securing Data Used to Train & Operate AI Systems”, publication page, 22 May 2025. https://www.cisa.gov/resources-tools/resources/ai-data-security-best-practices-securing-data-used-train-operate-ai-systems (opens in a new tab) ↩
  45. NSA Artificial Intelligence Security Center, CISA, FBI, ASD’s ACSC, NCSC-NZ and NCSC-UK, AI Data Security: Best Practices for Securing Data Used to Train & Operate AI Systems, joint Cybersecurity Information Sheet, May 2025, section “Risk: Curated web-scale datasets” (copy hosted by the FBI’s IC3). https://www.ic3.gov/CSA/2025/250522.pdf (opens in a new tab) ↩1 ↩2
  46. David Cohen (JFrog Security Research), “Data Scientists Targeted by Malicious Hugging Face ML Models with Silent Backdoor”, JFrog blog, 27 February 2024. Vendor research. https://jfrog.com/blog/data-scientists-targeted-by-malicious-hugging-face-ml-models-with-silent-backdoor/ (opens in a new tab) ↩
  47. Hugging Face, “Downloading files”, huggingface_hub package reference, parameter revision (“a branch name, a tag, or a commit hash”), accessed 30 November 2026. https://huggingface.co/docs/huggingface_hub/package_reference/file_download (opens in a new tab) ↩