{"id":"MAL-2026-15931","summary":"Malicious code in metricboxlite (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d5a511a75c8c42dcd677dd3814265d3befefa7f339bdc6b0336788635813e837)\nMetricBoxLite 1.0 collects the installer's username (getpass.getuser) and hostname (socket.gethostname), JSON-encodes them, and POSTs the payload to a hardcoded remote endpoint at https://kznkrxfzy4xgib6ejfh8etegndp3kwguf.oast.invalid/collect. The beacon fires from two independent paths: setup.py calls the reporter at module top level, so it runs during `pip install` of the sdist, and metricboxlite/__init__.py performs the same collect-and-POST at top level, so any `import metricboxlite` also phones home. Network errors are silently swallowed. The destination is an OAST/out-of-band-callback host that is not first-party to the package or its ecosystem, and the collected fields are installer identity rather than package operational data.\n\n## Source: kam193 (83407b9909ebc137e4d47fbb7fe2672a5920dd22bfd7d86ce8edb536bdd5fcab)\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","modified":"2026-09-09T05:30:05.127630169Z","published":"2026-09-04T18:22:18Z","database_specific":{"malicious-packages-origins":[{"sha256":"83407b9909ebc137e4d47fbb7fe2672a5920dd22bfd7d86ce8edb536bdd5fcab","source":"kam193","versions":["1.0","2.0"],"id":"pypi/GENERIC-standard-pypi-install-pentest/metricboxlite","import_time":"2026-09-04T18:41:15.871339765Z","modified_time":"2026-09-04T18:22:18.309882Z"},{"source":"amazon-inspector","versions":["2.0"],"id":"IN-MAL-2026-019651","import_time":"2026-09-08T18:43:43.716157344Z","modified_time":"2026-09-08T18:42:45Z","sha256":"b071475bfddef4e7b1637eba0ff65de0aa7841ac460bcca6a1892d349a38c073"},{"import_time":"2026-09-09T05:18:18.21797359Z","modified_time":"2026-09-09T05:03:02Z","sha256":"d5a511a75c8c42dcd677dd3814265d3befefa7f339bdc6b0336788635813e837","source":"amazon-inspector","versions":["1.0"],"id":"IN-MAL-2026-019838"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/metricboxlite"},{"type":"PACKAGE","url":"https://pypi.org/project/MetricBoxLite/2.0/"},{"type":"PACKAGE","url":"https://pypi.org/project/MetricBoxLite/1.0/"}],"affected":[{"package":{"name":"metricboxlite","ecosystem":"PyPI","purl":"pkg:pypi/metricboxlite"},"versions":["1.0","2.0"],"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."}],"indicators":{"evidence_files":[{"tlsh":"d301d397d8125c73e9cb90d49ca439b53221b5037d41a8957adc13185fc55fed0b1968","path":"setup.py","sha256":"b8f43ca9f750e1a8f1235e5f9cf05aee7aeaff1baa4cdefd815a95e32f97f147"},{"path":"metricboxlite/__init__.py","sha256":"23da2832a60d85ae7e769843296c3139207b62f6345e8d8575aacfa0ba5acd4b","tlsh":"ad01c0cbfc525813d6cf505894b5c17472193d07680968b9bcec53555f808bae1b05ac"}],"package_integrity":[{"filename":"metricboxlite-2.0.0.0-py3-none-any.whl","hashes":{"blake2b_256":"64fb690e0dd0ba0ca5c044b7399efd66db3b55ec82782efd2dab282e4e12af29","md5":"bcf5440f865561056c2e008a665dcab8","sha256":"33a7b77623395e6acc13f44b4e8bcaba8b6793b3b4948bd83000ad4556196c83"}},{"filename":"metricboxlite-2.0.tar.gz","hashes":{"blake2b_256":"87278ca22f34cb4889cbd98c1fa49741e64303d4197503644a163b0a9d58fc72","md5":"21561431ff0b9cf816baa11cd136a3e4","sha256":"152a42627f9d3978d566acdcad761358bb80bbac85cfb5ab2cb812c5988f067d"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/metricboxlite/MAL-2026-15931.json"}}],"schema_version":"1.9.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"}]}