目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%
← 返回恶意软件包
PyPI active

nhmpy

MAL-2026-5302
2026-07-09 22:58:24
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in nhmpy (PyPI)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPInhmpy2.4.6
PyPInhmpy2.4.7
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-07-09T22:58:24Z","published":"2026-06-08T07:49:44Z","schema_version":"1.7.4","id":"MAL-2026-5302","summary":"Malicious code in nhmpy (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (34db1950ee9bdf9c75ae9bb2436085bbb443107321d8d7056a0bf3b8fae36978)\nThe package is published as 'nhmpy' on PyPI but its contents are a verbatim copy of NumPy 2.4.6: the same source tree, docstrings, and license files. The distribution metadata falsely identifies the package as authored by 'Travis E. Oliphant et al.' and maintained by 'NumPy Developers <numpy-discussion@python.org>', with Project-URL pointing at https://numpy.org. Internal modules still import from the real 'numpy' namespace (e.g., nhmpy/__init__.py line 788: `from numpy._pytesttester import PytestTester`), so the package masquerades as numpy and depends on numpy being installed alongside it. The current 2.4.6 contents do not execute install scripts, perform network I/O at import, or contain obfuscated code — there is no active exfiltration or RCE payload in this version. However, the name is a one-character edit from 'numpy' (a top-tier PyPI package) and the metadata is deliberately deceptive about authorship, which is the precondition for a future malicious release under the same name. Routing for human review of the name-confusion claim and possible registry takedown.\n\n## Source: kam193 (0b2d6b794431c52ef6b905eb676d70274a792cbca1b266a3405734a7a900860b)\nTyposquatting package published from a compromised account with an obfuscated infostealer. The infostealer is a heavily obfuscated JavaScript code executed using Bun runtime on Python startup. It collectes all kinds of sensitive data, including API keys, credentials to package repositories, cryptocurrency assets, password manager data. Infostealer actively queries online services to collect additional secrets as well as attempts to gain persistence and spread further by publishing infected packages using collected credentials. Data are exfiltrated likely using Github. The code seems to threaten to wipe the user's data if it detects invalid GitHub tokens. Cleanup should be done with caution.\n\nIt seems to be related to the recent Mini Shai Hulud campaign.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-06-compr-woodpecker\n\n\nReasons (based on the campaign):\n\n\n - compromised-package\n\n\n - exfiltration-env-variables\n\n\n - exfiltration-cloud-tokens\n\n\n - exfiltration-credentials\n\n\n - abuses-pth\n\n\n - obfuscation\n\n\n - infostealer\n\n\n - The package contains code to detect if it is running in a sandbox environment.\n\n\n - exfiltration-crypto\n\n\n - files-exfiltration\n\n\n - destructive-actions\n","affected":[{"package":{"ecosystem":"PyPI","name":"nhmpy"},"versions":["2.4.6","2.4.7"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"nhmpy-2.4.6.dist-info/METADATA","sha256":"f774f22b91906e2f4c39fb86f2b822dd5291b8a92b10d726c86d0f00d0eb8c07","tlsh":"3fd196a3acd84df64fc284d22585668ff773955daf859cede0788118a0e1633c27e06a"}],"package_integrity":[{"filename":"nhmpy-2.4.6-cp311-cp311-macosx_10_9_x86_64.whl","hashes":{"blake2b_256":"cf6286bd267bb5b786cc79cef57a307be8d835c065cc83d0142f8f236c479666","md5":"bfd4a701ff5e5aff733e4c5f8f551331","sha256":"7d0441a5e181164b9e57ce50e26cf08bf58a96eb875caa6bd5649472d24e2f45"}}]}}}],"references":[{"type":"WEB","url":"https://socket.dev/blog/mini-shai-hulud-campaign-hits-red-hat-cloud-services-npm-packages"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/nhmpy"},{"type":"WEB","url":"https://socket.dev/blog/shai-hulud-descends-to-hades-miasma-pypi-wave"},{"type":"WEB","url":"https://o3.security/blog/pypi-supply-chain-attack-pth-file-miasma"},{"type":"WEB","url":"https://socket.dev/blog/mini-shai-hulud-miasma-and-hades-worms-target-bioinformatics-and-mcp-developers-via-malicious"},{"type":"PACKAGE","url":"https://pypi.org/project/nhmpy/2.4.6/"},{"type":"PACKAGE","url":"https://pypi.org/project/nhmpy/2.4.7/"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["inspector-research@amazon.com"]},{"name":"Kamil Mańkowski (kam193)","type":"REPORTER","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"]}],"database_specific":{"malicious-packages-origins":[{"source":"kam193","sha256":"0b2d6b794431c52ef6b905eb676d70274a792cbca1b266a3405734a7a900860b","import_time":"2026-06-08T09:42:58.908162957Z","id":"pypi/2026-06-compr-woodpecker/nhmpy","modified_time":"2026-06-08T07:49:44.170351Z","versions":["2.4.6","2.4.7"]},{"source":"kam193","sha256":"46552630879630ea385d7bab5d19a93c2a60a51f708cf4d87e21b96adf375d62","import_time":"2026-06-08T11:41:02.54561319Z","id":"pypi/2026-06-compr-woodpecker/nhmpy","modified_time":"2026-06-08T07:49:44.170351Z","versions":["2.4.6","2.4.7"]},{"source":"kam193","sha256":"6b755498393ceeba0ac2399895a3da0d89133298b98a95ae81b614ca9a90ef8b","import_time":"2026-06-09T07:48:29.658367176Z","id":"pypi/2026-06-compr-woodpecker/nhmpy","modified_time":"2026-06-08T07:49:44.170351Z","versions":["2.4.6","2.4.7"]},{"source":"amazon-inspector","sha256":"34db1950ee9bdf9c75ae9bb2436085bbb443107321d8d7056a0bf3b8fae36978","import_time":"2026-07-08T23:27:55.737877227Z","id":"IN-MAL-2026-008959","modified_time":"2026-07-08T22:58:20Z","versions":["2.4.6"]},{"source":"amazon-inspector","sha256":"91a20062db329c70e9f3377e1c8753113fee3ecd5da6ab16225918a5af7d308d","import_time":"2026-07-09T22:56:28.947982306Z","id":"IN-MAL-2026-009503","modified_time":"2026-07-09T22:04:54Z","versions":["2.4.7"]}]}}

数据来源:OpenSSF Malicious Packages · Apache-2.0