Your first paragraph reminded me of this article: https://david-gilbertson.medium.com/im-harvesting-credit-car... Imagine this scenario taking place with this package if someone got ahold of his NPM account.
In a completely unrelated matter, Google search results quality has really declined in the last few years...
Out of curiosity, what did you remember about the link that you tried searching for? Do you remember when you last saw it?
[insert semicoherent hopium about ChatGPT as a magical panacea here]
I assume you tried punching in keywords like “fake NPM package hack” or something like that?