MAL-2026-18627

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/msgpackrpc/MAL-2026-18627.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-18627
Published
2026-11-04T16:11:42Z
Modified
2026-11-12T00:45:06Z
Summary
Malicious code in msgpackrpc (PyPI)
Details

-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (55c4f419c883d30c0099a7120b0456d975af824e08310e0750166d074def3204)

The sdist's setup.py overrides the install command with a class that, during pip install, collects the installer's hostname via socket.gethostname() and resolves its IP via socket.gethostbyname(), then POSTs them as JSON to a hardcoded webhook.site collector URL (https://webhook.site/711f31ae-7091-4b68-9631-57b6c6f19980) using urllib.request.urlopen. The package ships no actual functionality: msgpackrpc/init.py is empty, the project metadata self-describes as a 'POC package (beacon-only)', and the author field is the placeholder 'Your Name'. The package name is a typosquat shape against the legitimate msgpack-rpc ecosystem. Installing this version causes the installer's host identifiers to leave the machine to an attacker-controlled endpoint with no disclosure or consent.

Source: kam193 (9747a902bd61a745ec9c8f569f57417303f828b441c3e4e8c95101adf1498d13)

Installing the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.


Category: PROBABLY_PENTEST - Packages looking like typical pentest packages, but also anything that looks like testing, exploring pre-prepared kits, research & co, with clearly low-harm possibilities.

Campaign: GENERIC-standard-pypi-install-pentest

Reasons (based on the campaign):

  • The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.

  • The package overrides the install command in setup.py to execute malicious code during installation.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "pypi/GENERIC-standard-pypi-install-pentest/msgpackrpc",
            "import_time":  "2026-11-04T16:37:36.802736375Z",
            "modified_time":  "2026-11-04T16:11:42.068096Z",
            "sha256":  "9747a902bd61a745ec9c8f569f57417303f828b441c3e4e8c95101adf1498d13",
            "source":  "kam193",
            "versions":  [
                "0.0.0",
                "0.1.0"
            ]
        },
        {
            "id":  "IN-MAL-2026-022626",
            "import_time":  "2026-11-12T00:30:24.934663162Z",
            "modified_time":  "2026-11-11T23:47:58Z",
            "sha256":  "55c4f419c883d30c0099a7120b0456d975af824e08310e0750166d074def3204",
            "source":  "amazon-inspector",
            "versions":  [
                "0.1.0"
            ]
        }
    ]
}
References
Credits

Affected packages

PyPI / msgpackrpc

Package

Name
msgpackrpc
View open source insights on deps.dev
Purl
pkg:pypi/msgpackrpc

Affected ranges

Affected versions

0.*
0.0.0
0.1.0

Database specific

cwes
[
    {
        "cweId":  "CWE-506",
        "description":  "The product contains code that appears to be malicious in nature.",
        "name":  "Embedded Malicious Code"
    }
]
indicators
{
    "evidence_files":  [
        {
            "artifacts":  [
                "msgpackrpc-0.1.0.tar.gz"
            ],
            "path":  "setup.py",
            "sha256":  "5e3b5827437a8bd3649abf9f1df6957904acb8eff37c4b217f35777ce1a329ce",
            "tlsh":  "7e11ef92f872b165bb8321d0086789653693ba0bbb02ec6d3dcc43584fae439d861658"
        },
        {
            "artifacts":  [
                "msgpackrpc-0.1.0.tar.gz"
            ],
            "path":  "pyproject.toml",
            "sha256":  "e6d8a6e833ab20a03d2d5646688bf639eb21d6ec3a11362207ade35eac9c0188",
            "tlsh":  "d3e07d23cbb7db40adc210412019b484debaf45531c081485fcbc1c5a5cd48acbde824"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "msgpackrpc-0.1.0.tar.gz",
            "hashes":  {
                "blake2b_256":  "889692f8afddd60dbe93c6700f6aacc245b4a5aea74686acfadc959f757c6792",
                "md5":  "64a7bb442d523e701f9e9c0a000ade16",
                "sha256":  "3d959a9588a3fb96d4a558484dca090c4d3a42a6bdbb8d38882bda9ef7a7c4da"
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/msgpackrpc/MAL-2026-18627.json"