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

How Environment Variables Work

https://infisical.com/blog/how-environment-variables-work
1•vmatsiiako•1m ago•0 comments

Aho-Corasick Algorithm

https://compiler.club/aho-corasick/
1•ibobev•2m ago•0 comments

Mosquitoes Are a Choice

https://worksinprogress.co/issue/mosquitoes-are-a-choice/
1•salonium_•2m ago•0 comments

Four Years of Coding with AI

https://av.codes/blog/agentic-setup/
1•speckx•2m ago•0 comments

Show HN: Worklaude – learn by speaking; video scenes branch on TypeSafe JEV

https://learn.worklaude.com/learn/access/new
1•j_rcht•4m ago•0 comments

Grok is obsessed with our docs. Just not the parts we built for it

https://handsontable.com/blog/grok-is-obsessed-with-our-docs
1•greenflux•5m ago•1 comments

Pipe absorbs sound going through it [video]

https://www.youtube.com/watch?v=QuEtirGfPzU
1•duck•6m ago•0 comments

The Weird Museum Map for Your Italian Trip

https://medium.com/counterarts/the-weird-museum-map-for-your-italian-trip-5523f5bb9572
1•cadeos•7m ago•0 comments

Netanyahu claims ability to hack any iPhone and plant false evidence

https://twitter.com/dlLambo/status/2104852335272878530
1•gravisultra•7m ago•1 comments

Single-Writer Bottleneck: Why Write Serialization Limits RealTime Graph Workload

https://memgraph.com/blog/write-serialization-limits-real-time-graph-workloads
1•taubek•7m ago•0 comments

The Cambrian Explosion in Software

https://jeffammons.com/2026/09/28/the-cambrian-explosion-in-software/
1•jammons•7m ago•0 comments

Changing the difference between Codex plans to be Plus=1x Pro 100=5x Pro 200=10x

https://twitter.com/thsottiaux/status/2104951965184925941
1•adamrezich•7m ago•0 comments

Show HN: An MCP to control other Windows computers

https://github.com/boxerbk/phaze-mcp-api-helpdesk-example/blob/main/README.md
1•boxerbk•8m ago•0 comments

Car's data privacy problems are worse than you think

https://www.theverge.com/transportation/1001463/car-data-privacy-northeastern-study-honda-gm-ford
1•Brajeshwar•8m ago•0 comments

Show HN: MineSweeper, but guessing is not needed, or forgiven

https://sodslaw.billpg.com/
2•billpg•8m ago•0 comments

Mark Zuckerberg – Colossus

https://colossus.com/article/mark-zuckerberg-profile/
1•tortilla•9m ago•0 comments

Is Spotify Down? Streaming Service Reports Issues

https://www.cnet.com/news-live/spotify-outage-9-29-2026/
1•imzadi•10m ago•0 comments

OpenAI blocked its agent's web access. Then it tunneled out through DNS

https://thenewstack.io/openai-agents-security-bypasses/
1•Brajeshwar•10m ago•0 comments

Show HN: Sensored – streaming-first PII/PHI redaction

https://github.com/atomicpages/sensored
1•buildwithdennis•12m ago•0 comments

Florida invokes extinction fears in legal bid to halt OpenAI development

https://arstechnica.com/ai/2026/09/florida-asks-court-to-put-the-brakes-on-openais-frontier-ai-de...
1•OutOfHere•12m ago•1 comments

Side Hustle Tax Calc – Paste your 1099 income, see what you owe in 30 seconds

https://taxcalc.botlabcollective.com
1•Jmurked•15m ago•0 comments

There's a new way to break RSA that's faster than anything we've seen before

https://arstechnica.com/security/2026/09/theres-a-new-way-to-break-rsa-thats-faster-than-anything...
1•theanonymousone•16m ago•0 comments

Gates Foundation 5 Year Goal: Help 3B People to Use AI in Their Language

https://www.gatesfoundation.org/ideas/media-center/press-releases/2026/09/ai-language-partnership
1•kdavis•16m ago•0 comments

Star.vision Unveils 'Space.IDC' Computing Constellation with Partners

https://www.china-in-space.com/p/starvision-unveils-spaceidc-computing
1•JPLeRouzic•17m ago•0 comments

Reading Progress Bars Are Bad UX

https://maxschmitt.me/posts/reading-progress-bars
2•speckx•18m ago•0 comments

Strutt's Powered Wheelchair Is Not a Wheelchair (For Legal Reasons)

https://www.core77.com/posts/145378
1•surprisetalk•18m ago•0 comments

DIY X-RAY generator made of eBay parts

https://highvoltageforum.net/index.php?topic=2854.0
1•joebig•19m ago•0 comments

No errors, no warnings, no gods, no masters – HTML Purity is a Fetish

https://shkspr.mobi/blog/2026/09/no-errors-no-warnings-no-gods-no-masters-html-purity-is-a-fetish/
3•blenderob•19m ago•0 comments

Oracle Extends Fusion Agentic Applications with Introduction of Fusion Claw

https://www.oracle.com/news/announcement/oracle-extends-fusion-agentic-applications-with-introduc...
1•6thbit•20m ago•0 comments

Apple's New CEO Moves to Overhaul Company to Run Faster and Leaner

https://www.bloomberg.com/news/articles/2026-09-29/apple-s-new-ceo-moves-to-overhaul-company-to-r...
2•jbredeche•21m ago•2 comments