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•9mo ago

Comments

MichealCodes•9mo ago
Cryptocurrency packages used at scale should have wallet decoys setup for early detection of vulnerabilities like this.
nailer•9mo 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•9mo ago
I see the model of "download any old shit off the internet and run it in production" is working out so well.
nailer•9mo ago
I don’t have much opinion of XRP but this is their official package, not a community package.
tobyhinloopen•9mo 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_•9mo ago
That is a very fun fact.
nailer•9mo ago
Yes that is how dependencies work.
poincaredisk•9mo 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•9mo 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•9mo 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•9mo ago
Yes. It’s an engineering failure to have multiple copies of the same logic. That isn’t specific to JavaScript.
tough•9mo 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•9mo 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•9mo 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•9mo ago
Official and thorough support for SBOM* within major package repositories can not come sooner.

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

abhisek•9mo 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•9mo ago
.xyz isn’t exotic for blockchains.

Unredacted – Unredact the Internet

https://unredacted.org/
1•eustoria•21s ago•0 comments

Priivacy – Secure AI Without Compromising Privacy

https://priivacy.ai/
1•eustoria•1m ago•0 comments

We need more water than rain can provide: refilling rivers with desalination

https://caseyhandmer.wordpress.com/2022/11/20/we-need-more-water-than-rain-can-provide-refilling-...
1•bilsbie•2m ago•0 comments

SVT-AV1 4.0

https://gitlab.com/AOMediaCodec/SVT-AV1/-/releases/v4.0.0
1•CharlesW•4m ago•0 comments

The Arithmetic Return Doesn't Exist

https://breakingthemarket.com/the-arithmetic-return-doesnt-exist/
1•highfrequency•5m ago•0 comments

Show HN: FlowScope – Fast, sophisticated SQL lineage that runs in the browser

https://flowscope.pondpilot.io/
1•melonamin•5m ago•0 comments

Having Claude Untangle Me

https://pensieve1729.substack.com/p/having-claude-untangle-me
1•druub•8m ago•0 comments

A macOS app that blurs your screen when you slouch

https://github.com/tldev/posturr
1•dnw•8m ago•0 comments

Passipedia – The Passive House Resource

https://passipedia.org/
1•djoldman•10m ago•0 comments

Claude Code Swarm Mode Deep Dive: 10 agents building macOS app

https://github.com/BayramAnnakov/edu-ai-product-engineer-s3/tree/main/case_studies/claudesp-swarm...
1•Bayram•11m ago•1 comments

Agents need good developer experience too

https://modal.com/blog/agents-devex
1•birdculture•13m ago•0 comments

Sir Mark Tully, the BBC's 'voice of India', dies aged 90

https://www.bbc.com/news/articles/c4nnp4d064do
2•koolhead17•13m ago•0 comments

What Happens If Torvalds' Git Repo Goes Away?

https://www.phoronix.com/news/Linux-Kernel-Continuity-Doc
1•Corrado•14m ago•1 comments

Margin accounts have a 6:1 debt to free credit ratio – Unprecedented

https://www.finra.org/rules-guidance/key-topics/margin-accounts/margin-statistics
1•zerosizedweasle•14m ago•0 comments

'Life-threatening' storm forecast in US as states declare emergency

https://news.sky.com/story/life-threatening-winter-storm-to-hit-us-with-snow-ice-and-dangerously-...
1•Brajeshwar•16m ago•0 comments

Lawsuit Claims Meta Can See WhatsApp Chats in Breach of Privacy

https://www.bloomberg.com/news/articles/2026-01-25/lawsuit-claims-meta-can-see-whatsapp-chats-in-...
1•Brajeshwar•16m ago•0 comments

Website text invisible to AI agents and screenshots – For human eyes only

https://forhumaneyesonly.com/
1•halcdev•16m ago•2 comments

Did Edison accidentally make graphene in 1879?

https://arstechnica.com/science/2026/01/did-edison-accidentally-make-graphene-in-1879/
1•Brajeshwar•16m ago•0 comments

The Elias Material

https://eliasweb.org/AllSessions
1•vjulian•18m ago•0 comments

Show HN: Right Click – Customizable Context Menu(Popup for Android) for Firefox

https://addons.mozilla.org/en-US/firefox/addon/right-click-actions/
1•mcavdar•19m ago•0 comments

Eliza

https://en.wikipedia.org/wiki/ELIZA
1•chrisjj•20m ago•1 comments

Pruning Claude Code conversation history

https://brtkwr.com/posts/2026-01-22-pruning-claude-code-conversation-history/
1•freediver•20m ago•0 comments

Minneapolis shooting: AG Pam Bondi gives Gov. Walz conditions for ICE to leave

https://www.fox9.com/news/minneapolis-shooting-ag-pam-bondi-urges-gov-walz-support-ice
12•duxup•21m ago•2 comments

A Critique of Modern SQL and a Proposal Towards a Simple and Expressive QL [pdf]

https://www.cidrdb.org/cidr2024/papers/p48-neumann.pdf
1•tanelpoder•21m ago•1 comments

Show HN: Generate the perfect kickoff prompt

https://vibeprompting.dev
1•relatedcode•23m ago•0 comments

Stop Separating People Problems from Engineering Problems

https://andrew.grahamyooll.com/blog/The-False-Dichotomy/
3•freediver•25m ago•0 comments

A wheel menu for all your shortcuts on Mac

https://www.wheelcmd.com/
1•nickljr•26m ago•0 comments

Kangaroo takes out Tour Down Under peloton

https://www.abc.net.au/news/2026-01-25/kangaroo-crashes-into-tour-down-under-peloton-as-jay-vine-...
1•Tomte•27m ago•0 comments

Genetic Data from over 20k U.S. Children Misused for 'Race Science'

https://www.nytimes.com/2026/01/24/us/children-genetics-race-science.html
2•DustinEchoes•27m ago•1 comments

A P-O-X On Both Your Houses: Reverse Engineering a 20 year RF protocol

https://zach-ennenga.medium.com/a-p-o-x-on-both-your-houses-reverse-engineering-a-20-year-rf-prot...
1•bsilvereagle•28m ago•0 comments