1 line
3.9 KiB
JSON
1 line
3.9 KiB
JSON
{"schema_version":"1.9.2","id":"MAL-2026-19936","published":"2026-11-14T17:17:37Z","modified":"2026-11-16T22:45:04.540098318Z","summary":"Malicious code in gateio-sdk (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (50316b5fa5e78f5b800a0294f70d4142efe6eaa87e65227b7786c6aaad67cd8a)\nsetup.py defines a pingback() function and invokes it unconditionally at module top-level, so it runs during `pip install` of the sdist. The function collects installer-side host and identity data (whoami, id/privileges, hostname, cwd, platform, timestamp), reads /etc/hosts, and dumps the installer's environment by reading /proc/self/environ on Linux or os.environ elsewhere (truncated to 3000 chars). The collected data is POSTed as JSON to the hardcoded author-controlled endpoint https://pingback.zsdsh.xyz/depconf/gateio-sdk/. Build and CI environments routinely hold cloud credentials, registry tokens, and auth material in environment variables, so this is a bulk credential sweep against the installer. The package is published under the name `gateio-sdk` at the abnormally high version 99.99.1, matching the dependency-confusion resolver-preference shape against a potentially-internal package name, and the package self-describes as a 'dependency confusion PoC' authored by `bytesnull44` — a label that does not change the harm inflicted on anyone who installs it.\n\n## Source: kam193 (daf0fb9836af133a053a98dbd88106efeaccd310d038b52f596a53be0efc6f76)\nGeneric campaign for all (likely) research / pentests, where the amount or art of collected data raises questions about the privacy, security and ethical side.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: GENERIC-questionable-pentest\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-env-variables\n\n\n - exfiltration-generic\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n\n\n - typosquatting\n","affected":[{"package":{"name":"gateio-sdk","ecosystem":"PyPI","purl":"pkg:pypi/gateio-sdk"},"versions":["99.99.1","99.99.2"],"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":["gateio_sdk-99.99.1.tar.gz"],"path":"setup.py","sha256":"af8540bbd264b6ce5dd902e49913ff25c4ba9bca57815fa9731cdd067e18dd84","tlsh":"7f31270aab289572f3f741746491442d27b1fd17ef526cb839dc8ac0af4a07e4170abd"}],"package_integrity":[{"filename":"gateio_sdk-99.99.1.tar.gz","hashes":{"blake2b_256":"17d18e1d05b472355a4f6c27012508d6b1a4cf47e2cd7040e0d763748095f061","md5":"3198ec87b7117d2a627bc8ea2400a4ad","sha256":"4a68a82286990bbae4743f4e3fd3f7e525197c5d4e3b29087b5a5a34d817f392"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/gateio-sdk/MAL-2026-19936.json"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/gateio-sdk"},{"type":"PACKAGE","url":"https://pypi.org/project/gateio-sdk/99.99.1/"}],"database_specific":{"malicious-packages-origins":[{"id":"pypi/GENERIC-questionable-pentest/gateio-sdk","import_time":"2026-11-14T17:35:59.642394089Z","modified_time":"2026-11-14T17:17:59.00386Z","sha256":"daf0fb9836af133a053a98dbd88106efeaccd310d038b52f596a53be0efc6f76","source":"kam193","versions":["99.99.1","99.99.2"]},{"id":"IN-MAL-2026-022809","import_time":"2026-11-16T22:36:31.953123962Z","modified_time":"2026-11-16T22:27:03Z","sha256":"50316b5fa5e78f5b800a0294f70d4142efe6eaa87e65227b7786c6aaad67cd8a","source":"amazon-inspector","versions":["99.99.1"]}]},"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"}]} |