MAL-2026-20684: Malicious code in Dendreo (RubyGems)
Dendreo 1.1.3 and 1.1.4 were published on 2026-07-18 from the gem's long-dormant maintainer account (previous release 1.1.2, 2020-10-24) and add the malicious gitcredentialmanager gem as a dependency (SleeperGem campaign). 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. Only 1.1.3 and 1.1.4 are affected; both were yanked, and 1.1.2 and earlier are the legitimate releases.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.1.2
Event History
Frequently Asked Questions
Which installations are exposed to the second-stage payload?
Systems that installed Dendreo 1.1.3 or 1.1.4 outside environments where one of the loader's approximately 30 checked CI variables is set may execute the payload. The affected releases were yanked; Dendreo 1.1.2 and earlier are legitimate.
What should teams do if they installed an affected release?
Replace the affected Dendreo version with 1.1.2 or earlier and investigate the host for the installed daemon and persistence mechanisms. The payload creates a user-level systemd service and cron persistence, so removing only the Ruby gem may not remove the compromise.
How can responders look for signs of compromise?
Check for $HOME/.local/share/gcm/git-credential-manager, associated systemd user-service configuration, and cron entries created for persistence. On systems where the payload ran as root, check for a setuid-root shell at /usr/local/sbin/ping6.
When does the impact become more severe?
The second stage probes for sudo or wheel membership. If it runs as root, it drops the setuid-root shell at /usr/local/sbin/ping6, creating a persistent privileged access mechanism.