TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

70% of new NPM packages in last 6 months were spam

225 pointsby louislang10 months ago

16 comments

NikxDa10 months ago
&gt; Contrary to what npm states, this package actually depends on one of our aforementioned spam packages. This is a by-product of how npm handles and displays dependencies to users on its website.<p>For me personally, this is the biggest surprise and takeaway here. By simply having a key inside package.json&#x27;s dependencies reference an existing NPM package, the NPM website links it up and counts it as a dependency, regardless of the actual value that the package references (which can be a URL to an entirely different package!). I think this puts an additional strain on an already fragile dependency ecosystem, and is quite avoidable with some checks and a little bit of UI work on NPM&#x27;s side.
评论 #41182947 未加载
评论 #41179773 未加载
评论 #41181265 未加载
评论 #41179826 未加载
mkl10 months ago
How about removing the incentive? Take down every package with tea.yaml in it, after say 1 month&#x27;s warning, so legitimate packages trying to use it don&#x27;t leave their users in the lurch. The tea protocol is clearly not going to accomplish what it set out to (see below), and is instead incentivising malicious behaviour and damaging the system it set out to support.<p>From <a href="https:&#x2F;&#x2F;docs.tea.xyz&#x2F;tea&#x2F;i-want-to...&#x2F;faqs" rel="nofollow">https:&#x2F;&#x2F;docs.tea.xyz&#x2F;tea&#x2F;i-want-to...&#x2F;faqs</a>: &quot;tea is a decentralized protocol secured by reputation and incentives. tea enhances the sustainability and integrity of the software supply chain by allowing open-source developers to capture the value they create in a trustless manner.&quot;
评论 #41180525 未加载
评论 #41181598 未加载
评论 #41179804 未加载
n_ary10 months ago
Why are these spam accounts not perma banned and removed?<p>For example, this[1] account mentioned in the article has 1781 packages of gibberish.<p>Also, the whole reporting process is onerous, there is a large form. Of course, gatekeeping on reporting is good, but there should be a possibility to report an entire profile of package publisher.<p>[1] <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;~eleanorecrockets" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;~eleanorecrockets</a>
评论 #41180277 未加载
marcus_holmes10 months ago
&gt; Next, because the AI hype train is at full steam, we must point out the obvious. AI models that are trained on these packages will almost certainly skew the outputs in unintended directions. These packages are ultimately garbage, and the mantra of “garbage in, garbage out” holds true.<p>hmm, inspiring thoughts. An answer to &quot;AI is going to replace software developers in the next 10 years&quot; is to create 23487623856285628346 spam packages that contain pure garbage code. Humans will avoid, LLMs will hallucinate wildly.
评论 #41179731 未加载
评论 #41180726 未加载
评论 #41180448 未加载
评论 #41179780 未加载
forcha10 months ago
The Tea protocol&#x27;s flawed incentive model is a disaster, effectively encouraging developers to pollute npm with spam. It&#x27;s a prime example of what happens when protocols prioritize quantity over quality, compromising the entire ecosystem.
daotoad10 months ago
TLDR:<p>1. a cryptocurrency scheme for funding OSS development[1] is incentivizing spammers to try and monetize NPM spam<p>2. it&#x27;s easy to spoof your dependencies with package.json[2]<p><pre><code> &quot;dependencies&quot;: { &quot;axios&quot;: &quot;https:&#x2F;&#x2F;registry.npmjs.org&#x2F;@putrifransiska&#x2F;kwonthol36&#x2F;-&#x2F;kwonthol36-1.1.4.tgz&quot; } </code></pre> [1]: <a href="https:&#x2F;&#x2F;tea.xyz&#x2F;blog&#x2F;the-tea-protocol-tokenomics" rel="nofollow">https:&#x2F;&#x2F;tea.xyz&#x2F;blog&#x2F;the-tea-protocol-tokenomics</a><p>[2]: <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;sournoise?activeTab=code" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;sournoise?activeTab=code</a>
评论 #41179260 未加载
评论 #41179389 未加载
johnmw10 months ago
I was sad to read this and thought &quot;this is why we can&#x27;t have nice things.&quot;<p>But following the links was fun and educational:<p>&quot;The end goal here [of the Tea protocol] is the creation of a robust economy around open source software that accurately and proportionately rewards developers based on the value of their work through complex web3 mechanisms, programmable incentives, and decentralized governance.&quot;<p>Which lead to:<p>&quot;The term cobra effect was coined by economist Horst Siebert based on an anecdotal occurrence in India during British rule. The British government, concerned about the number of venomous cobras in Delhi, offered a bounty for every dead cobra. Initially, this was a successful strategy; large numbers of snakes were killed for the reward. Eventually, however, people began to breed cobras for the income. When the government became aware of this, the reward program was scrapped. When cobra breeders set their snakes free, the wild cobra population further increased.&quot;<p>Which lead to:<p>&quot;Goodhart&#x27;s law is an adage often stated as, &#x27;When a measure becomes a target, it ceases to be a good measure.&#x27;&quot;
patwolf10 months ago
I recently stumbled upon a bunch of repos which were clearly copied from popular projects but then renamed with a random Latin name and published to npm.<p>I reported some of them as spam, but there were hundreds of them. I couldn&#x27;t figure out why somebody would waste the time to do that, but now it makes sense.
Fatnino10 months ago
There was a similar thing to tea a while back. I think I saw the project posted on here. Went to their github and found a typo in their Readme. Opened a pr with a correction and then they started sending me about a dollar in btc every month till they ran out of money and the project imploded.
renegat0x010 months ago
I am really interested if that really matters.<p>Package managers often comes with rating system. npmjs has weekly downloads, pull requests, and other popularity scores.<p>I am layman in AI, but why would anyone think that this would affect anything, like AI? Why would anyone train on noname package, that noone uses?<p>Stats for spam packages can have higher-than-none stats, but that also makes them vulnerable for sweep removal of all potential spam packages, since they are connected, etc. etc.<p>Any credible company will not use a noname spam package, will verify their contents. That is at least what happened in all companies I have worked for.
评论 #41179757 未加载
评论 #41183441 未加载
评论 #41180165 未加载
评论 #41180309 未加载
EVa5I7bHFq9mnYK10 months ago
Spam is the least of the worries.
评论 #41179368 未加载
vb-844810 months ago
I wonder what is the long term plan.<p>Maybe the next step is to sell the control of all these packages to a rogue entity to be used for a supply chain attack?
评论 #41179376 未加载
评论 #41180327 未加载
评论 #41179828 未加载
评论 #41179469 未加载
joeyh10 months ago
Tea is absolutely NOT &quot;taking steps to remediate this problem&quot;. They are grifters and part of their grift is claiming to take steps when called out.
mikl10 months ago
A pox on Tea and the cryptobros that thought it was a good idea.
评论 #41180293 未加载
danaris10 months ago
I&#x27;m fairly proficient in Javascript, but mismanagement of the ecosystem like this is a major reason why any time I see that something requires Node.js, I just turn and run in the other direction. It&#x27;s just not worth the headaches.
fennecbutt10 months ago
I mean realistically it&#x27;s representative of the Internet as a whole. Makes me wonder where all the porn packages are.<p>The pulling in of unexpected dependent packages is a real issue though, how do other ecosystems deal with it? NPM is really missing some level of trust beyond just using &quot;brand name&quot; packages.<p>My general judgement is usually how often it&#x27;s worked on&#x2F;how many downloads it has but gut feel isn&#x27;t really enough, is it?