chore(express): remove leaked test wallet credentials - #9501
Open
rishikeshdadam136 wants to merge 1 commit into
Open
Conversation
Contributor
rishikeshdadam136
force-pushed
the
rishikeshdadam136/wci-1293-remove-leaked-test-wallet-credentials-from-bitgo-express
branch
2 times, most recently
from
August 14, 2026 10:15
9a3e3d2 to
c9d4edb
Compare
rishikeshdadam136
force-pushed
the
rishikeshdadam136/wci-1293-remove-leaked-test-wallet-credentials-from-bitgo-express
branch
from
August 14, 2026 12:31
c9d4edb to
ab3f306
Compare
rishikeshdadam136
marked this pull request as ready for review
August 14, 2026 12:45
rishikeshdadam136
requested review from
kisslove-dewangan,
s84krish and
vibhavgo
August 14, 2026 12:45
davidkaplanbitgo
approved these changes
Aug 14, 2026
s84krish
approved these changes
Aug 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes leaked testnet wallet credentials that had been shipped in the public bitgo/express Docker image (and @bitgo/express npm package) since 2022, and sanitizes the docs/tests that referenced them.
Ticket: https://linear.app/bitgo/issue/WCI-1293/remove-leaked-test-wallet-credentials-from-bitgo-express
Background
An external Bugcrowd researcher flagged that modules/express/encryptedPrivKeys.json — a real (testnet-only) encrypted private key fixture — was checked into this repo and shipped in the published Docker image. The corresponding wallet passphrase (wDX058%c4plL1@pP) was documented in plaintext in EXTERNAL_SIGNER.md, unlocking both wallet IDs referenced there:
Root cause: The file was added in 2022 (PRs #1988, #2069) and the root .dockerignore never excluded it, so COPY --from=builder /tmp/bitgo/modules/express /var/bitgo-express/ in the Dockerfile baked it into every image tag. The same file was also shipped via npm because modules/express/.npmignore didn't exclude it and package.json has no files allowlist.
Scope of exposure: testnet-only, no real funds at risk, originating account already terminated.
Changes
Removals / sanitization
Fixture-file dependency removed from tests
Safety net
Notes on the encryption version
bitgo.encrypt() now defaults to v2 (Argon2id + AES-256-GCM) envelopes. The original hardcoded fixture was v1 (SJCL), and one existing test (externalSign.ts:1270) asserts the encrypted output starts with {"iv":"..." — the v1 envelope shape. To preserve that assertion (and keep the diff scoped to just the credential rotation), the runtime bitgo.encrypt(...) calls in the affected before() hooks explicitly pass encryptionVersion: 1. Updating that assertion / migrating to v2 fixtures is a separate concern.
Verification