Do you check auto_map before loading a model? Picking a model can execute code
iamjessew · reddit · 2026-10-06
A Reddit ML thread highlights an overlooked attack surface: automap in a repo's config. combined with trustremotecode can lead to arbitrary code execution. The trigger: an Unsloth Studio post showed that merely selecting a model in the UI — no weights loaded, no inference — ran Python from the repo, because a capability check called AutoConfig with trustremotecode on (fixed in 2026.6.9).
Key points:
- The transformers path executes repo-shipped code; GGUF via llama.cpp mostly avoids the Python layer
- The poster asks for best practices: pin commit hashes, grep for automap/.py files, sandbox new repos, or rely on download counts?
If you pull models locally, this is an attack surface worth auditing.
More from Safety
- John Schulman questions Anthropic's opacity on how Fable capabilities were crippled — ivan_bezdomny · 2026-11-29
- UK AI Minister slammed: copyright law leaves Britain zero frontier model labs — nathanbenaich · 2026-11-29
- GGUF-Radar gets a Windows UI: single-exe scanner for malware in GGUF models — Electronic-Metal2391 · 2026-11-29
- GPU Power-Current Sensor Spots Hidden AI Training in 3 Seconds — bigdata · 2026-11-29
- Calling BS on Frontier AI FUD: Vague 'Unsafe Model' Claims Need Evidence — DavidLinthicum · 2026-11-29
- EU display rules likely block Tesla FSD v15 Reality View in Europe — michalmalewicz · 2026-11-29