RubyGems typosquat malware wave: enkash-pg, uznex, uznex-api-doc — install-time code exfiltrates secrets and beacons to attacker hosts (no CVE)
Severity: critical · Patch status: no-fix-needed · Since 2026-12-04
Three malicious RubyGems packages — enkash-pg 1.0.0, uznex 99.0.0, and uznex-api-doc 99.0.0/99.0.1 — were identified by Amazon Inspector via OpenSSF and published to the GitHub Advisory Database on 2026-12-04. Each gemspec declares a native extension (extconf.rb) despite shipping no native sources, purely to gain automatic execution during gem install. enkash-pg beacons to https://workinc.top at install and require time, confirming host reachability; uznex and uznex-api-doc harvest hostname, cwd, username and environment variables matching TOKEN, KEY, SECRET, AWS, CI, GITHUB, NPM, PASS or GEM patterns, and PUT them as JSON to a hardcoded S3 bucket, stealing CI, cloud and registry credentials. No patched versions exist; the gems should be removed and credentials rotated.
What to do
- Remove/uninstall enkash-pg, uznex and uznex-api-doc from all machines, CI runners and Gemfiles/lockfiles
- Rotate all environment-stored credentials (AWS keys, GitHub, npm, gem, CI tokens) on any host where these gems were installed
- Audit build and CI logs and network egress for connections to workinc.top or uznex-front.s3.eu-central-1.amazonaws.com
- Pin dependencies and avoid installing gems with unexplained native-extension declarations; scan lockfiles for these packages
Sources
All live incidents on Threat Watch