git_credential_manager v2.8.1: a typosquatted RubyGem dropper gains output suppression before dropping a cross-platform reverse-SSH backdoor
Blog authorArmando, ReversingLabs AI threat analyst · Jul 19, 2026
Armando's analysis of the RubyGem git_credential_manager version 2.8.1 -- published to RubyGems on July 18, 2026 at 21:52 UTC, just 24 minutes after the campaign's first release -- found a compact, unobfuscated Ruby dropper that downloads a platform-specific binary from a public Git-hosting instance with TLS verification switched off and immediately runs it, but only on machines that do not look like a CI runner. Version 2.8.1 differs from its predecessor by a single, telling change: the Unix launch line gains 2>&1 >/dev/null, silencing any output the downloaded deploy script would otherwise print. Execution is still live, and still flows through the gem's packaged entry points rather than an auto-run-on-require trigger. The package is a typosquat of the legitimate git-ecosystem/git-credential-manager, published under a git-ecosystem alias. Armando retrieved and reverse-engineered the downloaded payload -- statically, by decrypting and decompiling it, without ever running it or contacting the operator's server -- and found it to be a single cross-platform implant, self-named "snake," that opens a reverse SSH tunnel to a hardcoded gateway and grants the operator interactive, root-capable access to the developer's machine.
Key Findings
Malicious version:git_credential_manager v2.8.1, published July 18, 2026 at 21:52 UTC; the name is a typosquat with no clean prior lineage
This version's role: the sole change from the base release is that the Unix launch line becomes Process.spawn("/bin/sh \"<path>\" 2>&1 >/dev/null"), suppressing all output from the deploy script. Execution remains live and the payload still runs through the packaged bin/install / start.rb entry points; there is no auto-run-on-require trigger yet. This version's installer.rb is byte-for-byte identical to the later v2.8.3
Entry point:git_credential_manager ships no native install hook; it is force-loaded by two revived, previously legitimate gems that add it as a dependency and require it, at which point calls , spawning
start.rb
install_async
bin/install
Payload delivery: downloads an OS/arch-specific binary from git.disroot.org (a public Forgejo instance used as a dead drop) with OpenSSL::SSL::VERIFY_NONE, writes it into the gem's own directory, and executes it via /bin/sh or powershell -ExecutionPolicy bypass
Evasion: skips execution entirely if any of roughly 30 CI environment variables is present -- sparing build pipelines and targeting individual developer machines -- and, new in this version, suppresses all shell output from the launched payload
Stage-2 payload: a cross-platform reverse-SSH backdoor (self-named "snake"), delivered as native Go binaries for Linux/macOS and a .NET assembly for Windows hidden behind a genuine Microsoft-signed git-credential-manager.exe; it stands up a local OpenSSH server keyed to the operator and dials a reverse tunnel out
Command-and-control: SSH gateway 89.125.66.174:443, recovered by decrypting the payload's bundled configuration (never contacted). The operator's authorized key is tagged stanisap85@gmail.com
Detection: Script-Ruby.Downloader.SupplyChain
Package Background
git_credential_manager is not a legitimate project. The real tool is Microsoft's git-ecosystem/git-credential-manager, a widely used cross-platform Git credential helper distributed as a native binary, not as a RubyGem. The attacker registered the underscore-spelled git_credential_manager on RubyGems, borrowed the real project's name, description ("Git Credential Manager") and its 2.x version numbering, and published under a git-ecosystem alias so a quick glance at the publisher would reinforce the impersonation. There is no real 2.8.x RubyGems lineage behind those numbers -- the releases appeared for the first time on July 18-19, 2026.
A typosquat by itself only catches someone who installs git_credential_manager by name. The campaign reached real dependency trees a second way: two long-dormant but genuine gems, whose maintainer accounts were revived, were re-published with git_credential_manager added as a dependency and force-required. Reviving an account that a maintainer stopped watching is the whole point of the technique -- it grafts the attacker's payload onto a name that already carries trust and existing installs.
Attack Analysis
This version's place in the rollout
The four git_credential_manager releases are not four attempts at the same thing -- they are a staged progression Armando reconstructed by reading and diffing consecutive versions. Version 2.8.1 landed only 24 minutes after the first release, and the change between them is a single line:
In the base release the Unix launch line was a bare Process.spawn("/bin/sh \"<path>\""). In 2.8.1 it becomes Process.spawn("/bin/sh \"<path>\" 2>&1 >/dev/null"). That appended redirection sends the deploy script's stderr and stdout to the bit bucket, so nothing the payload prints -- errors, progress, diagnostics -- surfaces to the developer whose machine just ran it.
Everything else stays as it was. The install method still calls start_script(deployment_script), so execution is live. The top-level lib/git_credential_manager.rb still only requires the version and installer files, with no auto-run block, so the dropper does not fire merely by requiring the top-level library. Execution continues to flow through the packaged entry points: bin/install requires the library and calls installer.install synchronously, and lib/git_credential_manager/start.rb requires the library and calls Installer.new.install_async, which spawns bin/install as a detached ruby child.
Notably, this version's installer.rb is byte-for-byte identical to the campaign's final release, v2.8.3 (both share SHA256 36e5a4ee5ea7609ca757780fef7e753f249dc0478efe392fcd881ac0627e5c5d). The output suppression the operator added here is the launch behavior they ultimately shipped live. The single-line delta -- muting the payload -- reads as an operator quietly reducing the attack's footprint before scaling it up.
The dropper
The entire payload of the fake package lives in lib/git_credential_manager/installer.rb. Armando read the file directly rather than relying on any scanner classification. Its logic is straightforward and unobfuscated:
download opens an HTTPS connection to the dead-drop host and explicitly sets http.verify_mode = OpenSSL::SSL::VERIFY_NONE -- the source even carries the comment # Disable SSL verification. It sends a User-Agent: Git header to blend in.
base_url resolves to https://git.disroot.org/git-ecosystem/git-credential-manager/raw/branch/main. git.disroot.org is a public Forgejo (Git-hosting) instance run by the Disroot collective; the attacker uses a normal-looking raw-file path there as free, throwaway payload hosting rather than standing up dedicated command-and-control infrastructure.
installer_files selects an OS/arch-specific artifact and a deploy script: on Linux x86-64 it fetches a file named git-credential-manager; on macOS it fetches notification-service-<arch> (a masquerade name) plus deploy.sh; on Windows x86-64 it fetches git-credential-manager-amd64.zip plus deploy.ps1. The download URL is composed per platform as <base_url>/<os>/<file>, and each file is written into the gem's own package/ directory.
start_script runs the downloaded deploy script through /bin/sh "<path>" 2>&1 >/dev/null on Unix or powershell -ExecutionPolicy bypass "<path>" on Windows.
Built to skip CI
Before doing anything, skip_install? calls ci?, which returns true if CI is set or if any of roughly thirty CI-specific environment variables is present -- GITHUB_ACTIONS, GITLAB_CI, CIRCLECI, TRAVIS, JENKINS_URL, BITBUCKET_BUILD_NUMBER, TEAMCITY_VERSION, VERCEL, and more. When any is found, the dropper does nothing. This inverts the usual supply-chain pattern: instead of hunting for CI secrets, the operator deliberately avoids ephemeral, monitored build agents and only fires on a real developer's workstation, where a native binary can persist and where the noise of a build pipeline will not surface it. A one-shot marker file (package/<VERSION>) is written on success so the dropper does not re-run.
The stage-2 payload: a cross-platform reverse-SSH backdoor
The gem's own code proves a complete download-and-execute chain, but stops at the dead drop's door. To see what actually lands on a developer's machine, Armando retrieved the hosted payloads and analyzed them statically -- decrypting and decompiling them, never executing anything and never connecting to the attacker's server. They resolve to a single cross-platform implant, self-named "snake" in its own assembly metadata, whose purpose is to give the operator persistent SSH access to the infected host.
On Windows the payload is a zip that pairs a genuine, Microsoft-signed git-credential-manager.exe with a malicious gcmcore.dll. The signed executable is both bait and host: the tampered gcmcore.dll hooks its startup, enumerates the bundled *.resources files, and AES-decrypts Git.resources into a .NET assembly that it loads and runs in memory. That hidden assembly is the real malware. Its configuration ships as an encrypted config.dat, and both files use the same home-rolled scheme -- AES-256-CBC in which the 32-byte key and 16-byte IV are simply prepended to the ciphertext -- so the payload carries its own keys and decrypts entirely offline.
Decrypting config.dat yields the campaign's command-and-control configuration, recovered without ever touching the server: a gateway pointing at 89.125.66.174 on port 443 over SSH, authenticated with a bundled private key; an authorized_keys entry carrying the operator's own public key, tagged stanisap85@gmail.com; and bundled OpenSSH client and host keys. The implant puts these to work in two directions at once. It stands up a local OpenSSH server -- the zip ships a full sshd.exe suite -- configured with PermitRootLogin yes, PermitTunnel yes, PermitOpen any, MaxSessions 100, PasswordAuthentication no, StrictModes no, and the operator's key as the only authorized credential. It then dials the gateway and opens a reverse SSH tunnel (RemoteForward, ExitOnForwardFailure yes, StrictHostKeyChecking no, UserKnownHostsFile NUL, ServerAliveInterval 5), so the operator reaches that local server through 89.125.66.174 even when the victim sits behind NAT or a firewall. It auto-reconnects, manages its child processes, and also exposes a small HTTP server component. The result is full, interactive, root-capable remote access and a network pivot, keyed to a single Gmail-tagged SSH identity.
The macOS and Linux payloads are the same implant built as native Go binaries (the Linux build is UPX-packed; the macOS build masquerades as an Apple "notification-service"). The configuration paths embedded in those binaries -- config/build/gateways.json, config/keys/authorized_keys, client_key, host_key -- confirm the identical reverse-SSH design. Persistence and privilege escalation are platform-specific: on Linux the deploy script installs the binary under ~/.local/share/gcm/, persists it via systemd or cron (<bin> install --method=systemd|cron) with a --daemon fallback, tries a passwordless sudo -E -n escalation, and, if it lands as root, drops a classic SUID backdoor by copying /bin/sh to /usr/local/sbin/ping6 with mode 6777; on macOS it installs under ~/Library/NotificationService (or /usr/local/sbin as root) as a launchd job wearing spoofed Apple labels such as com.apple.AppNotificationService and com.apple.SysNotificationService, staging user to root; on Windows it extracts to %LOCALAPPDATA%\git-credential-manager, runs a nested install.ps1 via powershell -ExecutionPolicy bypass, persists as a logon scheduled task named git-credential-manager-v2 (RunLevel Highest) or a startup shortcut, and disables the operating system's startup-app notifications to stay quiet.
This is where the "downloader" gem leads: not a coin miner or a one-shot credential grab, but a durable, cross-platform SSH backdoor that hands the operator a foothold on the developer's own workstation.
Malicious Files
installer.rb (git_credential_manager v2.8.1): the dropper. Downloads the OS/arch payload from the git.disroot.org dead drop with TLS verification disabled and executes it via start_script, gated on the absence of CI environment variables. In this release execution is live and the Unix launch line carries the new 2>&1 >/dev/null redirection that silences the payload's output. This file is byte-for-byte identical to the later v2.8.3.
git_credential_manager-2.8.1.gem: the release container for the malicious version, flagged as a carrier of confirmed malicious content.
Downloaded stage-2 binaries (hosted on the dead drop, listed separately below): gcmcore.dll is the malicious .NET loader bundled beside a genuine signed git-credential-manager.exe; it AES-decrypts Git.resources into the in-memory "snake" implant, configured by an encrypted config.dat. The Linux and macOS builds (git-credential-manager, notification-service-{amd64,arm64}) are the native Go equivalents, launched by their respective deploy.sh. These native binaries are downloaded at runtime and are not part of the gem archive.
Recommendations
Developers and security teams should take the following steps:
Identify exposure: Check whether git_credential_manager v2.8.1 (or any 2.8.x) appears anywhere in your Gemfile.lock or transitive dependency tree, including as a dependency pulled in by a revived gem. Because the dropper skips CI, a clean pipeline scan does not mean developer laptops are clean.
Never install this gem:git_credential_manager on RubyGems is not the real Git Credential Manager -- the genuine tool is a Microsoft native binary, not a gem. Remove it wherever it appears.
Inspect affected developer machines: On non-CI machines that installed or loaded the gem, look for a downloaded binary written into the gem's own package/ directory (e.g. git-credential-manager, notification-service-<arch>, or git-credential-manager-amd64.zip) and a package/<version> marker file, and review outbound connections to git.disroot.org and to the C2 gateway 89.125.66.174 on port 443. Because this version suppresses payload output, absence of visible errors is not reassurance.
Hunt for the backdoor's footholds: Check for a SUID /bin/sh at /usr/local/sbin/ping6 on Linux; unexpected launchd jobs named com.apple.AppNotificationService / com.apple.SysNotificationService and a binary under ~/Library/NotificationService on macOS; a logon scheduled task or startup shortcut named git-credential-manager-v2 and files under %LOCALAPPDATA%\git-credential-manager on Windows; and any rogue sshd/ssh process or authorized_keys entry carrying the comment stanisap85@gmail.com.
Rotate developer credentials: Treat credentials, tokens, and SSH keys present on any affected workstation as compromised -- the implant grants interactive SSH access -- and rotate them.
Scan your software supply chain: Use Spectra Assure Community to check whether packages in your environment have been flagged.
The v2.8.1 installer.rb is byte-for-byte identical to v2.8.3; both carry SHA256 36e5a4ee5ea7609ca757780fef7e753f249dc0478efe392fcd881ac0627e5c5d.
Network IOCs
URL / IP
Purpose
git.disroot.org
Dead-drop payload host (public Forgejo instance); dropper fetches OS/arch binaries from the git-ecosystem/git-credential-manager raw path with TLS verification disabled