# MAL-2026-10975: Malicious code in rasterkit-demo (PyPI)


- **Type:** Malicious package
- **Package:** `rasterkit-demo` (PyPI)
- **Published:** 21 Jul 2026

## What is MAL-2026-10975?

MAL-2026-10975 is a malicious package in rasterkit-demo, published on 21 Jul 2026. 

### Official description

rasterkit-demo ships a CLI entry point (`rasterkit-demo`) whose `run_demo()` function imports `demo_channel_windows` from `PIL._data` and passes the returned buffer to `exec(samples.decode('latin-1'), {'__name__': '__main__',...})` inside worker threads. `PIL._data` is not a real Pillow module; it is supplied by the `rasterkit` package that this demo declares as a required dependency, so the bytes being executed are chosen at runtime by the author-controlled `rasterkit` package rather than by Pillow. The surrounding functions (`extract_windows`, `render_tiles`, `save_tiles`) and the 'channel window / processing pipeline' docstrings provide imaging cover for what is arbitrary Python execution; the payload can be changed at will by publishing a new version of `rasterkit` without republishing this package. Running the advertised CLI therefore executes attacker-mutable code on the installer's machine under an image-processing cover story.

During import, the code uses steganography to extract code from an image hidden in the dependency. The code then adds a new authorized SSH key and reports back the IP of the current environment.

---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.

Campaign: 2026-06-textwrap-toolkit-stager

Reasons (based on the campaign):

 - backdoor

 - obfuscation

 - crypto-related

 - Downloads and executes a remote malicious script.

 - exfiltration-crypto

## What should I do about MAL-2026-10975?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2026-10975 is a malicious package: rasterkit-demo (PyPI). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2026-10975/ (Markdown: https://insights.sbomify.com/MAL-2026-10975/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-10975

---
From sbomify Insights: https://insights.sbomify.com/MAL-2026-10975/
Summaries are generated and may contain mistakes; the official description above is the record.
