{"id":"MAL-2025-3742","summary":"Malicious code in document-inference (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (0519099776ddb5cbd1778fa5f043a1cad34d94d5116ae895120aba38608e7eb0)\nPackages that seem to be created by a legit bug bounty hunter. Designed to look like created by different organisations, they contain a couple of data exfiltration (including all env variables) and potential remote code execution (though the URL seems not to serve any code).\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2025-05-sl4x01\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 - exfiltration-env-variables\n\n\n - impersonation\n\n## Source: ossf-package-analysis (4dbb3f4bab26a0095d969efb7bd23845a0ab5683269ccb37f98fcaf285d845d3)\nThe OpenSSF Package Analysis project identified 'document-inference' @ 0.0.2 (pypi) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","modified":"2025-12-31T02:53:25.910285Z","published":"2025-05-10T11:05:49Z","database_specific":{"iocs":{"domains":["sl4x0.xyz"]},"malicious-packages-origins":[{"source":"ossf-package-analysis","versions":["0.0.2"],"import_time":"2025-05-12T00:25:55.037942201Z","sha256":"4dbb3f4bab26a0095d969efb7bd23845a0ab5683269ccb37f98fcaf285d845d3","modified_time":"2025-05-10T11:05:49Z"},{"source":"reversing-labs","id":"RLMA-2025-02569","versions":["0.0.0","0.0.1","0.0.2"],"import_time":"2025-05-22T14:06:35.291201991Z","sha256":"19d942f1e9c7601342053fa29d7c79572f7f4062c66779427b5dc1fc3bd1d7f0","modified_time":"2025-05-22T12:33:31Z"},{"source":"kam193","id":"pypi/2025-05-sl4x01/document-inference","import_time":"2025-12-02T22:30:55.112081961Z","sha256":"7f6121ccf7ad568310d096f3dfe660590ca61be0024897b1d6ba4e148fd93b5b","modified_time":"2025-05-10T17:59:53Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}]},{"source":"kam193","id":"pypi/2025-05-sl4x01/document-inference","import_time":"2025-12-02T23:07:18.123681553Z","sha256":"0519099776ddb5cbd1778fa5f043a1cad34d94d5116ae895120aba38608e7eb0","modified_time":"2025-05-10T17:59:53Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}]},{"source":"kam193","id":"pypi/2025-05-sl4x01/document-inference","versions":["0.0.1","0.0.0","0.0.2"],"import_time":"2025-12-10T21:38:57.40850188Z","sha256":"eb38a693e9340cfa5d8cc982cae8ad6d198923e93393eb3b3ba0f143c1bf9fda","modified_time":"2025-05-10T17:59:53Z"},{"source":"kam193","id":"pypi/2025-05-sl4x01/document-inference","versions":["0.0.0","0.0.1","0.0.2"],"import_time":"2025-12-30T22:39:04.075609566Z","sha256":"fb77820b216161bb5e8b3ebd30be5a9c58cd0a1c888302c4cffe9f67f129d983","modified_time":"2025-05-10T17:59:53Z"}]},"references":[{"type":"WEB","url":"https://github.com/sl4x0"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/document-inference"}],"affected":[{"package":{"name":"document-inference","ecosystem":"PyPI","purl":"pkg:pypi/document-inference"},"versions":["0.0.2","0.0.0","0.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/document-inference/MAL-2025-3742.json"}}],"schema_version":"1.7.3","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"},{"name":"ReversingLabs","contact":["https://www.reversinglabs.com"],"type":"FINDER"}]}