← All notes
Perspective

Treat a model from Hugging Face like third-party code

Sail
your apppackages: reviewed, pinnedthe model: pulled in, unread

Security teams would never deploy a binary because its README said it was safe. Yet models are pulled from Hugging Face every day on the strength of a model card, and a model card is a claim, not evidence.

In my own case studies the checks were cheap. Reading a model file’s header takes seconds and told me what it really was, and that it carried no licence. A distance screen against the claimed base model flags look-alikes that were never fine-tuned from it, and has caught an upload with NaN weights. Behavior can be measured too: one line in an email hijacked one model 4 times in 48 and another 22 times.

The fix is the one we already know from software supply chains: verify provenance before trust. Publish a recipe someone else can rebuild, keep a lineage record, sign it, and test the model on your own data before it touches anything that matters.