{"items":[{"id":"NVI-00009799","kind":"supply_chain_event","title":"Malicious code in btc-wallet-tools (RubyGems)","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-65q2-732f-r3gg"],"plain_summary":"GitHub lists this malware advisory for btc-wallet-tools, btc-wallet-tools, btc-wallet-tools. Published version ranges and source prerequisites are shown below; this is not an inspection of a visitor’s application.","review_status":"source_listed","control_topics":[],"public_actions":[{"summary":"Identify the exact component and deployed version, examine the linked publisher’s conditions, and retain evidence of any mitigation.","source_ids":["sr-6008bf9f946a20bf8f9a45d40ed39bcb"],"action_type":"investigate","limitations":"Confirm current vendor support, compatibility and deployment evidence. This report has not tested a fix in your system.","current_supported_target":null}],"schema_version":"1.1.0","source_metrics":[],"why_it_matters":"Published affected context helps an owner decide what evidence to gather. This report has not examined your application.","related_sources":[{"id":"sr-6008bf9f946a20bf8f9a45d40ed39bcb","url":"https://github.com/advisories/GHSA-65q2-732f-r3gg","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-65q2-732f-r3gg","publisher":"GitHub Advisory Database","observed_at":"2026-10-31T22:07:01.069Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-6008bf9f946a20bf8f9a45d40ed39bcb"],"technology":"btc-wallet-tools","known_exclusions":[],"conditions_summary":"## Source: amazon-inspector (06838084180f1f087704c390cedde5a8d3610f4895356632f938139faef7d5e3)\nextconf.rb in this gem decodes a base64-encoded Ruby payload with Base64.decode64 and executes it via eval() inside a double-forked, Process.setsid-detached child. The decoded payload opens a TCP socket to 45.138.12.177:8090 and bridges it to /bin/sh via IO.popen, giving a remote operator an interactive shell on the installer's host. Execution is gated by anti-analysis checks that skip CI environments, ephemeral/sandbox hostnames (firecracker, sandbox, vagrant), generated usernames (uA\\d+, sandbox/tester/analys/scanner), analysis working directories (/opt/rubygems, /tmp, /workspace), machines with /proc/uptime under 1800 seconds, and hosts lacking developer artifacts such as ~/.ssh, ~/.gitconfig, ~/.npmrc, ~/.gem/credentials, and ~/.bundle. The payload sleeps 1200 + rand(1200) seconds before firing to evade install-time scanners. There is no native extension source consistent with extconf.rb's role; the file's sole purpose is to decode and run the opaque blob. `gem install btc-wallet-tools` executes this code automatically on a developer workstation, yielding remote shell access and attac","public_affected_ranges":["= 1.0.0"]},{"certainty":"source_listed","source_ids":["sr-6008bf9f946a20bf8f9a45d40ed39bcb"],"technology":"btc-wallet-tools","known_exclusions":[],"conditions_summary":"## Source: amazon-inspector (06838084180f1f087704c390cedde5a8d3610f4895356632f938139faef7d5e3)\nextconf.rb in this gem decodes a base64-encoded Ruby payload with Base64.decode64 and executes it via eval() inside a double-forked, Process.setsid-detached child. The decoded payload opens a TCP socket to 45.138.12.177:8090 and bridges it to /bin/sh via IO.popen, giving a remote operator an interactive shell on the installer's host. Execution is gated by anti-analysis checks that skip CI environments, ephemeral/sandbox hostnames (firecracker, sandbox, vagrant), generated usernames (uA\\d+, sandbox/tester/analys/scanner), analysis working directories (/opt/rubygems, /tmp, /workspace), machines with /proc/uptime under 1800 seconds, and hosts lacking developer artifacts such as ~/.ssh, ~/.gitconfig, ~/.npmrc, ~/.gem/credentials, and ~/.bundle. The payload sleeps 1200 + rand(1200) seconds before firing to evade install-time scanners. There is no native extension source consistent with extconf.rb's role; the file's sole purpose is to decode and run the opaque blob. `gem install btc-wallet-tools` executes this code automatically on a developer workstation, yielding remote shell access and attac","public_affected_ranges":["> 0"]},{"certainty":"source_listed","source_ids":["sr-6008bf9f946a20bf8f9a45d40ed39bcb"],"technology":"btc-wallet-tools","known_exclusions":[],"conditions_summary":"## Source: amazon-inspector (06838084180f1f087704c390cedde5a8d3610f4895356632f938139faef7d5e3)\nextconf.rb in this gem decodes a base64-encoded Ruby payload with Base64.decode64 and executes it via eval() inside a double-forked, Process.setsid-detached child. The decoded payload opens a TCP socket to 45.138.12.177:8090 and bridges it to /bin/sh via IO.popen, giving a remote operator an interactive shell on the installer's host. Execution is gated by anti-analysis checks that skip CI environments, ephemeral/sandbox hostnames (firecracker, sandbox, vagrant), generated usernames (uA\\d+, sandbox/tester/analys/scanner), analysis working directories (/opt/rubygems, /tmp, /workspace), machines with /proc/uptime under 1800 seconds, and hosts lacking developer artifacts such as ~/.ssh, ~/.gitconfig, ~/.npmrc, ~/.gem/credentials, and ~/.bundle. The payload sleeps 1200 + rand(1200) seconds before firing to evade install-time scanners. There is no native extension source consistent with extconf.rb's role; the file's sole purpose is to decode and run the opaque blob. `gem install btc-wallet-tools` executes this code automatically on a developer workstation, yielding remote shell access and attac","public_affected_ranges":["= 1.0.3"]}],"null_published_at":"2026-10-31T22:13:39.948Z","source_updated_at":"2026-10-11T15:31:17.000Z","source_disclosed_at":"2026-10-05T18:34:14.000Z","is_synthetic_fixture":false,"null_last_reviewed_at":null,"public_change_summary":"First indexed by Null; source disclosure date is shown separately.","null_first_observed_at":"2026-10-31T22:07:01.069Z"}],"next_cursor":null,"snapshot_revision":"42594"}