The AI Software Supply Chain: Images, Packages, Startup Hooks and GPU Binaries
For executives
AI workloads are assembled from public parts: base images, Python packages, pre-trained models and compiled GPU code, most of it pulled automatically. In 2026 attackers used every one of those doors. The lightning package on PyPI shipped a credential stealer that ran on import. LiteLLM was compromised twice, once through a Python start-up file and once through its own release pipeline, with about 49,000 downloads of the bad version before it was pulled. Pickled model files on public hubs opened reverse shells when loaded. Once inside a Python process on a GPU node, the same code can read credentials, use the GPUs, or quietly edit model weights in memory. Endpoint tools see ordinary Python, so detection has to know which code was imported or executed, by whom, and what it then did on the GPU.
Why this is an AI runtime problem
AI teams pull more third-party code into production than most software teams, and much of it runs with access to GPUs, model weights and cloud credentials. Two parts of the chain are specific to AI. Model files are often code in disguise: unpickling a checkpoint can run arbitrary Python. And GPU binaries are opaque: compiled CUDA kernels ship inside fatbins that CPU-focused scanners cannot read.
Door 1: imports run code
Importing a Python package executes it. In April 2026, lightning versions 2.6.2 and 2.6.3 on PyPI (CVE-2026-44484) started a credential-stealing payload on import. In October 2026, LiteLLM 1.107.0 shipped a credential stealer through the project's own release pipeline. The precedent is older: in December 2022, the torchtriton dependency-confusion attack ran a malicious binary inside PyTorch nightly installations, the first widely known case against an AI framework.
Door 2: start-up files
Python runs any .pth file in site-packages at interpreter start, before the application imports anything. The March 2026 LiteLLM compromise shipped litellm_init.pth in versions 1.82.7 and 1.82.8, which launched a credential stealer every time Python started.
Door 3: model files that execute
Python's pickle format, used by many PyTorch checkpoints, can carry instructions that run on load. Researchers have found models on public hubs that opened reverse shells or fetched a beacon when loaded. The safetensors format stores only tensors and avoids this.
Door 4: strings that become code
exec() and eval() run strings as code, and kernel compilers such as Triton and CuPy build GPU code at runtime. In a case documented by Sysdig, an Open WebUI plugin hid its payload behind 64 layers of decoding and exec(), running entirely in memory with nothing written to disk.
Images and GPU binaries
Most AI containers start from an NVIDIA CUDA base image, and public registries hold thousands of look-alike forks. A malicious image scheduled onto a GPU node needs no escalation step if the node runs an unpatched Container Toolkit: NVIDIAScape (CVE-2025-23266) ran an LD_PRELOAD library as root on the host from a three-line Dockerfile.
Compiled GPU code adds a layer scanners miss. A CUDA fatbin bundles several binaries for different GPU architectures, and the driver loads whichever one matches the hardware. Nothing in the format signs or verifies those variants, so the code that runs on a data center H100 can differ from the code a developer tested on a workstation GPU. Kernels can also be loaded at runtime from memory, never touching the binary on disk.
What the attacker gets
Credential theft is the common payload, and it is not the ceiling. Code running in the same Python process as a model can change that model's weights in GPU memory without touching the file on disk, so file hashes still match. Stealthium demonstrated this in its Hands Off research using a Rank-One Model Editing (ROME) edit applied by a malicious imported library. Stolen GPU capacity is another payload: cloud projects running unauthorized mining have been suspended outright, taking every legitimate workload in them offline.
The SBOM gap
Software bills of materials built from package manager databases miss CUDA libraries copied in without a package entry, host components such as the Container Toolkit and driver, and GPU kernels loaded at runtime. A clean SBOM is not evidence of a clean GPU container. SBOM Gaps covers this in depth.
Detection
Every door ends with code running inside a Python process that looks legitimate. The signals are in what that process imports and executes and what it then does. Stealthium records each Python import with its resolved path and importer, which separates the standard library's secrets module from a local file named secrets.py; each exec, eval and compile call with its call stack; and each CUDA library load and kernel launch with the Python stack that caused it. A kernel launched 87 times from an unexpected calibration module, when the user's request accounts for three, is the anomaly that exposed the Hands Off weight edit. For GPU binaries, capturing kernel bytes at load time and comparing hashes per architecture shows whether the code on production GPUs is the code that was tested.
Related articles
- Hands Off: Detecting Model Weight Tampering (Stealthium research)
- Inside CUDA Fatbins: The Hidden World of GPU Binary Formats (Stealthium research)
- AI Infrastructure Under Attack: Why the Breaches Keep Happening at Runtime (Stealthium)
- Unsafe deserialization in AI frameworks
- Model file formats: pickle, .pt, safetensors and GGUF, and which ones can run code