Ahmed Doghri Logo Image
Ahmed Doghri

tensorwarden

Three real artifacts enter. SafeTensors passes; a dangerous pickle and a traversal archive are quarantined with three critical findings.

tensorwarden model checkpoint security scanner
tensorwarden working browser demo

Model Files Cross A Code Boundary

Pickle-based checkpoints can execute constructors during loading, while malformed archives and tensor metadata can abuse paths, offsets, or allocation limits.

tensorwarden identifies the container first, disassembles pickle opcodes without loading them, validates SafeTensors headers and byte ranges, and checks archives for traversal and embedded executable payloads.

The Demo

The scanner examines three actual files. The valid SafeTensors artifact is accepted; the pickle and traversal ZIP are quarantined with three critical findings.

Static inspection reduces loader risk but does not replace sandboxing, signatures, provenance, dependency review, or runtime resource limits.

Implementation Basis

SafeTensors was designed as a simple, safe alternative to pickle for tensor exchange.

Read the SafeTensors documentation.

Tools Used

Python
SafeTensors
Pickle Opcodes
Archive Security
Supply Chain
Docker
GitHub Actions CI