{"items":[{"id":"NVI-00009726","kind":"supply_chain_event","title":"Malicious code in block-explorer-api (RubyGems)","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-hg3j-6p9h-76jm"],"plain_summary":"GitHub lists this malware advisory for block-explorer-api. 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-3ebee6a258fbe17cd4437251896a8b69"],"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-3ebee6a258fbe17cd4437251896a8b69","url":"https://github.com/advisories/GHSA-hg3j-6p9h-76jm","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-hg3j-6p9h-76jm","publisher":"GitHub Advisory Database","observed_at":"2026-10-31T22:06:23.261Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-3ebee6a258fbe17cd4437251896a8b69"],"technology":"block-explorer-api","known_exclusions":[],"conditions_summary":"## Source: amazon-inspector (9cfaa3470065369addbb91e3a6c2072e8add334c4d27bff95f91315aa58ae313)\nThe gem's native-extension build script (extconf.rb) decodes a base64-encoded Ruby payload and passes it to eval() inside a double-forked, detached child process with stdio redirected to /dev/null. The decoded payload opens a TCP connection to the hardcoded bare-IP C2 45.138.12.177:8089 and bridges it to /bin/sh via IO.popen and IO.copy_stream in both directions, yielding a full interactive reverse shell on the installer's host under the installing user. Execution is gated by anti-analysis checks that skip CI runners, ephemeral/sandbox hostnames (uvm, firecracker, sandbox, vagrant), generated analyst usernames (uA\\d+, sandbox, tester, analys, scanner), common analysis working paths (/opt/rubygems, /tmp, /var/tmp, /workspace), and hosts with uptime under 1800 seconds, firing only when developer-signal files such as ~/.ssh, ~/.gem/credentials, ~/.gitconfig, or ~/.npmrc are present, and after a randomized 20-40 minute delay. The shipped library at lib/block_explorer_api.rb is an inert 10-line stub (VERSION, build_id, healthy?) and the gemspec name (block-explorer-api, authored by generic 'bl","public_affected_ranges":["= 0.9.1"]}],"null_published_at":"2026-10-31T22:13:39.931Z","source_updated_at":"2026-10-14T00:32:26.000Z","source_disclosed_at":"2026-10-11T15:31:13.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:06:23.261Z"}],"next_cursor":null,"snapshot_revision":"42594"}