← News
/DISPATCH · 2026-07-27

SleeperGem Supply-Chain Attack Exposed: Hijacked Dormant RubyGems Accounts Poison Developer Machines

Attackers hijacked long-dormant RubyGems maintainer accounts, published malicious gems built to bypass CI detection, and installed persistent backdoors on developer machines. The fastlane plugin has 574k+ historical downloads.

Incident Overview

On 18–19 July 2026, researchers identified a coordinated supply-chain attack against the RubyGems ecosystem, named SleeperGem. Attackers hijacked long-dormant RubyGems maintainer accounts and published three malicious gems designed to install persistent backdoors on developer machines while actively avoiding CI/CD pipeline environments.

StepSecurity and Aikido Security independently discovered and reported the attack. Affected packages include git_credential_manager (impersonating Microsoft Git Credential Manager), Dendreo (dormant ~6 years), and the fastlane plugin fastlane-plugin-run_tests_firebase_testlab — the last with 574k+ historical downloads.

Technical Details

Malicious Package Inventory

| Package | Malicious versions | Characteristics | |---|---|---| | git_credential_manager | 2.8.0–2.8.3 | Impersonates Microsoft official tool; import-time trigger from 2.8.2 | | Dendreo | 1.1.3, 1.1.4 | Dormant since 2020; no corresponding GitHub commits | | fastlane-plugin-run_tests_firebase_testlab | 0.3.2 | No corresponding GitHub tag; upstream tags stop at v0.3.1 |

CI Environment Evasion

SleeperGem's most distinctive trait is active CI/CD evasion. Before trigger, the malicious code checks ~30 CI platform environment variables, including GitHub Actions, GitLab CI, CircleCI, Travis, Jenkins, Vercel, and others. Any CI marker causes immediate exit with no malicious behavior.

Tactical intent:

Traditional models that scan dependencies only in CI fail completely against this attack.

Attack Flow and Persistence

After confirming it is running on a developer machine, the malicious gem:

Impact Assessment

SleeperGem's pattern exposes a new supply-chain threat dimension:

Remediation

Emergency Response (if an affected version was installed)

StepSecurity: uninstalling the gem is not sufficient. If an affected version was installed, perform the following cleanup:

Supply-Chain Hardening

References