frontpage.
newsnewestaskshowjobs

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...

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.
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

Everything's Fine. (2024)

https://arxiv.org/abs/2403.19891
1•hamburgererror•36s ago•0 comments

UK to ban social media for under-16s, following Australia's model

https://www.gov.uk/government/news/social-media-to-be-banned-for-under-16s-in-landmark-government...
1•chrishawes•2m ago•0 comments

AI Study Tools: A Comparison of Flashcard and Spaced Repetition Apps

https://longtermemory.com/b/ai-study-tools-comparison-2026/
1•aledevv•2m ago•0 comments

SimpleRelay, self-hosted SMTP relay for apps in a single Docker container

https://relay.mailtoinbox.vip
1•toinbox•3m ago•0 comments

Millions of Lifetimes

https://wilsoniumite.com/2026/06/15/millions-of-lifetimes/
2•Wilsoniumite•4m ago•0 comments

Agentic-fs, a cloud-hosted filesystem for AI agents

https://github.com/vivekkhimani/agentic-fs
1•vivekkhimani•5m ago•0 comments

War Is a Racket

https://en.wikipedia.org/wiki/War_Is_a_Racket
1•simonebrunozzi•5m ago•0 comments

LLM SoccerArena: Which model predicts the 2026 World Cup best?

https://llmsoccerarena.up.railway.app/
1•philipp1234•7m ago•0 comments

Switching to a low-profile split keyboard after years on a TKL

https://www.elimkeys.jp/
1•xingshi0066•7m ago•0 comments

The Ridiculous Engineering of Figma [video]

https://www.youtube.com/watch?v=5t8dh3DSdBk
1•enritarta•11m ago•0 comments

Keir Starmer confirms social media ban for all children under 16

https://metro.co.uk/2026/06/15/keir-starmer-confirms-social-media-ban-children-16-28780800/
2•oneeyedpigeon•11m ago•1 comments

Smooth: A Framework for Turning AI from Interesting to Useful

https://www.spockdataservices.com/blog/smooth-ai-workflow-framework
1•rcshubhadeep•11m ago•0 comments

The Cloudflare for Autonomous AI Agents

https://github.com/tkngate/tkngate
2•kilopalisme•13m ago•1 comments

Anthropic Dispatches Staff to D.C., Racing to Resolve AI Export Restrictions

https://www.wsj.com/tech/ai/anthropic-dispatches-staff-to-d-c-racing-to-resolve-ai-export-restric...
2•thm•15m ago•0 comments

I know I can, but should I? Capability vs. Intent in the AI Goldrush

https://aibuilderseries.substack.com/p/i-know-i-can-but-should-i-capability
1•seantheviking•15m ago•0 comments

Asterinas: A production-grade Linux-compatible alternative kernel

https://asterinas.github.io/
1•yankcrime•16m ago•0 comments

UK Brings in Full Social Media Ban for Under-16s

https://deadline.com/2026/06/uk-social-media-ban-under-16s-x-youtube-tiktok-reddit-1236956163/
4•01-_-•18m ago•0 comments

Inside tech elites’ madcap war against the California billionaire tax

https://sfstandard.com/2026/06/13/billionaire-tax-fight-sergey-brin-chris-larsen-mike-moritz-ron-...
2•thm•19m ago•1 comments

Derbyshire officer investigated for using AI to create evidence in cases

https://news.sky.com/story/derbyshire-police-officer-investigated-for-using-ai-to-create-evidence...
3•01-_-•19m ago•0 comments

Do-the-work instead of proof-of-work, for Git hosting

https://blog.legoktm.com/2026/06/14/do-the-work-instead-of-proof-of-work-for-git-hosting.html
1•rapnie•20m ago•0 comments

Ukraine's Zelenskiy discusses peace talks in call with Trump

https://www.reuters.com/world/europe/ukraines-zelenskiy-discussed-war-diplomacy-call-with-trump-a...
1•Soumya_Max•22m ago•0 comments

Show HN: Canopy – parallel, sandboxed Claude Code sessions on macOS

https://github.com/juliensimon/canopy
1•julsimon•22m ago•0 comments

Proof

https://en.wikipedia.org/wiki/Proof_(play)
1•tosh•23m ago•0 comments

Apple PowerMac G4 – Weapon (1999) [video]

https://www.youtube.com/watch?v=lb7EhYy-2RE
1•DesaiAshu•23m ago•0 comments

You don't need React: creating a minimal UI library

https://pedroth.github.io/?p=post/NoNeedReact
1•pedro_movai•24m ago•0 comments

Building a personal meeting assistant that routes through your existing audio

https://techstackups.com/articles/deepgram-personal-meeting-assistant/
1•ritzaco•24m ago•0 comments

A spy in your pocket? How the UK's on-device nude image blocking could work

https://www.techradar.com/vpn/vpn-privacy-security/a-spy-in-your-pocket-how-the-uks-proposed-on-d...
1•nickslaughter02•24m ago•1 comments

Employees are checking out of AI

https://www.asymptotes.ai/notes/the-self-replacement-crisis
1•spinmaster•25m ago•0 comments

Show HN: TimeZoria – fast way to check and compare time zones

https://timezoria.org/
1•TimeZoriaAI•27m ago•0 comments

Abandoning the indie hacking dream for now (2022)

https://www.tinystruggles.com/posts/abandoning_indie_hacking/
2•mmarian•27m ago•0 comments