@fairwords npm packages compromised by a self-propagating credential worm - steals tokens, infects other packages you own, then crosses to PyPI

Posted by BattleRemote3157@reddit | programming | View on Reddit | 32 comments

Three @fairwords scoped npm packages were hit today by what appears to be the
TeamPCP/CanisterWorm campaign. The interesting part isn't just the credential theft, it's what it does with your npm token afterward.

What the postinstall payload does:

Affected versions:

If you have any of these installed, rotate npm tokens, cloud keys, SSH keys immediately and check whether any packages you maintain received unexpected version bumps.

Full analysis with IOCs and payload walkthrough in the blog.