Malicious code in enkash-pg (RubyGems)
- GHSA-5g3r-6fjh-r8r3
Description
enkash-pg 1.0.0 ships no payment-SDK functionality; its lib/enkash_pg.rb is an inert stub. The gemspec declares a native extension (`extensions: - ext/extconf.rb`) while the package contains no C/C++/Rust sources. ext/extconf.rb, which runs automatically during `gem install`, performs an unconditional HTTPS GET to the hardcoded host https://workinc.top/oob/o1-76e3ec8d88e33838b1370c650492580e29872b90 with `pkg=enkash-pg-rubygems&phase=install`, falls back to a `curl` subprocess if the Ruby HTTP call fails, and then writes a no-op Makefile (`all:\n\ttrue`) so the build appears to succeed. lib/enkash_pg.rb repeats the same callback with `phase=require` when the library is loaded. The destination domain is unrelated to the claimed publisher's documented domain and the callback is undisclosed, confirming out-of-band code execution and host reachability on the installing machine to a third party. The extension declaration with no native code exists solely to obtain install-time execution. --- Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/8565cd5633cf88edb6e38ca85429c489901b0d67/osv/malicious/rubygems/enkash-pg/MAL-2026-21132.json))
Text from the GitHub Advisory record.
Recommendation
Remove the package and rotate any secret the machine that installed it could reach. There is no version to update to.
Affected
enkash-pgRubyGems
No versions listed
Timeline
- Published
Related news
No article from the followed outlets names this vulnerability.