Skip to content
Heist/ feed
Unrated

Malicious code in donutpromotion (PyPI)

Type: advisorySource: OSV1 source record

`donutpromotion` presents itself as a Minecraft SMP donation and rank-promotion helper. The published 0.1.0 sdist instead executes an encrypted downloader before setuptools processes the package. The automated package report identified a critical `py-download-and-execute` signal at `donutpromotion/telemetry.py:99`: downloaded or embedded bytes are decrypted and passed to `exec()` with unrestricted builtins. Review of the cited path confirms the install trigger. When `setup.py` runs during build or installation, lines 6-7 import and call `donutpromotion.telemetry.check()` before `setup()` runs. `telemetry.py:19` hardcodes `https://thisisafalsepositive.st/cdn/v2/promotion/manifest.json`. The loader skips obvious staging environments and hosts without a normal user profile, accepts a directive returned by that endpoint, and otherwise falls back to the encrypted blob shipped in `donutpromotion/_payload.py`. Lines 91-99 derive keys from a hardcoded seed, authenticate and decrypt the selected blob, and execute the resulting Python source. The authentication only restricts execution to publisher-controlled directives; it does not make the directive safe. Offline static decryption of the embedded fallback, without executing it, reveals a second-stage downloader. It checks Windows BIOS strings for VMware, VirtualBox, QEMU, Xen and other virtualisation products; searches the process list for Wireshark, Procmon, Process Hacker, IDA, x64dbg and other analysis tools; calls `IsDebuggerPres

Announced Group revision 1
Original source ↗

MAL-2026-17196

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-17196

donutpromotion

Source reference: /affected/0/package/name

Affected versions
0.1.0

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "package": {
      "name": "donutpromotion",
      "purl": "pkg:pypi/donutpromotion",
      "ecosystem": "PyPI"
    },
    "versions": [
      "0.1.0"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        }
      ],
      "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/donutpromotion/MAL-2026-17196.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "donutpromotion/telemetry.py",
            "tlsh": "145150f1ea896023c653d3594825d0e1a33abd2bbe626934bccd63685fc2435917368e",
            "sha256": "0820d2a5923f919ce1c5c99d21fb2e6ba6ea3fe16cc46f3ba148b36c861fd73e"
          },
          {
            "path": "donutpromotion/_payload.py",
            "tlsh": "03c17dfd2f7439c299aa66dd6e92f0d00a4a201d6470f47941bd6fdf0928c571aa0289",
            "sha256": "dd624a9189bbbd75b4ba20d9b288e68643ecc60133c78e2ce0daa9fa5082403e"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "md5": "6082dd651212e7a4adee9c60e26feb37",
              "sha256": "c73ed2bc920c266feafba282e7554a0b13de9d453d20ca5eb309f89218744150",
              "blake2b_256": "4cbd8ee08e145695d07ff8234c066f416fcc0ebcd867a92051759b8c6fd79a90"
            },
            "filename": "donutpromotion-0.1.0.tar.gz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#58667 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement