MAL-2026-20685: Malicious code in fastlane-plugin-run_tests_firebase_testlab (RubyGems)
fastlane-plugin-runtestsfirebasetestlab 0.3.2 was published on 2026-07-19 from the gem's long-dormant maintainer account (previous release 0.3.1, 2019-03-04; there is no matching upstream tag) as a loader for the same SleeperGem chain as gitcredentialmanager. 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 0.3.2 is affected; it was yanked, and 0.3.1 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 0.3.1
Event History
Frequently Asked Questions
Which installations are at risk of executing the malicious payload?
Only version 0.3.2 is affected. The loader exits when it detects any of roughly 30 CI environment variables, so developer workstations and other non-CI environments are the primary execution target.
What does exploitation require?
The affected gem must be installed or executed in an environment where its CI-variable checks do not trigger. It then downloads and runs a second-stage payload from a public Forgejo-hosted account, with TLS certificate verification disabled.
What should teams do if they installed version 0.3.2?
Remove 0.3.2 and use version 0.3.1 or an earlier legitimate release. Investigate for $HOME/.local/share/gcm/git-credential-manager, a related systemd user service or cron persistence, and, on systems where the payload ran as root, /usr/local/sbin/ping6.
How can responders assess possible privilege escalation?
The second stage checks sudo or wheel membership and, when run as root, creates a setuid-root shell at /usr/local/sbin/ping6. Finding that file indicates the root-level persistence and privilege-escalation component was deployed.