Skip to content
Heist/ feed
Unrated

Malicious code in my-private-pkg (PyPI)

Type: advisorySource: OSV1 source record

Version 99.1.1 of my-private-pkg executes a custom setuptools install hook while a wheel is built. The hook launches my_private_pkg/index.py, which collects the current username, working directory, hostname, resolved local IP address, operating system, and machine architecture, then attempts to POST the resulting JSON to a hard-coded Webhook.site request collector. Dynamic analysis observed the wheel build spawn this script followed immediately by network activity. The package's public metadata describes it only as a private Python package and does not disclose the collection or transmission. --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (d8008c5637dfae2dfc4162f1dd5152c5e90e03b0fc8593fda5055f44e9745b22) setup.py registers a custom install command (PostInstallCommand) that runs my_private_pkg/index.py automatically on `pip install`. That script gathers installer-side identifiers — os.getlogin(), socket.gethostname(), local IP address, os.getcwd(), platform.system() and platform.machine() — and POSTs them as JSON to a hardcoded collector URL at https://webhook.site/d4d1b01b-708a-40b9-b8c8-187eeecafeed. A duplicate of the exfiltration payload is shipped as vercel_runtime_python/index.py, and vercel_runtime_python/__init__.py contains the same PostInstallCommand wiring referencing my_private_pkg/index.py; the module name mimics Vercel's Python runtime. The package name and the internal vercel_runtime_python module name are consistent with

Announced Group revision 1
Original source ↗

MAL-2026-17180

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-17180

my-private-pkg

Source reference: /affected/0/package/name

Affected versions
99.1.1

Source reference: /affected/0/versions

0.1.1

Source reference: /affected/0/versions

99.11.2

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": "my-private-pkg",
      "purl": "pkg:pypi/my-private-pkg",
      "ecosystem": "PyPI"
    },
    "versions": [
      "99.1.1",
      "0.1.1",
      "99.11.2"
    ],
    "database_specific": {
      "cwes": [
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        },
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        },
        {
          "name": "Embedded Malicious Code",
          "cweId": "CWE-506",
          "description": "The product contains code that appears to be malicious in nature."
        },
        {
          "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/my-private-pkg/MAL-2026-17180.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "setup.py",
            "tlsh": "3e01bd47ce7593342c7243aa95962501e722166b1b00a48b30fe05185f73862851fbef",
            "sha256": "8cd83903e488634d917bbfffe4c6cc989888004a7de19e35509885041df42a32"
          },
          {
            "path": "vercel_runtime_python/index.py",
            "tlsh": "5611cc7a8d618d41977a808ccc078092f2164b236b25fe6bbcfc066daf3000153b0df2",
            "sha256": "df6d2c082b08ac77ebe3c6a8db9b2fd9dc607482631224fd120502de81191934"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "md5": "cb7f60550698225c587033bcf99024d7",
              "sha256": "17d77e31dceb38fde6c20c70164515acf24e2e334f9d22858f771cce78594aa8",
              "blake2b_256": "6120ed17fac654a5d8e73c68eb5e9ddebe7fa298fc85347e3d656eca67856e0a"
            },
            "filename": "my_private_pkg-99.1.1-py3-none-any.whl"
          },
          {
            "hashes": {
              "md5": "ba6ed08758ab5071a9d04458a21e05e0",
              "sha256": "c23d1aefbf0580324d8a4b1caf5c862c7a4146c5c797d5dbc84bb5e37a9ddb4d",
              "blake2b_256": "efb0b5cbed785b116759e99b6712106011d810418c9b388dace6d9426f34611b"
            },
            "filename": "my_private_pkg-99.1.1.tar.gz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

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