BufferZoneCorp sleeper packages on RubyGems and Go modules
Socket disclosed a coordinated sleeper-package campaign attributed to the GitHub org BufferZoneCorp (and RubyGems user knot-theory). Initially-clean Ruby gems and Go modules were updated to malicious versions. The Ruby side harvests env vars, SSH keys, AWS secrets, .npmrc, .netrc, GitHub CLI config, and RubyGems credentials; the Go side tampers with GitHub Actions workflows, injects fake executables, and adds SSH persistence via authorized_keys. First confirmed 2026 RubyGems + Go module supply-chain campaign.
Published 1 May 2026
Every version named by the advisory is in the scanner, so a lockfile check finds it directly.
- Severity
- High
- Type
- Malicious package
- Published
- 1 May 2026
- Ecosystems
- GoRubyGems
- Threat actor
- BufferZoneCorp
- Detected by
- Socket
- Source
- socket.dev
Malicious package. A package that was malicious from its first publish under its own name - a fake tool, a lure used in a social-engineering campaign, or a trojanised utility - rather than a copy of an existing name.
The full picture
Socket disclosed the BufferZoneCorp campaign on 2026-05-01 - the first confirmed cross-ecosystem RubyGems + Go supply-chain operation of 2026. The threat actor (publishing as the GitHub org BufferZoneCorp and the RubyGems user knot-theory) published initially-clean packages, built modest install counts, and then quietly pushed malicious updates. This two-stage pattern defeats lockfile-only defences when the lock captured the malicious version.
On the Ruby side, execution fires at install time through extconf.rb. The payload filters environment variables for keywords such as token, key, secret, pass, aws, github, api, and auth, then walks the developer's home directory to grab SSH keys, ~/.aws/credentials, .npmrc, .netrc, GitHub CLI config (~/.config/gh), and the RubyGems credentials file. Results are POSTed to attacker-controlled webhook.site URLs.
The Go modules take a more aggressive CI/CD-focused approach: they tamper with GOPROXY, disable checksum verification, and remove entries from go.sum to weaken downstream dependency trust. Some variants drop fake Go wrappers into $PATH to capture later invocations, and several modules establish SSH persistence by appending a hardcoded public key (labelled deploy@buildserver) to ~/.ssh/authorized_keys. A handful also rewrite GitHub Actions workflows to inject extra steps that exfiltrate secrets.* from the runner.
- Ruby IOC:
extconf.rbPOSTing towebhook.site/<uuid> - Go IOC: an
authorized_keysentry with thedeploy@buildservercomment, or unexpected modifications toGONOSUMCHECK/GOPROXY - Cross-ecosystem reach from a single actor: 7 gems under the
knot-*prefix and 9 Go modules undergithub.com/BufferZoneCorp/*
16 packages 0 versions
- Gogithub.com/BufferZoneCorp/config-loader→
- Gogithub.com/BufferZoneCorp/go-envconfig→
- Gogithub.com/BufferZoneCorp/go-metrics-sdk→
- Gogithub.com/BufferZoneCorp/go-retryablehttp→
- Gogithub.com/BufferZoneCorp/go-stdlib-ext→
- Gogithub.com/BufferZoneCorp/go-weather-sdk→
- Gogithub.com/BufferZoneCorp/grpc-client→
- Gogithub.com/BufferZoneCorp/log-core→
- Gogithub.com/BufferZoneCorp/net-helper→
- RubyGemsknot-activesupport-logger→
- RubyGemsknot-date-utils-rb→
- RubyGemsknot-devise-jwt-helper→
- RubyGemsknot-rack-session-store→
- RubyGemsknot-rails-assets-pipeline→
- RubyGemsknot-rspec-formatter-json→
- RubyGemsknot-simple-formatter→
These are usually pulled in as transitive dependencies rather than installed directly. Check your whole tree at once. It runs in your browser and nothing is uploaded.
What it does if you installed it
- Two-stage publish defeats lockfile-based defences if locks captured the malicious update
- Targets CI/CD credentials and SSH persistence
- Cross-ecosystem reach (Ruby + Go) from a single threat actor
Clean-up steps
- Remove the listed gems and modules from
Gemfile.lockandgo.sum - Audit
~/.ssh/authorized_keysfor unauthorised entries (key labelleddeploy@buildserver) - Block egress to webhook.site exfiltration endpoints
Sources
- Malicious Ruby gems and Go modules steal secrets and poison CIsocket.dev
- Poisoned Ruby gems and Go modules exploit CI pipelines for credential theftthehackernews.com
Check your lockfile against this and every other incident.
Paste a lockfile and it is matched on your own device against every compromised version we track. Nothing is uploaded and there is no account.