MITRE ATLAS 2026.10 mitigation · AML.M0011
Restrict Library Loading
Eliminate unsafe deserialization (Python pickle, torch.load) and block arbitrary dynamic code/library loading when handling untrusted model weights, datasets, and plugins.
Control blueprint overview
- Control ID
AML.M0011- Framework
- MITRE ATLAS 2026.10 mitigation
- Stack layers
- Tool/Sandbox Boundary · Network/IAM
- Techniques addressed
- 15
- OWASP LLM Top 10
- NIST AI RMF
- Reference URI
https://raw.githubusercontent.com/mitre-atlas/atlas-data/f56c1468731d6428e5bf875263b4643b46d67437/dist/v6/ATLAS-2026.10.yaml#:~:text=AML.M0011%3A
Control mechanism
Mandates data-only tensor formats such as SafeTensors instead of pickle-based `.pkl`/`.pt`/`.bin` checkpoints that execute arbitrary Python opcodes on load, and locks container filesystems, `LD_PRELOAD`, and Python import paths with read-only mounts and seccomp profiles. Stops code execution during model loading and dependency resolution.
Implementation steps
- Enforce SafeTensors (`use_safetensors=True`) across Hugging Face/PyTorch loaders and ban `pickle.load` or unguarded `torch.load(..., weights_only=False)` in production.
- Scan legacy `.pt`/`.pkl`/`.h5`/SavedModel checkpoints with ModelScan and Fickling inside an isolated network-disabled sandbox before conversion.
- Disable `trust_remote_code=True` in Transformers model loaders unless the exact commit SHA and Python modeling file have passed security review.
- Mount runtime container root filesystems read-only and restrict dynamic shared library loading via seccomp/AppArmor profiles.
What this control stops
- Malicious pickle deserialization payloads (`__reduce__` RCE) hidden inside downloaded model checkpoints (AML.T0011.000).
- Trojanized `trust_remote_code` modeling scripts executing shell commands upon model initialization.
- Dynamic `.so` / DLL hijacking and malicious custom Keras Lambda layer execution during model serving.
Known bypass conditions & residual risk
- Behavioral backdoors or poisoned weights stored legitimately inside SafeTensors arrays without executable code.
- Vulnerabilities inside approved foundational libraries (e.g., CUDA/PyTorch C++ memory bugs) if dependencies are unpatched.
- Agentic code-execution tools that intentionally run model-generated Python without kernel sandboxing (ATO.M0006).
Latency, usability & false-refusal trade-offs
Latency: Faster startup (SafeTensors zero-copy memory mapping reduces load time vs. pickle); 0 ms steady-state inference penalty. | False-Refusal Risk: Zero inference refusals; legacy custom architectures without SafeTensors support require conversion before loading. | Operational Cost: Low; enforceable via static linters, CI artifact gates, and container security policies.
Techniques this control addresses
- User ExecutionAML.T0011 · Infrastructure and access
- User Execution: Unsafe AI ArtifactsAML.T0011.000 · Supply chain
- User Execution: Malicious PackageAML.T0011.001 · Supply chain
- User Execution: Poisoned AI Agent ToolAML.T0011.002 · Training and model integrity
- User Execution: Malicious LinkAML.T0011.003 · Infrastructure and access
- Manipulate AI Model: Embed MalwareAML.T0018.002 · Training and model integrity
- Data from Local SystemAML.T0037 · Infrastructure and access
- Command and Scripting InterpreterAML.T0050 · Infrastructure and access
- MasqueradingAML.T0074 · Model robustness
- OS Credential DumpingAML.T0090 · Infrastructure and access
- Escape to HostAML.T0105 · Infrastructure and access
- Machine CompromiseAML.T0112 · Infrastructure and access
- Machine Compromise: AI ArtifactsAML.T0112.001 · Supply chain
- Exploit Automated Artifact Processing PipelineAML.T0119 · Supply chain
- Event Triggered ExecutionAML.T0142 · Infrastructure and access
Often paired with
Controls mapped to the same techniques as Restrict Library Loading.
- Verify AI Artifacts 9 shared techniques
- Vulnerability Scanning 8 shared techniques
- Segmentation of AI Agent Components 7 shared techniques
- Code Signing 6 shared techniques
- Control Access to AI Models and Data at Rest 5 shared techniques
- Enforce Access Controls for AI Agent Tools 5 shared techniques