{"id":"MAL-2025-6897","summary":"Malicious code in swiv (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (945d4a5f54e77ae66588b5b64aa30eb2627903bffcb72a3031b9c4b6b2122b43)\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 (fad45d4a336f26f8dbc2d1815665ebb29cbe469468e4beaa55319945a9d8a755)\nThe OpenSSF Package Analysis project identified 'swiv' @ 4.0.0 (pypi) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","modified":"2025-12-31T02:54:59.119128Z","published":"2025-08-18T03:20:56Z","database_specific":{"malicious-packages-origins":[{"sha256":"1a2fe48d275159bf6ebc366c414d768a03713ed4185ea7084f0f0e5f6fadcfa4","import_time":"2025-08-18T03:34:43.3484817Z","versions":["0.4"],"source":"ossf-package-analysis","modified_time":"2025-08-18T03:20:56Z"},{"sha256":"fad45d4a336f26f8dbc2d1815665ebb29cbe469468e4beaa55319945a9d8a755","import_time":"2025-08-18T04:20:06.143077257Z","versions":["4.0.0"],"source":"ossf-package-analysis","modified_time":"2025-08-18T04:00:55Z"},{"sha256":"ea8e3cad2100ef83e25d127552fdce0c90cc6581d0be3dc259cb2eccc1e5bd65","id":"pypi/GENERIC-standard-pypi-install-pentest/swiv","versions":["4.0.0","0.4","0.3","0.0.1"],"source":"kam193","import_time":"2025-12-02T22:30:56.426660867Z","modified_time":"2025-08-18T16:47:17.18428Z"},{"sha256":"945d4a5f54e77ae66588b5b64aa30eb2627903bffcb72a3031b9c4b6b2122b43","id":"pypi/GENERIC-standard-pypi-install-pentest/swiv","versions":["4.0.0","0.4","0.3","0.0.1"],"source":"kam193","import_time":"2025-12-02T23:07:19.610980797Z","modified_time":"2025-08-18T16:47:17.18428Z"},{"sha256":"34e5aabc93ae05e19c82eabacfef167a7e24faed1a494c54ec4fc5dcb832cae9","id":"pypi/GENERIC-standard-pypi-install-pentest/swiv","versions":["0.0.1","0.3","0.4","4.0.0"],"source":"kam193","import_time":"2025-12-30T22:39:04.352276265Z","modified_time":"2025-08-18T16:47:17.18428Z"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/swiv"}],"affected":[{"package":{"name":"swiv","ecosystem":"PyPI","purl":"pkg:pypi/swiv"},"versions":["0.4","4.0.0","0.3","0.0.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/swiv/MAL-2025-6897.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"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}