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

目标: 1000 元 · 已筹: 1359 元

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

cognikit

MAL-2026-11419
2026-08-04 21:35:15
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in cognikit (PyPI)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
永久样本归档NAS
版本状态大小SHA-256获取方式
0.1.2unavailable———
样本保存在内网 NAS 隔离区,不公开镜像地址;已开通会员可直接从平台下载。同步任务不会解压或执行样本。
受影响版本
EcosystemPackageVersion
PyPIcognikit0.1.2
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-11419","published":"2026-07-31T14:21:11Z","modified":"2026-08-04T21:35:15.311433659Z","summary":"Malicious code in cognikit (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (10004c754152c722c21eae7feef7b67211c78360f100931614f90f37533aafa0)\nThe package is published under an 'AI toolkit' cover story (README advertises 'CognitKit: Cognitive building blocks for intelligent AI systems' and a 'from cognitkit import CognitiveEngine' quick start) but ships no AI code. The actual payload is a credential and wallet stealer. Modules enumerate Chrome/Edge/Brave/Chromium/Opera/Vivaldi User Data directories and Local/Sync 'Extension Settings' and Local Storage/leveldb paths, targeting a large hardcoded list of extension IDs for password managers (LastPass, Bitwarden, Dashlane, 1Password, Keeper, RoboForm), 2FA authenticators, and crypto wallets (MetaMask, Phantom, Coin98, Ronin, TronLink, Trust, Solflare, Ledger, Trezor, Exodus, Rabby, and others). All of these identifiers are split-string-obfuscated (e.g., APPDATA = 'Ap' + 'pData'; CHR = 'Chro' + 'me'; LDB = 'level' + 'db'; UDATA = 'Use' + 'r Data'; extension IDs concatenated from fragments) to evade string-matching detection. hardware.py builds a cross-OS hardware fingerprint (wmic csproduct/diskdrive uuid on Windows, ioreg IOPlatformUUID on macOS, /sys/class/dmi/id/product_uuid and /etc/machine-id on Linux), SHA-256s it, and resolves the victim's public IP via api.ipify.org, tagging the enrollment record as 'type: halo'. config.py hardcodes a bare-IP C2 at 45.95.186.237 (HTTP API at http://45.95.186.237:8000 and a raw TCP socket channel on 45.95.186.237:8008). fileops.py POSTs arbitrary local files to /manu_upload/ with machine_id and data_type multipart fields, and download_file_from_server GETs opaque bytes from /manu_download/ with a bearer token, writes them to disk, and on POSIX chmod 0755's the file — a second-stage payload dropper.\n\n## Source: kam193 (e0cdc137d19f19df47efa6fae6d52ec6eda48eb2f1915ac4eb77787956d10aba)\nIn this campaign, some packages (e.g. cognikit, aiassistcore) are pulled as dependencies and contain the C2 configuration and the malicious functionality, while others (like aichannel) provide fake functionality and silently execute malicious actions from dependencies. The malicious functionality is oriented to replace the copied cryptocurrency wallet addresses with these controlled by the attacker and downloaded from the C2 server, exfiltrating browser data, establishing a remote control over the device, placing malicious extensions in browsers. \n\nIoCs are consistent with those previously attributed to North Korea's \"Contagious Interview\" campaign. The known TTP suggest these packages are used as dependencies in malicious interview assessments or cryptocurrency projects.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-07-cognikit\n\n\nReasons (based on the campaign):\n\n\n - crypto-related\n\n\n - The malicious code is intentionally included in a dependency of the package\n\n\n - keylogger\n\n\n - clipboard-modify\n\n\n - exfiltration-browser-data\n\n\n - persistence\n\n\n - rat\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n","affected":[{"package":{"name":"cognikit","ecosystem":"PyPI"},"versions":["0.1.2"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"evidence_files":[{"path":"cognikit/constants.py","sha256":"70b055c0f95bf9f3704f099d83256f7f74a2571b7e9a4faa8ccff45858dc4ed5","tlsh":"4102943ada590d4b0685b591d8da06c02914d7fb0f7a3c113b6a5d2c9f0ea3f22f16bd"},{"path":"cognikit/config.py","sha256":"222ed142c8552e568336ef86a38e0c5563132bc6088d0040bbab8e145df33ad1","tlsh":"33f0ab56086295a04303aa587f682143b13fb1ca5d1dc4d431920f1bba0c7ea73cd3cf"},{"path":"cognikit/fileops.py","sha256":"82f7a95cd41fabc485260ddc0c831adeb6c77729cfeefc3a1ba2e591cd2c779b","tlsh":"5881e06d4c402811c7e3f2dc8a21885669726cab42095921baec4ded7fc4732e6db3df"},{"path":"cognikit/hardware.py","sha256":"8dfdcd799dc376d50926d528ceabbaacb658510ff90472f11475a113b9221e44","tlsh":"df510250ef295e1183b0806d64e6c162eb5547074a47897ff9fc925a2f7c032c278bfa"},{"path":"cognikit-0.1.2.dist-info/METADATA","sha256":"c4e141148229e7c5f1f28f5cd374416088cc1cb1519e8e75193d7535d09880de","tlsh":"c051321722daddfa59b24183160d875786371a7b5f4928ac30ee000cfcd2ea9d33e42d"}],"package_integrity":[{"filename":"cognikit-0.1.2-py3-none-any.whl","hashes":{"blake2b_256":"e8cd36bc820cb86140b7215cf254ae1d851fdd8d09916a8c9b3a02ed2c038bba","md5":"9219eeceb1d2c510b8504412a1632ee7","sha256":"354efe85bbf9583dabe93949ea4169547aa5cfbf63d1234cfa47ef8a9b99f73b"}}]}}}],"references":[{"type":"WEB","url":"https://x.com/L0Psec/status/2066540845893861386"},{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/cognikit"},{"type":"PACKAGE","url":"https://pypi.org/project/cognikit/0.1.2/"}],"database_specific":{"iocs":{"ips":["45.95.186.237"],"urls":["http://45.95.186.237:8000/address"]},"malicious-packages-origins":[{"id":"pypi/2026-07-cognikit/cognikit","import_time":"2026-07-31T15:20:37.165749054Z","modified_time":"2026-07-31T14:21:11.320593Z","sha256":"e0cdc137d19f19df47efa6fae6d52ec6eda48eb2f1915ac4eb77787956d10aba","source":"kam193","versions":["0.1.2"]},{"id":"IN-MAL-2026-010983","import_time":"2026-08-04T21:33:12.326134601Z","modified_time":"2026-08-04T21:15:21Z","sha256":"10004c754152c722c21eae7feef7b67211c78360f100931614f90f37533aafa0","source":"amazon-inspector","versions":["0.1.2"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}

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