frontpage.
newsnewestaskshowjobs

Open Source @Github

fp.

Open in hackernews

Why does mathmain need an encrypted loader?

https://safedep.io/mathmain-encrypted-loader/
71•abhisek•2h ago

Comments

j2kun•1h ago
Why in the world would that specific 3x3 matrix be a trigger for an attack? Are they trying to find someone doing some particular kind of numerical analysis?
zarzavat•1h ago
Presumably it's so it can be used as a subdependency for setting up an attack in a popular, legitimate package, e.g. via a pull request. The code in the legitimate package would not arouse suspicion at all.
krackers•29m ago
Now I'm curious what the target was. Are there any notable classes of programs/problems where you'd do an LU decomposition of this specific matrix?
tranceylc•47m ago
I would assume it’s actually so they can allow it to spread before it gets activated. Then do something that affects the entire chain of package dependencies
coder-pm•30m ago
This matrix is not a condition, it’s a key. JSON.stringify with it’s data goes to the scrypt as a password and that creates an AES-256-GCM key. There is no if, every other input won’t decrypt. That’s why no one will get payload from the package without knowing the exact input.
fshafique•1h ago
Does the FBI or any other law-enforcement office follow up on these backdoors? Is this considered a crime, or even conspiracy to commit a crime, or is it only the act of using the backdoor that's a crime?

I can also see that it's still up in NPM without any warning of any kind: - https://www.npmjs.com/package/mathmain

But the Github repo for the package and the author are down: - https://github.com/allendev12 - https://github.com/allendev12/mathmain

altairprime•19m ago
> This package contained malicious code and was removed from the registry by the npm security team.
nextzck•1h ago
Fascinating how intricate the target selection is on this
altairprime•1h ago
> We found a remote access implant hidden inside [email protected], an npm package that copies the popular mathjs library.

The NPM package not named in the clickbait-y post title is “mathmain@1.0.0”, for those who run into this particular site obstacle; the later packages also named are “mathsbase” and “math-universe”. (EDIT: I see the submission title has been updated, so that’s my complaint addressed, thanks mods!)

Safedep, if you’re reading this, perhaps you should reconsider having that site feature applied to your post — or if it’s something you enabled in, say, Cloudflare, perhaps file a support ticket noting that their email protection is hiding package version strings.

QuantumNomad_•46m ago
Probably Cloudflare. For me it shows the package name rather than a redaction. But from memory, Cloudflare email protection redacts it that way in the HTML and then adds a little JS to put it back in which might also do some kind of check to see if it thinks you are a real user before unredacting it.
TZubiri•59m ago
My strategy of not using dependencies at all seems to be getting stronger everyday.

Also no LLM generated skipping this hypetrain completely. Just hand written code I can personally vouch for. Code in exchange for cash, this is professional business, Boss.

Btw, I'm available for hire, preferably by Pre Market Fit or pre-MVP startups, email in profile.

iLoveOncall•35m ago
Let us know in 2838 when you finish your first program, would love to check it out!
VorpalWay•14m ago
So, where do you draw the line? Do you accept having an OS? Because that is a huge dependency. So I assume you run directly on BIOS or UEFI? But even those are fairly sizable on modern systems.
zzril•21m ago
Had I found sthg like this, I'd be proud to tell everyone and certainly enjoy doing the writeup. But this smells like it was ai-written...
mavamaarten•18m ago
Yeah lots of weird emphasis on things a human wouldn't care about. And emphasis on what it isn't, rather than what it is. It's not Y, it's X. And there are two files!!!
WorldMaker•14m ago
A lot of this seems to be a reminder that the CommonJS module format should just be left to die already. Not that you can't pull similar tricks with `await import()` in ESM, but you can't easily grep an entire dependency for dynamic `require()` half as easily as you can can `grep import\s*\(` for dynamic import and analysis tools for static `import` keyword are easy to use/build rather than no such thing for CommonJS.

Someone thought I was joking when I said I always check JSR before NPM now, because I trust ESM so much more than CommonJS.

The NASA/ESA Mars Sample Return mission has been canceled

https://www.science.org/content/article/nasa-s-mars-sample-return-mission-dead
130•Muhammad523•1h ago•73 comments

Xiaomi MiMo v2.6

https://mimo.xiaomi.com/mimo-v2-6
76•volf_•28m ago•14 comments

What Sun got wrong

https://bcantrill.dtrace.org/2026/09/20/what-sun-got-wrong/
409•chmaynard•6h ago•228 comments

Attention is all you have

https://alicegg.tech/2026/09/21/attention
430•zer0tonin•6h ago•127 comments

AI coding has made CI a bottleneck, so we reworked ours to keep up

https://linear.app/now/ci-bottleneck-reworked
37•julian_digital•1h ago•19 comments

Why does mathmain need an encrypted loader?

https://safedep.io/mathmain-encrypted-loader/
71•abhisek•2h ago•16 comments

The Advisory Group on Mathematics and Artificial Intelligence

https://terrytao.wordpress.com/2026/09/21/advisory-group-on-mathematics-and-artificial-intelligence/
29•digital55•1h ago•11 comments

Turn off and restrict access to Apple Intelligence features on Mac

https://support.apple.com/guide/mac-help/turn-restrict-access-apple-intelligence-mchlb2e44f94/mac
160•alwillis•3h ago•96 comments

In Search of a Compositional Theory of Self-Stabilization

http://muratbuffalo.blogspot.com/2026/09/in-search-of-compositional-theory-of.html
25•matt_d•1h ago•1 comments

Transformers Explained Visually

https://poloclub.github.io/transformer-explainer/
10•aray07•56m ago•0 comments

Grok 4.7

https://x.ai/news/grok-4-7
386•meetpateltech•4h ago•328 comments

Apple Copland D11E4 Booting in the Browser

https://www.pagetable.com/300
24•luu•2h ago•2 comments

Advisory Group on Mathematics and Artificial Intelligence

https://openai.com/index/advisory-group-on-mathematics-and-ai/
57•js73js8•3h ago•39 comments

Divide by Depth for Instant 3D

https://gabrieloc.com/2026/09/15/perspective.html
6•gabrieloc•2d ago•1 comments

US halts flights at busy East Coast airports, says fiber line cut

https://www.reuters.com/world/us/faa-halts-some-us-east-coast-flights-due-communication-issues-20...
109•allanbreyes•1h ago•67 comments

Frontier AI on Your Own Hardware

https://timdettmers.com/2026/09/21/dlab-open-source-week/
18•pretext•1h ago•2 comments

A restored PDP-11/83 serving this page on 211BSD Unix

http://pdp1173.com/
73•davepl•4h ago•26 comments

This Digital Radio Gets Messages to the World’s Remotest Locations

https://spectrum.ieee.org/hermes-shortwave-radio-digital-data
57•SamuraiLion•4h ago•31 comments

Kev: Tiny Jev-like family of decision models built on top of Qwen3.5

https://github.com/jaredpalmer/kev/tree/main
352•tosh•13h ago•163 comments

Python Workers are now generally available

https://blog.cloudflare.com/python-workers-ga/
140•torutofu•7h ago•18 comments

Avoiding the babbling-idiot failure in a time-triggered communication system

https://ieeexplore.ieee.org/document/689473
17•ronfriedhaber•2h ago•5 comments

How do Traffic Signals Work (2019)

https://practical.engineering/blog/2019/5/11/how-do-traffic-signals-work
39•at1as•4h ago•27 comments

Fable 5 – Median thinking declined in August

https://twitter.com/Lon/status/2101793422487204027
274•espeed•4h ago•184 comments

Grim Fandango Puzzle Document (1996) [pdf]

http://gameshelf.jmac.org/2008/11/13/GrimPuzzleDoc_small.pdf
344•kelseyfrog•14h ago•84 comments

Show HN: A website that tracks US food prices every day

https://www.kadoa.com/food-prices
6•hubraumhugo•1h ago•1 comments

M5 Ultra Mac Studio Review

https://www.macstories.net/stories/m5-ultra-mac-studio-review-the-dream-mac-for-local-ai-agents/
202•piotrgrabowski•6h ago•188 comments

Noodle Gallery- Open-source, self-hosted alternative to Google Photos and Immich

https://digitalescapetools.com/tools/noodlegallery.html
41•xabd•6h ago•28 comments

RoboHarm: Do Frontier Robot Policies Refuse Unsafe Instructions?

https://robocurve.org/roboharm/
4•msadowski•1h ago•0 comments

macOS 27: Workaround to avoid downloading AI models and save storage

https://www.reddit.com/r/MacOSBeta/comments/1vlnf13/workaround_to_avoid_downloading_ai_models_and/
169•ano-ther•6h ago•77 comments

Heretic removes restrictions from language models

https://heretic-project.org/
206•Bluestein•16h ago•87 comments