enkash-pgRubyGems
Advisory published Updated
enkash-pg is a confirmed malicious RubyGems package (MAL-2026-21132) that executes malicious code on install (malicious version 1.0.0). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in enkash-pg (RubyGems)
What this malware does
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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for enkash-pg (version 1.0.0).
If you installed it — respond
Remove enkash-pg from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If enkash-pg was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks enkash-pg-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.