frontpage.
newsnewestaskshowjobs

Made with ♥ by @iamnishanth

Open Source @Github

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

Comments

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

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

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

Convert a GitHub Markdown file to a pretty HTML CV

https://gist.github.com/amiune/4f59edb82e110f89a4177567a0ad3426
1•amiune•40s ago•0 comments

Awesome Fresh Developer Tools

https://github.com/devtoolsd/awesome-devtools
3•dariubs•5m ago•1 comments

Hertz and Other Rental Car Agencies Turn to AI for Damage Detection

https://www.nytimes.com/2025/07/09/travel/rental-car-ai-scanner-hertz.html
2•perihelions•5m ago•0 comments

Woman takes 10x dose of turmeric, gets hospitalized for liver damage

https://arstechnica.com/health/2025/07/woman-takes-10x-dose-of-turmeric-gets-hospitalized-for-liver-damage/
2•burnt-resistor•10m ago•1 comments

One Company Poisoned the Planet

https://www.youtube.com/watch?v=SC2eSujzrUY
1•doener•13m ago•0 comments

Croissant: Building a No-Framework Web App

https://dbushell.com/2025/07/11/croissant-no-framework-web-app/
1•ingve•16m ago•0 comments

A Stroke of Genius: Striving for Greatness in All You Do by R.W. Hamming

https://www.cs.utexas.edu/~dahlin/bookshelf/hamming.html
2•luskira•18m ago•0 comments

Slack's 57MB 404 page

https://a.slack.com/archives/b/c
2•lecarore•18m ago•0 comments

A Mind Is Born: 256 byte Commodore 64 demo

https://linusakesson.net/scene/a-mind-is-born/
1•fanf2•19m ago•0 comments

Navigating AI in translation: Why human expertise still matters

https://www.gulf-times.com/article/707217/opinion/navigating-ai-in-translation-why-human-expertise-still-matters
1•Bluestein•20m ago•0 comments

Show HN: CD Calculator – A tool to calculate bank CD interest returns

https://cd-calculator.net/
2•lur0913•21m ago•0 comments

Exploiting Public App_key Leaks to Achieve RCE in Laravel Applications

https://blog.gitguardian.com/exploiting-public-app_key-leaks/
1•guedou•22m ago•0 comments

Kimi-Dev-72B

https://huggingface.co/moonshotai/Kimi-Dev-72B
1•tosh•23m ago•0 comments

A Practical Guide to Evaluating Large Language Models (LLM)

https://medium.com/@thomas.zilliox/a-practical-guide-to-evaluating-large-language-models-llm-4882fb22892f
1•handfuloflight•23m ago•0 comments

SEO, Logorrhoea and the Rise of Sick AI

https://purpleorca.co.uk/seo-logorrhoea-the-rise-of-sick-ai-a-cautionary-tale-for-content-strategists/
1•jruohonen•27m ago•0 comments

Google strikes deal to buy fusion power from MIT spinoff Commonwealth Fusion Sys

https://www.reuters.com/sustainability/climate-energy/google-strikes-deal-buy-fusion-power-mit-spinoff-commonwealth-2025-06-30/
1•mpweiher•28m ago•0 comments

Claude Code/Cursor is using grep? Are we devolving

3•redskyluan•28m ago•2 comments

Guess a random number between 1 and 50

1•Aldipower•29m ago•0 comments

Defold editor scripting adds scene editing in 1.10.4

https://defold.com/2025/07/11/editor-scripting-update/
3•vlaaad•29m ago•1 comments

Show HN: I made a simple iOS app to track and count my habits

https://apps.apple.com/il/app/clicker-counter-simple-tally/id6747491747
2•yoav_sbg•30m ago•0 comments

7GUIs in Mint

https://mint-lang.com/posts/7GUIs
1•gdotdesign•32m ago•0 comments

Self-imposed ban – a lightweight bash script to block commands

https://github.com/alex-moon/ban
1•alex-moon•32m ago•0 comments

What happened to XProtect this week?

https://eclecticlight.co/2025/07/11/what-happened-to-xprotect-this-week/
1•GavinAnderegg•33m ago•0 comments

Engineers develop fire extinguisher that puts out fire with sound (2023)

https://inspenet.com/en/noticias/engineers-develop-fire-extinguisher-that-puts-out-fire-with-sound/
2•thunderbong•39m ago•0 comments

Screen recording of working with Cursor [video]

https://www.youtube.com/watch?v=BTC_a_GoUzo
2•jstanley•51m ago•1 comments

Show HN: AI Movie Finder – I created a way to find movies by describing

https://www.aimoviefinder.com
1•mosbyllc•52m ago•0 comments

Wrapping Go errors with caller info

https://dizzy.zone/2025/07/10/Wrapping-Go-errors-with-caller-info/
2•ingve•56m ago•0 comments

Crates.io: Development Update

https://blog.rust-lang.org/2025/07/11/crates-io-development-update-2025-07/
3•HieronymusBosch•58m ago•0 comments

The Bitter Lesson (2025)

https://www.artfintel.com/p/the-bitter-lesson
1•Michelangelo11•1h ago•0 comments

Why Is Fertility So Low in High Income Countries? (NBER)

https://www.nber.org/papers/w33989
21•jmsflknr•1h ago•33 comments