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

目标: 1000 元 · 已筹: 1359 元

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

@redhat-cloud-services/eslint-config-redhat-cloud-services

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

Summary

Malicious code in @redhat-cloud-services/eslint-config-redhat-cloud-services (npm)

凭据/密钥窃取文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
last-week
下载量
4,415
数据源
npmjs.org
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
npm@redhat-cloud-services/eslint-config-redhat-cloud-services3.2.1
npm@redhat-cloud-services/eslint-config-redhat-cloud-services3.2.2
npm@redhat-cloud-services/eslint-config-redhat-cloud-services3.2.4
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"modified":"2026-06-02T01:03:07Z","published":"2026-06-01T00:00:00Z","schema_version":"1.7.4","id":"MAL-2026-5112","aliases":["GHSA-c3mv-fjj4-2542"],"summary":"Malicious code in @redhat-cloud-services/eslint-config-redhat-cloud-services (npm)","details":"Part of the \"Mini Shai-Hulud\" supply chain worm campaign that compromised the GitHub Actions OIDC trusted publisher shared by Red Hat Cloud Services npm packages. The attacker injected a `preinstall` hook into this and 31 other packages in the `@redhat-cloud-services` scope. The hook delivers a three-layer obfuscated payload (ROT-9 Caesar cipher over a 1.27M-entry character-code array -> AES-128-GCM decryption with hardcoded keys -> stacked obfuscator.io encoding with PBKDF2+SHA-256 keystream S-box substitution) that downloads a pinned Bun runtime (v1.3.13) from GitHub to execute the worm outside the victim's Node installation.\n\n**Credential theft:** Harvests AWS credentials (IMDS, ECS, Secrets Manager, SSM), Azure managed identities, GCP service account tokens, HashiCorp Vault tokens, Kubernetes service account tokens (`/var/run/secrets/kubernetes.io/serviceaccount/token`), GitHub PATs, npm publish tokens, environment variables from ~40 CI platforms (CircleCI, Travis CI, Jenkins, and others), password manager stores (Bitwarden, gopass), and local files (`~/.npmrc`, `~/.netrc`, shell history, database history). Collected data is exfiltrated to attacker-controlled public GitHub repositories.\n\n**Privilege escalation:** Exploits Docker socket access to escape containers and modify `/etc/sudoers.d`, granting passwordless sudo to CI runner user accounts.\n\n**Self-propagation:** Uses stolen npm credentials to republish tampered tarballs of target packages. Injects a malicious CodeQL workflow into accessible GitHub repositories via the GraphQL `createCommitOnBranch` mutation, exchanges GitHub Actions OIDC tokens for npm publish tokens, and signs the resulting artifacts through Sigstore (Fulcio/Rekor) to appear legitimate.\n\n**Persistence and evasion:** Installs a daemon at `/tmp/kitty-<random>`, hijacks `.claude/settings.json` for AI agent persistence, and hijacks `.vscode/tasks.json` for editor task execution. Detects sandbox environments via `__FAKE_PLATFORM__`, `TESTING_TAR_FAKE_PLATFORM__`, and `__IS_DAEMON` environment variables, and probes for EDR tools (CrowdStrike, SentinelOne, Carbon Black, StepSecurity Harden-Runner).\n\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: ghsa-malware (4ea9540b87eab0b09669b80901a9c1d7c19f496d2089111a21fe192bab3472a8)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n","affected":[{"package":{"ecosystem":"npm","name":"@redhat-cloud-services/eslint-config-redhat-cloud-services"},"versions":["3.2.1","3.2.2","3.2.4"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}]}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-c3mv-fjj4-2542"},{"type":"REPORT","url":"https://safedep.io/redhat-cloud-services-hit-by-mini-shai-hulud-npm-worm/"}],"credits":[{"name":"SafeDep","type":"FINDER","contact":["https://safedep.io"]}],"database_specific":{"malicious-packages-origins":[{"source":"ghsa-malware","sha256":"4ea9540b87eab0b09669b80901a9c1d7c19f496d2089111a21fe192bab3472a8","import_time":"2026-06-01T14:22:55.198563397Z","id":"GHSA-c3mv-fjj4-2542","modified_time":"2026-06-01T12:17:53Z","versions":["3.2.1"]}]}}

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