{"id":"MAL-2026-2240","summary":"Malicious code in magtape (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (6f476b63043b398a38eb28706575478aab4fb04820ce16d7836e726df21a1a93)\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 (2e742ed739f9400f4529d07a6c69bbae48760e12991d549e3a6d2b14a48d8083)\nThe OpenSSF Package Analysis project identified 'magtape' @ 0.3.0 (pypi) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","modified":"2026-03-27T00:03:19.781937Z","published":"2026-03-26T16:21:03Z","database_specific":{"malicious-packages-origins":[{"id":"pypi/GENERIC-standard-pypi-install-pentest/magtape","import_time":"2026-03-26T17:28:00.847439024Z","modified_time":"2026-03-26T16:50:49.545399Z","sha256":"6f476b63043b398a38eb28706575478aab4fb04820ce16d7836e726df21a1a93","source":"kam193","versions":["0.3.0"]},{"modified_time":"2026-03-26T16:21:03Z","sha256":"2e742ed739f9400f4529d07a6c69bbae48760e12991d549e3a6d2b14a48d8083","source":"ossf-package-analysis","versions":["0.3.0"],"import_time":"2026-03-26T23:44:59.76554613Z"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/magtape"}],"affected":[{"package":{"name":"magtape","ecosystem":"PyPI","purl":"pkg:pypi/magtape"},"versions":["0.3.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/magtape/MAL-2026-2240.json"}}],"schema_version":"1.7.5","credits":[{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}