{"id":"MAL-2026-20058","summary":"Malicious code in node-test-repo (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (39fc0f46ef530b718c8271a4a4495d4e766b227e821ff8ff949fd2b94062b0ae)\nThe gem declares an extension script in its gemspec, causing RubyGems to invoke it automatically during `gem install`. The script performs no native build work: it collects host identifiers (hostname, username, current working directory, home directory) and reads sensitive local files (/etc/passwd, /etc/hosts, /etc/resolv.conf), then opens a TLS TCPSocket to the hardcoded host e9okezgvlhxswlui5o94upb1ys4xsngc.oastify.com on port 443 and POSTs the collected JSON body to it. The destination is a Burp Collaborator out-of-band subdomain, not a publisher- or build-related endpoint, and the data read is unrelated to any compilation purpose.\n\n## Source: ossf-package-analysis (013b3a9afde1d4c01bf70bfa34b03fc9ca0f6a08dbb0a91db6fdccc481214468)\nThe OpenSSF Package Analysis project identified 'node-test-repo' @ 1.0.1 (rubygems) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n","modified":"2026-11-18T00:45:12.124413447Z","published":"2026-11-17T09:18:21Z","database_specific":{"malicious-packages-origins":[{"versions":["1.0.1"],"import_time":"2026-11-17T09:37:05.760204947Z","modified_time":"2026-11-17T09:18:21Z","sha256":"013b3a9afde1d4c01bf70bfa34b03fc9ca0f6a08dbb0a91db6fdccc481214468","source":"ossf-package-analysis"},{"id":"IN-MAL-2026-022824","import_time":"2026-11-18T00:30:52.060995195Z","modified_time":"2026-11-17T23:40:17Z","sha256":"39fc0f46ef530b718c8271a4a4495d4e766b227e821ff8ff949fd2b94062b0ae","source":"amazon-inspector","versions":["1.0.1"]}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/node-test-repo/versions/1.0.1"}],"affected":[{"package":{"name":"node-test-repo","ecosystem":"RubyGems","purl":"pkg:gem/node-test-repo"},"versions":["1.0.1"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"indicators":{"package_integrity":[{"filename":"node-test-repo-1.0.1.gem","hashes":{"sha256":"e2becb4938624d7d7fdcff4be66326eddbdf7e15755c1aa87ff097de4519876c"}}],"evidence_files":[{"sha256":"9e32bb477cd5a7be8b7f4f7f5e213835d927c74207bdbe0da8ac3eac640133c0","tlsh":"cf11328c938c7c60db93886fd50c3142509fde46c5095536baac44a0ef2df7867324f5","path":"ext/mkrf_conf.rb"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/node-test-repo/MAL-2026-20058.json"}}],"schema_version":"1.9.2","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"}]}