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

目标: 1000 元 · 已筹: 1359 元

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

erc20-approve-audit

MAL-2026-17785
2026-10-13 23:16:34
OpenSSF Malicious Packages
该软件包被识别为恶意包。建议隔离受影响环境,并排查凭据泄露和异常网络连接。

Summary

Malicious code in erc20-approve-audit (RubyGems)

凭据/密钥窃取安装阶段执行文件/数据外传
AI 分析整理qwen3.6
基于上游报告生成,请以下方原始证据为准。
公开使用量数据
统计周期
—
下载量
—
数据源
暂无公开数据
下载量只代表仓库活动度,不等于已被入侵的安装数量。
受影响版本
EcosystemPackageVersion
RubyGemserc20-approve-audit0.9.1
恶意行为说明OpenSSF OSV
上游来源证据
展开原始 OSV JSON
{"schema_version":"1.7.4","id":"MAL-2026-17785","published":"2026-10-11T07:35:30Z","modified":"2026-10-13T23:16:33.658237895Z","summary":"Malicious code in erc20-approve-audit (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (e43c1d294111db5834d006f064d33001b463860783ed8662a5f41a8e7354e4b8)\nThe gem's native extension script, which runs automatically during `gem install`, base64-decodes a Ruby payload and launches it via a double-forked, detached, session-leader background process (setsid, /dev/null reopen, ~20-40 minute delay). The decoded payload opens a TCP socket to the hardcoded bare IP 45.138.12.177:8089 and pipes a local /bin/sh to the socket in an infinite reconnect loop, giving a remote operator full shell control of the installer's host. Execution is gated by anti-analysis checks that suppress the payload inside CI providers (CI, GITHUB_ACTIONS, TRAVIS, JENKINS, GITLAB_CI, CODESPACES), ephemeral/sandbox hosts (uvm, firecracker, sandbox, vagrant), analyst-shaped usernames and working directories (/tmp, /var/tmp, /opt/rubygems, /workspace), and short machine uptimes (<1800s), firing only when developer-signal files are present (~/.ssh, ~/.gitconfig, ~/.gem/credentials, ~/.bundle, ~/.npmrc). The gem's advertised identity does not match its shipped contents: the name is `erc20-approve-audit` but the README and the native makefile target are `bitcoin-rpc-lite` / `bitcoin_rpc_lite_native`, and the Ruby library surface is a two-method stub (`build_id='ok'`, `healthy?=true`) with no functional code.\n\n## Source: ossf-package-analysis (72bf8663ed3f4b92a50b3f9988ce63092fe827b55a65c726eee1f8f61163d890)\nThe OpenSSF Package Analysis project identified 'erc20-approve-audit' @ 0.9.1 (rubygems) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","affected":[{"package":{"name":"erc20-approve-audit","ecosystem":"RubyGems"},"versions":["0.9.1"],"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":"ext/erc20_approve_audit/extconf.rb","sha256":"10218e975f54a4f11fe3954e1b584a5f05054003bf5773c3c2b8cceaa74ba763","tlsh":"9751775acf8359e55aa1c0c045798012faa3ab0a50646875f3ee0868ff59b26c0f12fe"},{"path":"README.md","sha256":"c11ea90465c14afe868c0d0028b54d69fbad390a73ddb7779e88becd2957d8f3","tlsh":"b2c02b409c10f00783b09561bbc0019ba800c0cc9000c30b4874063cc0988518e65419"}]}}}],"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/erc20-approve-audit/versions/0.9.1"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-021355","import_time":"2026-10-11T14:17:58.699850046Z","modified_time":"2026-10-11T13:46:43Z","sha256":"e43c1d294111db5834d006f064d33001b463860783ed8662a5f41a8e7354e4b8","source":"amazon-inspector","versions":["0.9.1"]},{"import_time":"2026-10-13T23:14:38.37938789Z","modified_time":"2026-10-11T07:35:30Z","sha256":"72bf8663ed3f4b92a50b3f9988ce63092fe827b55a65c726eee1f8f61163d890","source":"ossf-package-analysis","versions":["0.9.1"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}

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