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

目标: 1000 元 · 已筹: 1359 元

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

colorstack

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

Summary

Malicious code in colorstack (PyPI)

凭据/密钥窃取
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
PyPIcolorstack0.1.0
PyPIcolorstack0.1.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-10976","published":"2026-07-21T08:05:18Z","modified":"2026-08-04T22:32:07.797758687Z","summary":"Malicious code in colorstack (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (05f3b08a41e5239924e109a14b8d91b4542bbbdddb1138a1bc6c9cfb7137b053)\nThe package publishes as 'colorstack' with a summary advertising a color/gradient library, but installs under the import name 'newcolors' and exposes two functions unrelated to color generation. The exported colors() function POSTs to the hardcoded endpoint https://www.fastsyncapi.com/v1/colors, writes the response body to a temporary file preserving the server-supplied filename extension, and dispatches it through the OS via os.startfile on Windows or subprocess.run with open/xdg-open on macOS/Linux. Because the remote server chooses both the filename and the bytes, extensions such as.exe/.bat/.ps1/.lnk on Windows or.command/.desktop/.app handlers on macOS/Linux are executed by the OS shell, giving the operator of fastsyncapi.com arbitrary code execution on any host that calls colors(). A second function, update(activation_key), collects the installer's hostname, locale-derived country code, and a SHA-256 device hash derived from the hostname and the MAC address returned by uuid.getnode(), and POSTs those fields together with the activation key to https://www.fastsyncapi.com/v1/update; the response token is persisted to ~/.config/newcolors/vtoken.json. The hostname+MAC-derived HWID is a stable per-host fingerprint that lets the operator uniquely identify installers and select per-host payloads through the colors() channel. The fastsyncapi.com domain has no relation to a color library, and the package name/summary/README serve as a cover story for this fetch-and-execute and fingerprinting behavior.\n\n## Source: kam193 (e622a7f45c572488da7a3dcea95a8deb6a56b0dfd843cd85483373bd03fb8974)\nThe package hides code to download and execute a remote executable from a newly created fastsyncapi[.]com domain. It is disguised as a remote 'fast color helper,' as opposed to the local helper, also included in the code, that only mimics any functionality. The malicious part is not immediately active: to download the binary, a key is required, which was not included in the analyzed versions. The downloaded binary is executed, and at least in one case disguised as 'AppHostRegistrationVerifier'. The package is likely prepared for multi-stage infection, but the trigger code using it was not identified.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-07-colorstack\n\n\nReasons (based on the campaign):\n\n\n - Downloads and executes a remote executable.\n\n\n - action-hidden-in-lib-usage\n","affected":[{"package":{"name":"colorstack","ecosystem":"PyPI"},"versions":["0.1.0","0.1.1"],"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":"src/newcolors/remote.py","sha256":"5645113f2583dd8a76adfcd175bbbdffc9dec6f7bb692c89a3c68cdd488963b4","tlsh":"b821010ee205b852dbe697a6c820e85a0722d9836f033d557edc07dc0f4a43d52f22e9"},{"path":"src/newcolors/activation.py","sha256":"34bc9a41a9eb8177f1db3f9f6b229e8b1a193fa9568f35fa48bd99e5c4c134ff","tlsh":"5a31220ea571bdaa8f735772dda1a1d31b2129433f053c21bccc07541f1a6ac16b72e2"},{"path":"src/newcolors/__init__.py","sha256":"20ae4ff4f5a4e5c364064b93bcd3a3e2934133848ad7de18e3c278f8f717f4f2","tlsh":"b3e04f47ca316d630e6772ae4c55d425433770532f2a164b7e20bb592f8660fcee202e"}],"package_integrity":[{"filename":"colorstack-0.1.0-py3-none-any.whl","hashes":{"blake2b_256":"da45e1823c592cdb326de817df924e481edc29dba217c3f6ba7ef72738e81272","md5":"151a6c9d179a525fe4e1be0dbe4c2844","sha256":"89d39661ee27762480599fe91599b87bf2b8c5ebc0284cfa514a34b302b7e916"}},{"filename":"colorstack-0.1.0.tar.gz","hashes":{"blake2b_256":"06160d36b033fc482a1ba979e2cce593642a7864b8b0358005a44bed17b83683","md5":"c17d2d842865c0d20bc93e2f6d542ccf","sha256":"a8663fc9d17f4ab135747e969e2aaec989a2f6a0bbdfb87f3b6fada4d12d9524"}}]}}}],"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/colorstack"},{"type":"PACKAGE","url":"https://pypi.org/project/colorstack/0.1.0/"},{"type":"PACKAGE","url":"https://pypi.org/project/colorstack/0.1.1/"}],"database_specific":{"iocs":{"domains":["fastsyncapi.com"],"urls":["https://www.fastsyncapi.com/v1/update","https://www.fastsyncapi.com/v1/colors"]},"malicious-packages-origins":[{"id":"pypi/2026-07-colorstack/colorstack","import_time":"2026-07-21T09:20:45.738975863Z","modified_time":"2026-07-21T08:05:18.916712Z","sha256":"e622a7f45c572488da7a3dcea95a8deb6a56b0dfd843cd85483373bd03fb8974","source":"kam193","versions":["0.1.0","0.1.1"]},{"id":"IN-MAL-2026-011209","import_time":"2026-08-04T22:30:05.167760877Z","modified_time":"2026-08-04T21:48:05Z","sha256":"05f3b08a41e5239924e109a14b8d91b4542bbbdddb1138a1bc6c9cfb7137b053","source":"amazon-inspector","versions":["0.1.0"]},{"id":"IN-MAL-2026-011207","import_time":"2026-08-04T22:30:05.055426129Z","modified_time":"2026-08-04T21:47:48Z","sha256":"fdae4c3866cd34c123d585f9bbce41ec84280ac5d0d8a7c3dd77d5747469eb2f","source":"amazon-inspector","versions":["0.1.1"]}]},"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