TLDR InfoSec · STRATEGIES & TACTICS

THE TENSOR IN THE HAYSTACK: WEIGHTSQUATTING AS A SUPPLY-CHAIN RISK

labs.itresit.es10 min read

Summary from the TLDR InfoSec newsletter

Weightsquatting is a supply-chain attack that manipulates token-space weights in open-weight LLMs to bias code-generation output toward attacker-chosen package names, surviving format conversion, 4-bit quantization, and GGUF export. Llama 3.2 and Qwen 2.5 accepted the poisoned edits cleanly while remaining coherent, whereas DeepSeek models either collapsed visibly or reasoned past the manipulation. Organizations deploying local coding assistants should implement routine behavioral validation of model artifacts against known-good dependency outputs before production use.