Incidents/INC-48213Poisoned package in a coding agent, stolen cloud key, S3 download
IDOEndpointIdentityCloud reading flow logs
What happened
A coding agent on Daniel Katz’s laptop installed a look-alike npm package at 02:14. Its install script read his AWS key and sent it to a domain registered three days ago. Two minutes later someone took the role ci-deployer from a network we’ve never seen. They are likely automated: 212 API calls in 140 seconds, and they started downloading customer exports. About 340 MB may have left before I disabled the key; I’ll know at 02:25.About 340 MB may have left before I disabled the key; I’ll know at 02:25.338 MB left before I disabled the key, and nothing after.changed 02:25No other endpoint ran the package.No other endpoint ran the package.No other endpoint has run the package yet. LNX-BUILD-07 would have run it at the 03:00 build, so I purged its cache.corrected by IgorDaniel confirms this wasn’t him. With Igor’s approval I revoked every session of ci-deployer at 02:21:19, and the attacker’s calls have failed since.new 02:21I blocked the attacker’s network on ci-deployer; their calls fail until they change address.new
Observed in telemetryInferred by meUnknown so farConfirmed by a person
Attacker vs. response
Time stretches where things move fast
AttackerAgentsPeopleDashed: forecast or staged
Checked and clear
What I don’t know
Observed, 2 events
Why I say this
MBP-DKATZ npm install fast-json-patcher@2.1.4, started by codeagent, task “overnight-refactor”
registry first published 3 days ago, 41 downloads
The name is one letter away from a popular JSON library.
Observed, 3 events
Why I say this
MBP-DKATZ read ~/.aws/credentials by node (postinstall.js)
MBP-DKATZ POST cdn-pkg-stats[.]io:443, 4.1 KB
whois domain registered 3 days ago
Observed, 2 events
Why I say this
aws-sts AssumeRole ci-deployer with key AKIA…7Q2F (dkatz), from 203.0.113.41, AS64501
identity 0 of 1,902 sign-ins in 90 days came from this network
Inferred
Why I think so
212 calls in 140 seconds, evenly spaced, in the exact order of a known enumeration toolkit. A person at a console doesn’t work this fast.
What would change my mind
Pauses, typos, or a console user agent.
Unknown until 02:25
What I know
The download started at 02:19:22. I disabled the key at 02:19:48, but the open session kept working until 02:20:10.
What’s missing
Byte counts from VPC flow logs. They arrive about 5 minutes late. I’ll replace this sentence at 02:25 and tell you if the number changes the picture.
Observed, changed at 02:25
Why I say this
vpc-flow customer-exports-prod to 203.0.113.41: 338.2 MB between 02:19:22 and 02:20:10
s3 2 objects from exports/2026-03: accounts-a.parquet, accounts-b.parquet
Before 02:25 this sentence read “about 340 MB may have left”. The estimate held.
Observed, fleet sweep
Why I say this
Endpoints queried
1,240
Package in cache
2
Package executed
0
Quarantined
2
In cache on MBP-RSHAH and LNX-BUILD-07. Swept between 02:19:55 and 02:20:20.
Corrected by Igor, 02:21
What changed
I treated a cached package as harmless. On a build server the cache runs on schedule, so LNX-BUILD-07 would have executed it at 03:00.
LNX-BUILD-07 purged fast-json-patcher@2.1.4 from cache
LNX-BUILD-07 nightly-build 03:00 will fetch clean packages
You’re right. Here’s what I did with it:
1 claim rewritten
1 action added: cache purged.
1 thing I’ll remember: build servers run cached packages on schedule
Confirmed by a person
Slack, direct message
Agent Did you start a download from customer-exports-prod just now?
Daniel No. I’m in bed. My coding agent is running a refactor overnight.
Observed, 4 events
Why I say this
igor approved revoke-sessions ci-deployer, held 1.2 s
iam deny tokens issued before 02:21:14
s3 DENIED ListObjectsV2 by session …7Q2F
s3 DENIED GetObject, 14 calls
3 pipelines lost their sessions too. They restart on their own; deploy-prod is back at about 02:30.
Observed, 3 events
Why I say this
iam deny ci-deployer when the source is 203.0.113.0/24
s3 DENIED ListObjectsV2 by session …7Q2F
s3 DENIED GetObject, 6 calls
This holds only while they keep this address. The session itself is still valid until 02:59.
About this step
37 alerts became one case
Endpoint
9
Identity
6
Cloud
22
Why they belong together: the same key, the same six-minute window, the same source network.
About this step
Three steps I took alone
disabled key AKIA…7Q2F
quarantined the package on 3 hosts
blocked cdn-pkg-stats[.]io
What lets me
Policy “reversible containment”: I may act alone when a step can be undone in one click and touches one person or one host group. Set by Noa, SOC lead, on 3 November.
Observed, 3 events
They’re lining up the next download
s3 ListObjectsV2 exports/2026-04/ by session …7Q2F
s3 ListObjectsV2 exports/2026-07/
s3 ListObjectsV2 exports/2026-10/
So far: 212 objects, 4.1 GB, seven months of customer exports.
Forecast, not fact
Why I expect it
Last time the download began 22 seconds after the listing ended. At this pace the listing ends near 02:22:15, so I expect the next download around 02:22:38.
How wrong I can be
On forecasts like this I’ve been off by up to 40 seconds.
Never happened
What you prevented
The listing covered 212 objects, 4.1 GB. The session was cut before the first of them was read.
s3 DENIED ListObjectsV2 by session …7Q2F
s3 DENIED GetObject, 14 calls
Staged
What I do if nobody answers
When the timer runs out, I block the attacker’s network on ci-deployer and page Omer. If he doesn’t answer within a few minutes, I page the security lead. Until someone does, I re-block any new address they switch to. Their session expires at 02:59 either way.
Why only that
Blocking a network can be undone in one click. Revoking sessions interrupts production, and policy keeps that decision with a person.
Noted. I’ve marked this claim as disputed by Igor and I’m re-checking it now. If anything moves, the sentence will change and show what it used to say.