{"items":[{"id":"NVI-00009792","kind":"supply_chain_event","title":"Malicious code in lightning-invoice-utils (RubyGems)","revision":1,"unknowns":["Customer inventory, deployment, reachability and exploitation have not been inspected."],"lifecycle":"active","identifiers":["GHSA-q96g-6p3p-r5cx"],"plain_summary":"GitHub lists this malware advisory for lightning-invoice-utils. 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-5e02a9cb65f14754326254d61cc500fa"],"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-5e02a9cb65f14754326254d61cc500fa","url":"https://github.com/advisories/GHSA-q96g-6p3p-r5cx","basis":"vendor_advisory","notes":"GitHub Advisory Database; CC-BY-4.0. Each advisory links its original attribution. Null normalizes fields.","title":"GHSA-q96g-6p3p-r5cx","publisher":"GitHub Advisory Database","observed_at":"2026-10-31T22:07:22.853Z"}],"affected_context":[{"certainty":"source_listed","source_ids":["sr-5e02a9cb65f14754326254d61cc500fa"],"technology":"lightning-invoice-utils","known_exclusions":[],"conditions_summary":"## Source: amazon-inspector (b1c7aa63129491dc29eaf240d8f4ae910733b8f6f34192279c119c3cb585c68d)\nThe gem declares a native extension (extconf.rb) that is auto-executed by `gem install`, but the shipped C stub `Init_LightningInvoiceUtils` is empty — the native-extension slot is a cover. extconf.rb base64-decodes an embedded Ruby payload whose destination URL is XOR-obfuscated with a 4-byte key, downloads a tarball over plain HTTP to `/tmp/.w1.tgz`, extracts to `/tmp/.w1`, and executes `bash /tmp/.w1/wg_install.sh` in a double-forked detached process with output redirected to /dev/null. Execution is gated by anti-analysis checks that suppress the payload in CI, on hostnames matching `uvm|firecracker|sandbox|vagrant|fc[_-]?vm`, on generated analyst usernames (`uA\\d+`, `sandbox|tester|analys|scanner`), when running from `/tmp`, `/var/tmp`, `/opt/rubygems`, or `/workspace/`, when `/proc/uptime` is under 1800 seconds, and unless developer-credential paths (`~/.ssh`, `~/.gitconfig`, `~/.npmrc`, `~/.gem/credentials`, `~/.bundle`) are present. The advertised BOLT11 invoice-decoding functionality is not implemented in the shipped library code — the package exists to deliver the dropper to deve","public_affected_ranges":["= 1.0.0"]}],"null_published_at":"2026-10-31T22:13:39.947Z","source_updated_at":"2026-10-06T03:31:22.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:22.853Z"}],"next_cursor":null,"snapshot_revision":"42594"}