BufferZoneCorp sleeper packages on RubyGems and Go modules

HighMalicious packageGoRubyGems

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

At a glancemulti-2026-05-01-bufferzonecorp-rubygems-go
16
Packages tracked0 malicious versions

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

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.

What happened

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.rb POSTing to webhook.site/<uuid>
  • Go IOC: an authorized_keys entry with the deploy@buildserver comment, or unexpected modifications to GONOSUMCHECK/GOPROXY
  • Cross-ecosystem reach from a single actor: 7 gems under the knot-* prefix and 9 Go modules under github.com/BufferZoneCorp/*
credential-theftci-cd-compromisemaintainer-takeoverobfuscation
Affected packages

16 packages 0 versions

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.

Impact

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
What to do

Clean-up steps

  1. Remove the listed gems and modules from Gemfile.lock and go.sum
  2. Audit ~/.ssh/authorized_keys for unauthorised entries (key labelled deploy@buildserver)
  3. Block egress to webhook.site exfiltration endpoints
References

Sources

multi-2026-05-01-bufferzonecorp-rubygems-goBack to incidentsSubmit a correction
Am I affected?

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.