{"id":"MAL-2024-12306","summary":"Malicious code in mkdocs-with-pdfs (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (6097342dec4553b4c3b0e2ad2292043de6f2579863ffadd9088c4a058c9a6026)\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":"2025-12-12T20:44:12.722054Z","published":"2024-07-26T16:53:30Z","database_specific":{"malicious-packages-origins":[{"source":"kam193","id":"pypi/GENERIC-standard-pypi-install-pentest/mkdocs-with-pdfs","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"modified_time":"2024-07-26T16:53:30Z","import_time":"2025-12-02T22:30:56.215744613Z","sha256":"76811b11a8276ec524f373874768ab7236c43f0f5f70a2bafc2c3a9ee879f07c"},{"source":"kam193","id":"pypi/GENERIC-standard-pypi-install-pentest/mkdocs-with-pdfs","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"modified_time":"2024-07-26T16:53:30Z","import_time":"2025-12-02T23:07:19.399273306Z","sha256":"6097342dec4553b4c3b0e2ad2292043de6f2579863ffadd9088c4a058c9a6026"},{"source":"kam193","versions":["1.0.0"],"id":"pypi/GENERIC-standard-pypi-install-pentest/mkdocs-with-pdfs","modified_time":"2024-07-26T16:53:30Z","import_time":"2025-12-10T21:38:58.522733326Z","sha256":"59da172b8a3b8f2759f947d6b88301be06ea277502049a18d339747f6e209de9"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/mkdocs-with-pdfs"}],"affected":[{"package":{"name":"mkdocs-with-pdfs","ecosystem":"PyPI","purl":"pkg:pypi/mkdocs-with-pdfs"},"versions":["1.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/mkdocs-with-pdfs/MAL-2024-12306.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":"ANALYST"}]}