MAL-2026-20686: Malicious code in git_credential_manager (RubyGems)

Published Nov 25, 2026
·
Updated

gitcredentialmanager 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.

Affected Software

1 affected component
rubygems/git_credential_manager*

Event History

Nov 25, 2026
Advisory Published
via OSV·12:00 AM
Data Sourced
via OSV·12:00 AM
DescriptionAffected Software

Frequently Asked Questions

1

Which deployments are most likely to have executed the malicious payload?

Versions 2.8.2 and 2.8.3 execute code when the library is required, so applications or dependencies that load the gem may trigger it without installing it at that moment. The loader exits when it detects any of roughly 30 CI environment variables, making non-CI developer and production environments the primary concern.

2

What access and network conditions does exploitation require?

The malicious loader attempts to download a second-stage payload from git.disroot.org and runs it, with TLS certificate verification disabled. A host that required the gem and could reach that service may have executed the second stage.

3

How can I check a host for compromise?

Inspect for $HOME/.local/share/gcm/git-credential-manager, a corresponding systemd user service, and cron persistence. Also check for /usr/local/sbin/ping6, which the second stage drops as a setuid-root shell when it runs as root.

4

What should I do if the affected gem was present?

Treat systems that loaded versions 2.8.2 or 2.8.3 outside CI as potentially compromised and investigate for the listed persistence artifacts. Remove the malicious gem and any identified daemon, user service, cron entries, and /usr/local/sbin/ping6; hosts with the setuid-root shell require heightened review because the payload ran with root privileges.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203