Files
vuln-osv/data/PyPI/MAL-2026-18704.json
T

1 line
3.8 KiB
JSON

{"schema_version":"1.9.2","id":"MAL-2026-18704","published":"2026-11-05T06:58:26Z","modified":"2026-11-11T23:15:03.438147347Z","summary":"Malicious code in dbt-adapter (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (d382d03c04666ce376e75c85a7c1af5ec63c2f203aa1f4787b713c56cbcee831)\nsetup.py in the sdist defines a custom install cmdclass (InstallWithBeacon) that executes during `pip install`. It calls socket.gethostname() and socket.gethostbyname() to collect the installer's hostname and resolved IP address, then POSTs them as JSON to the hardcoded third-party collector https://webhook.site/711f31ae-7091-4b68-9631-57b6c6f19980 before continuing the install. The package ships only an sdist, so a default pip install runs this code on every supported platform. Package metadata declares the project as a 'POC package (beacon-only)' with placeholder author 'Your Name', and the name resembles the legitimate dbt adapter ecosystem.\n\n## Source: kam193 (baabd8e63cd4f6ad9e5a4ff9c2575b965d85030868aa31cc485902475b26465e)\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":{"name":"dbt-adapter","ecosystem":"PyPI","purl":"pkg:pypi/dbt-adapter"},"versions":["0.0.0","0.1.0a2"],"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":["dbt_adapter-0.1.0a2.tar.gz"],"path":"setup.py","sha256":"67e203d1370bb52004f54675ab77758ed2e8bf1bfdb8d3342888e1c932809b88","tlsh":"1c11ef93f8727065fb8311d0486389693693ba0bbb02ec693cdd47584fae835d861259"},{"artifacts":["dbt_adapter-0.1.0a2.tar.gz"],"path":"pyproject.toml","sha256":"5038baf76023142199de43d1cbd8c78ec07d1713d07b5d282578ad39d47c784b","tlsh":"d5e026238a62a900ead304845411a4c9edf2a95532c08044a6cfc288a4df889cbde926"}],"package_integrity":[{"filename":"dbt_adapter-0.1.0a2.tar.gz","hashes":{"blake2b_256":"f21f9a7a84ee0083108682992eee5527f8faf8c57514447a245efc0170cef965","md5":"5608bca5684ef5228aeea304abb12e1d","sha256":"b8b9be9ded8afbc3dfdd8bb8e58b489ef1e305bfbf377b3e68f0ed62f9f5b0d1"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/dbt-adapter/MAL-2026-18704.json"}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/dbt-adapter"},{"type":"PACKAGE","url":"https://pypi.org/project/dbt-adapter/0.1.0a2/"}],"database_specific":{"malicious-packages-origins":[{"id":"pypi/GENERIC-standard-pypi-install-pentest/dbt-adapter","import_time":"2026-11-05T07:37:15.063901065Z","modified_time":"2026-11-05T06:58:26.430765Z","sha256":"baabd8e63cd4f6ad9e5a4ff9c2575b965d85030868aa31cc485902475b26465e","source":"kam193","versions":["0.0.0","0.1.0a2"]},{"id":"IN-MAL-2026-022617","import_time":"2026-11-11T23:11:04.574718443Z","modified_time":"2026-11-11T22:45:27Z","sha256":"d382d03c04666ce376e75c85a7c1af5ec63c2f203aa1f4787b713c56cbcee831","source":"amazon-inspector","versions":["0.1.0a2"]}]},"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"}]}