frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

fp.

Open in hackernews

Offical XRP NPM package has been compromised and key stealing malware introduced

https://www.aikido.dev/blog/xrp-supplychain-attack-official-npm-package-infected-with-crypto-stealing-backdoor
55•flxga•1y ago

Comments

MichealCodes•1y ago
Cryptocurrency packages used at scale should have wallet decoys setup for early detection of vulnerabilities like this.
nailer•1y ago
Red teaming this, you’d delay exfiltration of the private key until the balance passes beyond a certain amount and you’re on mainnet.
ohgr•1y ago
I see the model of "download any old shit off the internet and run it in production" is working out so well.
nailer•1y ago
I don’t have much opinion of XRP but this is their official package, not a community package.
tobyhinloopen•1y ago
Fun fact: installing some common starter packages will explode to install over a 1000 npm packages, each of them can inject malware, even if the package isn’t used, and you’ll never know.

Many packages will have over a 100 dependencies if you include the dev dependencies, so you can easily break a 1000.

mouse_•1y ago
That is a very fun fact.
nailer•1y ago
Yes that is how dependencies work.
poincaredisk•1y ago
The crazy part here is that in most other ecosystems 100 dependencies is "crazy high" territory, and in JS it's apparently "we're just getting started". It's known for its approach to micropackaging everything in a separate library.
greatgib•1y ago
The crazy thing is more that multiple versions of the same package could be installed as dependencies of dependencies...

They were thinking to be the cool kids supporting multiple versions and that the old way to do packaging, like debian and co that expects everyone to use the same version, was the old legacy fart way to do things.

Just, developers before were engineers first and so designed things well especially to avoid this situation of dependency hell and supply chain injection. But the web dev crowd decided to do "better" and now to have old problems as new problems...

nailer•1y ago
npm design allows multiple versions of the same package if required, but deduplicates otherwise. It’s a smart design that more package managers should and will follow.

Smart developers spend their time working on original code rather than rewriting the wheel.

nailer•1y ago
Yes. It’s an engineering failure to have multiple copies of the same logic. That isn’t specific to JavaScript.
tough•1y ago
does the postinstall script step has anything to do with this?

i noticed bun doesn't run them by default unless you whitelist them

koolba•1y ago
That fetch(…) is sending the mnemonic of the private key out to that remote server.

Interestingly if this is happening in a long running process and that exploit server is offline, the promise for the fetch will reject. And the default behavior for unhandled promise rejections would be for the node process to crash.

So if anybody tried testing this version of the library in a net gapped environment, it would crash and fail out in CI.

The attacker should have silenced the error with a .catch(_ => {}).

mschuster91•1y ago
> Previously only the packed JavaScript code had been modified.

Honestly it's time for the npm ecosystem to move to a model where only build agents running on npm's own infrastructure can upload binary artifacts, or to mandate reproducible builds.

And for a select set of highly used packages, someone from NPM should be paid to look over each release's changeset.

Both would have massively impeded the attacker.

mindcrash•1y ago
Official and thorough support for SBOM* within major package repositories can not come sooner.

* https://en.wikipedia.org/wiki/Software_supply_chain

abhisek•1y ago
We run similar npm package monitors. The use of exotic tld domains such as 0x9c.xyz kind of gave it away because YARA Forge rules have native signatures to detect such domains.

It will be interesting t explore how the project got compromised and malicious packages published to the registry.

nailer•1y ago
.xyz isn’t exotic for blockchains.

A bank robber's cellphone gave him away. Now the case is at the Supreme Court

https://apnews.com/article/supreme-court-geofence-warrants-unreasonable-searches-constitution-a61...
1•smurda•38s ago•0 comments

Running Local LLMs Offline on a Ten-Hour Flight

https://deploy.live/blog/running-local-llms-offline-on-a-ten-hour-flight/
1•darccio•59s ago•0 comments

Super Zsnes

https://www.youtube.com/watch?v=r5twUkvYFpA
1•thomond•59s ago•0 comments

Show HN: I ported OmniAID image detection model to Apple's Neural Engine

https://apps.apple.com/us/app/slop-or-not-ai-fake-detector/id6744578596
3•woadwarrior01•3m ago•0 comments

Derek Sivers: Why I gave my company to a charitable trust

https://sive.rs/wds
1•theorchid•5m ago•0 comments

Ralph Wiggum with Session Usage Limits

https://github.com/chrisdail/ralph-simple-smart
1•chrisdail•6m ago•0 comments

Show HN: Local RAG Pipeline with Weaviate and Ollama

https://www.storyblok.com/mp/how-to-build-a-rag-pipeline-with-weaviate-and-ollama
1•edodusi•7m ago•0 comments

Why Retrieval-Augmented Generation Still Gets Meaning Wrong [pdf]

https://github.com/therealitydrift/semantic-fidelity-lab/blob/main/03_Research_and_Papers/SFL_Fai...
1•scaledsystems•8m ago•0 comments

Show HN: PM tool where you describe your project and the workspace builds itself

https://www.getchimerical.com/
1•nlaborde1•9m ago•1 comments

True Stuff: Monk vs. the Printing Press

https://wondermark.com/true-stuff-monk-vs-press/
1•michael_m_b•11m ago•0 comments

Windows 11's second-chance setup dialogs hurt IT, drain productivity

https://www.theregister.com/2026/04/26/windows_second_chance_setup/
1•geekinchief•11m ago•0 comments

Show HN: I built a 144Hz sci-fi RTS using a 15,000line React monolith and Canvas

https://vibeaxis.com/divine-orbit-free-demo-play-in-browser-now/
1•XQorp•11m ago•0 comments

Show HN: I have Parkinson's, so I defensively patented a battery-free tracker

https://halfmarble.com/blog/unsteady-ring.html
1•gerard-hm•12m ago•2 comments

The Technical Debt Manifesto (2025)

https://techdebtmanifesto.github.io/
1•fscaramuzza•12m ago•0 comments

AI will boost the gig economy platform by making freelancers more valuable

https://en.globes.co.il/en/article-most-of-my-liquid-capital-is-spent-on-philanthropy-1001540571
1•wslh•12m ago•0 comments

Memory Is the Machine

https://om.co/2026/04/27/memory-is-the-machine/
1•herbertl•12m ago•0 comments

Greenhouse gases from data center boom could outpace nations

https://www.wired.com/story/new-gas-powered-data-centers-could-emit-more-greenhouse-gases-than-en...
1•rbanffy•14m ago•1 comments

Show HN: Void Player – A 1.6MB native macOS music player for local files

https://github.com/leeseomin/VoidPlayer-releases
1•smlee•16m ago•0 comments

Eight months early and under budget, the Roman Telescope is ready to launch

https://arstechnica.com/science/2026/04/eight-months-early-and-under-budget-the-roman-telescope-i...
1•rbanffy•17m ago•0 comments

"An Agent Cannot See Its Own Bugs" – things I notice running multi-agent daily

https://twitter.com/keane42443/status/2048419624124113119
1•10keane•17m ago•0 comments

What 'Rescheduling' of Marijuana Means for Americans

https://www.bloomberg.com/news/articles/2026-04-23/marijuana-rescheduled-what-us-regulatory-chang...
1•wslh•17m ago•1 comments

Bypass internet blockade in Iran via Vercel

https://github.com/powerofp/vercelmasterhttp
2•mohsen1•18m ago•0 comments

Apple, please make an e-reader

https://ericlamb.substack.com/p/apple-please-make-an-e-reader
1•ericlamb89•18m ago•0 comments

Registries Considered Harmful

https://words.filippo.io/registries-considered-harmful/
1•st_goliath•20m ago•0 comments

How Our Grandmothers Made Us and Saved Us

https://orionmagazine.org/article/how-our-grandmothers-made-us-and-saved-us/
1•speckx•22m ago•0 comments

Show HN: HumansMap, Leaderboards,interactive graphs on 1M+ Wikidata entities

https://humansmap.com/
1•abstracthinking•24m ago•0 comments

Email Is Crazy

https://samkhawase.com/blog/email-is-crazy/
10•FlyingSnake•25m ago•0 comments

Show HN: Tenantbox – Multi-tenant file storage for SaaS in two API calls

https://tenantbox.dev
1•omollohemstone•27m ago•1 comments

A local-first sync setup for a Markdown-based feed reader

https://crocidb.com/post/a-local-first-sync-setup-for-a-markdown-based-feed-reader/
1•CrociDB•27m ago•0 comments

Show HN: OSS Agent I built topped the TerminalBench on Gemini-3-flash-preview

https://github.com/dirac-run/dirac
23•GodelNumbering•31m ago•3 comments