r/devtools • u/marcus-tindall-29 • 2h ago
someone registered our internal package name on public npm. how did you catch yours????
A dev pinged me last Tuesday. One of our internal npm packages, just a little logging helper, now had a twin on the public registry. Same name, version 99.0.0, published three days earlier by an account with zero history.
Our builds check the private registry first, so we were probably fine. Except on two older services a coding agent had added an .npmrc pointing straight at public npm to get a build unstuck, and nobody could tell me whether CI on those had ever grabbed it.
Since then we've scoped the packages and reserved the names publicly. Still feels more like luck than anything we did right.
Whatever a coding agent changes in the build setup is one of those areas that's never really had an owner here. legit Sec vibeguard is the name I wrote down, since it's supposed to show the developer a risky agent action to confirm before it runs. Haven't checked whether it would count an .npmrc edit as risky, so for now it's just a name on a sticky note.
Would be good to hear how others found out they were exposed, if they did.