Files
vuln-osv/data/PyPI/MAL-2026-18627.json
T

1 line
3.9 KiB
JSON

{"schema_version":"1.9.2","id":"MAL-2026-18627","published":"2026-11-04T16:11:42Z","modified":"2026-11-12T00:45:06.780823829Z","summary":"Malicious code in msgpackrpc (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (55c4f419c883d30c0099a7120b0456d975af824e08310e0750166d074def3204)\nThe 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.\n\n## Source: kam193 (9747a902bd61a745ec9c8f569f57417303f828b441c3e4e8c95101adf1498d13)\nInstalling the package or importing the module exfiltrates basic information about the host, and the package has no other purpose.\n\n\n---\n\nCategory: 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.\n\n\nCampaign: GENERIC-standard-pypi-install-pentest\n\n\nReasons (based on the campaign):\n\n\n - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n","affected":[{"package":{"name":"msgpackrpc","ecosystem":"PyPI","purl":"pkg:pypi/msgpackrpc"},"versions":["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"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/msgpackrpc"},{"type":"PACKAGE","url":"https://pypi.org/project/msgpackrpc/0.1.0/"}],"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"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}