{"id":"MAL-2026-18766","summary":"Malicious code in dynamic-object-handler (RubyGems)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (bb6afd419500201966e8ccb55d2f3c8ea28caae5ec8bfc59a87dcf19ca9d022b)\nThe gem declares mkrf_conf.rb as a native extension in metadata.yaml, causing it to execute automatically during `gem install`. The script collects the installer's current working directory, home directory path, hostname, login name, and the contents of /etc/resolv.conf, /etc/passwd, and /etc/hosts, then opens a TCP+TLS connection to the hardcoded Burp Collaborator subdomain unl0sfubzxb8a18yj4nk85phc8i66wul.oastify.com on port 443 and POSTs the collected data. A DNS resolution of the same oastify.com subdomain is issued first, producing an out-of-band DNS callback that confirms code execution on the installer's host even when outbound TCP/443 is blocked. The oastify.com domain is PortSwigger's OAST (Burp Collaborator) service, used to receive attacker-controlled callbacks; it has no first-party relationship to the gem's advertised purpose.\n","modified":"2026-11-08T10:15:03.336019087Z","published":"2026-11-08T09:39:48Z","database_specific":{"malicious-packages-origins":[{"sha256":"bb6afd419500201966e8ccb55d2f3c8ea28caae5ec8bfc59a87dcf19ca9d022b","source":"amazon-inspector","versions":["1.0.1"],"id":"IN-MAL-2026-022568","import_time":"2026-11-08T10:11:09.235147798Z","modified_time":"2026-11-08T09:39:48Z"}]},"references":[{"type":"PACKAGE","url":"https://rubygems.org/gems/dynamic-object-handler/versions/1.0.1"}],"affected":[{"package":{"name":"dynamic-object-handler","ecosystem":"RubyGems","purl":"pkg:gem/dynamic-object-handler"},"versions":["1.0.1"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/rubygems/dynamic-object-handler/MAL-2026-18766.json","indicators":{"package_integrity":[{"filename":"dynamic-object-handler-1.0.1.gem","hashes":{"sha256":"88e1d605f585b66c0e59cdf9a823508179294c95288b8457be661d1bf3564370"}}],"evidence_files":[{"sha256":"0d376e4b3b70b7c67594d19d093f113081fd90ce680d3c4be6d7fac8177efbd3","tlsh":"b411028893857e60bb5384afe24c7151549bdd4ec6096424ff990ca0ef7db6c63205f6","path":"ext/mkrf_conf.rb"}]}}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}