{"id":"MAL-2026-248","summary":"Malicious code in dify-api (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (a40038bb1837e98127f2e267d1932d1eeb641c93e855c50af9aa25002e28c76b)\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\n## Source: ossf-package-analysis (ee611ef320a188caabae79f97fae3f9cea337c16665e15d68f4deb38a2b22868)\nThe OpenSSF Package Analysis project identified 'dify-api' @ 2.0.0 (pypi) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","modified":"2026-01-13T23:25:25.997722Z","published":"2026-01-13T14:21:33Z","database_specific":{"malicious-packages-origins":[{"versions":["2.0.0"],"sha256":"a40038bb1837e98127f2e267d1932d1eeb641c93e855c50af9aa25002e28c76b","modified_time":"2026-01-13T18:07:43.766478Z","id":"pypi/GENERIC-standard-pypi-install-pentest/dify-api","import_time":"2026-01-13T18:45:54.136947232Z","source":"kam193"},{"versions":["2.0.0"],"sha256":"ee611ef320a188caabae79f97fae3f9cea337c16665e15d68f4deb38a2b22868","modified_time":"2026-01-13T14:21:33Z","import_time":"2026-01-13T23:07:22.273767979Z","source":"ossf-package-analysis"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/dify-api"}],"affected":[{"package":{"name":"dify-api","ecosystem":"PyPI","purl":"pkg:pypi/dify-api"},"versions":["2.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/dify-api/MAL-2026-248.json"}}],"schema_version":"1.7.3","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"ANALYST"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}