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

Open AML.M0011 in Interactive Defense Workbench

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

  1. Enforce SafeTensors (`use_safetensors=True`) across Hugging Face/PyTorch loaders and ban `pickle.load` or unguarded `torch.load(..., weights_only=False)` in production.
  2. Scan legacy `.pt`/`.pkl`/`.h5`/SavedModel checkpoints with ModelScan and Fickling inside an isolated network-disabled sandbox before conversion.
  3. Disable `trust_remote_code=True` in Transformers model loaders unless the exact commit SHA and Python modeling file have passed security review.
  4. Mount runtime container root filesystems read-only and restrict dynamic shared library loading via seccomp/AppArmor profiles.

What this control stops

Known bypass conditions & residual risk

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

Often paired with

Controls mapped to the same techniques as Restrict Library Loading.