SleeperGem gems git_credential_manager 2.8.0 to 2.8.3, Dendreo 1.1.3 and 1.1.4, and a fastlane plugin download and run a program.
Attackers took over dormant maintainer accounts on RubyGems and published the releases in July 2026. Researchers say the releases have no matching commit or tag in the source projects.
What happened
Attackers published malicious gem releases to RubyGems.org on 18 July 2026.
- They added
git_credential_manager, a gem that copies the name of a real Git tool, as a dependency of old trusted gems. - When Ruby loads the gem, it starts a child Ruby process that downloads
deploy.shand a native binary over HTTPS. - The code stops if it finds one of about 30 CI environment variables.
- It installs the binary in
$HOME/.local/share/gcm/and adds a systemd user service and a cron entry. - If sudo works, it plants a setuid root shell at
/usr/local/sbin/ping6.
Corgea says the packages were yanked on 19 July 2026.
Affected versions
git_credential_manager2.8.0, 2.8.1, 2.8.2 and 2.8.3.Dendreo1.1.3 and 1.1.4. The last clean release is 1.1.2.fastlane-plugin-run_tests_firebase_testlab0.3.2. The last clean release is 0.3.1.- Other gems that gained
git_credential_manageras a dependency:slackHtmlToMarkdown,seo_optimizerandarray_fast_methods. The sources do not list their bad version numbers, so check any copy that depends ongit_credential_manager.
StepSecurity documents the persistence steps for Linux. Corgea notes that the Windows path uses PowerShell with -ExecutionPolicy bypass.
Indicators of compromise
- Payload host:
git.disroot.org, under the pathgit-ecosystem. - Files:
deploy.shand a native binary named like the tool. - Dropped daemon:
$HOME/.local/share/gcm/git-credential-manager. - Daemon settings:
$HOME/.local/share/gcm/.env. - Setuid root shell with mode 6777:
/usr/local/sbin/ping6. - Systemd user unit
git-credential-managerin~/.config/systemd/user/. - A cron entry that runs the dropped daemon.
How to check
Search every lockfile for the bad versions.
grep -RniE 'git_credential_manager \((2\.8\.[0-3])\)|Dendreo \(1\.1\.[34]\)|run_tests_firebase_testlab \(0\.3\.2\)' --include=Gemfile.lock .
Check the machine for the persistence items.
gem list git_credential_manager ls -l "$HOME/.local/share/gcm" systemctl --user list-unit-files | grep git-credential-manager crontab -l | grep git-credential-manager ls -l /usr/local/sbin/ping6
What to do now
- Remove the bad gem versions and set the gems to a known-good version.
- Stop the
git-credential-managerservice, remove the cron entry and delete~/.local/share/gcm/. - Remove
/usr/local/sbin/ping6if you did not install it. - Treat any machine that ran the code as compromised. Rotate SSH keys, cloud tokens, secrets in environment files and browser-stored credentials.
Frequently asked questions
Does SleeperGem run in CI?
No. The malware stops when it finds a CI variable, so it targets developer machines.
Which other gems gained the dependency?
slackHtmlToMarkdown, seo_optimizer and array_fast_methods. The sources do not list their bad versions.
Does it affect Windows?
Corgea notes that the Windows path uses PowerShell with -ExecutionPolicy bypass.
Sources
Send this page to the person who looks after AI at your company.