git_credential_managerRubyGems
Advisory published Updated
git_credential_manager is a confirmed malicious RubyGems package (MAL-2026-20686) that steals credentials and exfiltrates sensitive data (malicious versions 2.8.0, 2.8.1, 2.8.2…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in git_credential_manager (RubyGems)
What this malware does
git_credential_manager impersonates Microsoft's Git Credential Manager. Versions 2.8.0 to 2.8.3 were published on 2026-07-18 and 2026-07-19 as part of the SleeperGem campaign, and the same gem was added as a dependency to hijacked Dendreo releases. From 2.8.2 the code runs when the library is required, not only at install. The loader exits if any of about 30 CI environment variables is set; otherwise it downloads a second stage from https://git.disroot.org/git-ecosystem/ (an account on a public Forgejo instance) with TLS verification disabled and runs it. The second stage installs a daemon at $HOME/.local/share/gcm/git-credential-manager with systemd user service and cron persistence, probes sudo/wheel membership, and when run as root drops a setuid-root shell at /usr/local/sbin/ping6. Reported by Aikido Security and analyzed by StepSecurity. The gem has been removed from RubyGems.
Malicious versions
Detection & response playbook
Credential / info stealerFind it
Search your lockfiles and build artifacts for git_credential_manager (4 malicious versions).
If you installed it — respond
git_credential_manager is built to steal secrets, so assume every credential the build or runtime could read is compromised. Remove it from your project and lockfile, then rotate ALL exposed secrets — npm/registry tokens, cloud keys, CI/CD secrets, SSH keys, and any .env values — from a known-clean machine. Audit logs for unauthorized use of those credentials.
Did it already run?
If git_credential_manager 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
References
Credits
- Aikido Security · finder
- StepSecurity · analyst
- Patrick Duggan, DugganUSA · reporter
Detect & block this
O3 blocks git_credential_manager-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the credential exfiltration and severs the channel.