Security Risks Related to Downloading and Running LLMs Locally
summary
Downloading a model often pulls more than weights: blobs and manifests include metadata and embedded code that parsers or interpreters run at inference time. Google-format files contain templating code (go templates) and metadata that can trigger parser bugs, and a malformed file has already exploited an engine (example: a malformed Google file hitting lama). Hugging Face can deliver executable Python files alongside Pickle objects and GGUF blobs; even safe tensors come with a config.json that selects model-specific code in transformers or llama (98 references found).
AI-written summary · about
chapters (10)
- 0:00Introduction to AI security
- 1:50Misconceptions about model execution
- 3:34Investigating model formats
- 6:45Metadata and parser risks
- 8:33Code within model files
- 10:21Inference engine dependencies
- 12:31Vulnerabilities in inference engines
- 14:40Custom models and Python code
- 16:27Security risks of local models
- 17:31Summary and recommendations
