MAL-2024-12328Malicious code in postgresql-connector-python (PyPI)
| Ecosystem | Package | Version |
|---|---|---|
| PyPI | postgresql-connector-python | 1.0.0 |
{"modified":"2025-12-11T09:27:53Z","published":"2024-07-26T16:53:30Z","schema_version":"1.7.4","id":"MAL-2024-12328","summary":"Malicious code in postgresql-connector-python (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (87f55ac62324b5fc631b711e125f897d8ae10d06a9d80173463d9a5fa1915302)\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":{"ecosystem":"PyPI","name":"postgresql-connector-python"},"versions":["1.0.0"]}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/postgresql-connector-python"}],"credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]},{"name":"Kamil Mańkowski (kam193)","type":"ANALYST","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]}],"database_specific":{"malicious-packages-origins":[{"source":"kam193","sha256":"4847c471468eb2c2e0b8120aa704a619c6d027d2f50ee636f168dc0d9e048059","import_time":"2025-12-02T22:30:56.308347775Z","id":"pypi/GENERIC-standard-pypi-install-pentest/postgresql-connector-python","modified_time":"2024-07-26T16:53:30Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"source":"kam193","sha256":"87f55ac62324b5fc631b711e125f897d8ae10d06a9d80173463d9a5fa1915302","import_time":"2025-12-02T23:07:19.497042776Z","id":"pypi/GENERIC-standard-pypi-install-pentest/postgresql-connector-python","modified_time":"2024-07-26T16:53:30Z","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}]},{"source":"kam193","sha256":"b36366cbc65a0e7a341c06b1bf8866dfe6fb9f9d87d3d1594a0d6093c7bf1ce5","import_time":"2025-12-10T21:38:58.611202435Z","id":"pypi/GENERIC-standard-pypi-install-pentest/postgresql-connector-python","modified_time":"2024-07-26T16:53:30Z","versions":["1.0.0"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0