{"id":"MAL-2026-21001","summary":"Malicious code in pylithium (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (2f51b14434c08a91567d8fae4e4860edec5d621a7f0d2dcde4dac193b8272d98)\nDependency confusion against https://github.com/teslamotors/liblithium disguised as a simple electrical calculator. During installation, import, and start of the Python process (via PTH file) the package fingerprints the environment and reports to a Sentry endpoint. The collected data seems not to contain any highly sensitive information.\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: 2026-12-pylithium\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 - dependency-confusion\n\n\n - abuses-pth\n\n\n - The package overrides the install command in setup.py to execute malicious code during installation.\n","modified":"2026-12-03T00:45:02.941741321Z","published":"2026-12-02T23:34:30Z","database_specific":{"malicious-packages-origins":[{"source":"kam193","versions":["0.0.1","0.0.2","0.1.0","1.0.1"],"id":"pypi/2026-12-pylithium/pylithium","import_time":"2026-12-03T00:40:21.270822712Z","modified_time":"2026-12-02T23:34:30.048298Z","sha256":"2f51b14434c08a91567d8fae4e4860edec5d621a7f0d2dcde4dac193b8272d98"}],"iocs":{"urls":["https://o4512485209538560.ingest.us.sentry.io/api/4512485213011968/store/"]}},"references":[{"type":"WEB","url":"https://github.com/teslamotors/liblithium/blob/7ab14d2d13fe514df731bfa8bd00e90ec1d29bf1/setup.py#L8"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/pylithium"}],"affected":[{"package":{"name":"pylithium","ecosystem":"PyPI","purl":"pkg:pypi/pylithium"},"versions":["0.0.1","0.0.2","0.1.0","1.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/pylithium/MAL-2026-21001.json"}}],"schema_version":"1.9.2","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}