{"id":"MAL-2024-12311","summary":"Malicious code in netsec-monitor (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: kam193 (d53ca1631ad5169910977a710485caa2e85f057cba20a5d29bdcaeccda0cf4f9)\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:42:56.099157Z","published":"2024-07-26T16:53:30Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2024-07-26T16:53:30Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"dee950cea93710ccdc2719a614b647f7af3e174e8f6a531c74bb50e30f3eb3f8","source":"kam193","id":"pypi/GENERIC-standard-pypi-install-pentest/netsec-monitor","import_time":"2025-12-02T22:30:56.237502823Z"},{"import_time":"2025-12-02T23:07:19.425137484Z","modified_time":"2024-07-26T16:53:30Z","ranges":[{"events":[{"introduced":"0"}],"type":"ECOSYSTEM"}],"sha256":"d53ca1631ad5169910977a710485caa2e85f057cba20a5d29bdcaeccda0cf4f9","source":"kam193","id":"pypi/GENERIC-standard-pypi-install-pentest/netsec-monitor"},{"sha256":"879334350e72d99e1be96325b332e28a47b6f5092d27520866fbf4bd4f5ad583","source":"kam193","versions":["0.1.5"],"id":"pypi/GENERIC-standard-pypi-install-pentest/netsec-monitor","import_time":"2025-12-10T21:38:58.54206753Z","modified_time":"2024-07-26T16:53:30Z"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/netsec-monitor"}],"affected":[{"package":{"name":"netsec-monitor","ecosystem":"PyPI","purl":"pkg:pypi/netsec-monitor"},"versions":["0.1.5"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/netsec-monitor/MAL-2024-12311.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":"REPORTER"}]}