Live data from Hacker News

Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

semgrep.dev

111–120 of 196 posts

Re: Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

#111
post #85
post #3

A repository search shows 2.2K repos with the text "A Mini Shai-Hulud has Appeared", all created within the past day: https://github.com/search?q=A%20Mini%20Shai-Hulud%20has%20Ap...

Why can't GitHub get on the case and just block any repo where the README matches the regex? I thought they'd have learned their lesson the last time it happened. This malware isn't even trying. Then again it's Microsoft so they're not even trying either.

“Some people, when confronted with a problem, think ‘I know, I’ll use regular expressions.’ Now they have two problems.”

Re: Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

#113
post #32

This might just be the frequency illusion at play, but there seem to have been a number of high-profile supply chain attacks of late in major packages. There are several articles on the first few pages of HN right now with different cases. Looking back ten years to `left-pad`, are there more successful attacks now than ever? I would suspect so, and surely the value of a successful attack has also increased, so are we…

>This might just be the frequency illusion at play, but there seem to have been a number of high-profile supply chain attacks of late in major packages.

It's real. As of the beginning of April we'd had 7 in the past 12 months vs 9 in the two decades before that: https://www.jefftk.com/p/more-and-more-extensive-supply-chai...

Re: Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

#114
post #85

Earlier quoted context omitted.

Why can't GitHub get on the case and just block any repo where the README matches the regex? I thought they'd have learned their lesson the last time it happened. This malware isn't even trying. Then again it's Microsoft so they're not even trying either.

“Some people, when confronted with a problem, think ‘I know, I’ll use regular expressions.’ Now they have two problems.”

[dead]

Re: Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

#115
post #22

I cant wait to have no dependencies. An extreme example is now when I make interactive educational apps for my daughter, I just make Opus use plain js and html; from double pendulums to fluid simulations, works one shot. Before I had hundreds of dependencies. Luckily with MIT licensed code I can just tell Opus to extract exactly the pieces I need and embed them, and tweaked for my usecase. So far works great for hobb…

The problem with this is now you are solely responsible for managing all of the changes, all of the variation of life. Chrome changed the shape of this API, you are responsible for finding it and updating it. Morocco changed when their daylight savings took effect, now you need to update your date/time handling code. There are a lot of these things that we take for granted because our libraries handle it for us, and…

I think we are stuck with LLMs. They are already in a place where they can find these issues in the first place. They can access RSS feeds. You could cron an agent to look to see if you are pwned as frequently as you want at literally almost zero cost. When you do ingest the libraries, keep a list and of what version and that can help as well.

Re: Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

#116

Earlier quoted context omitted.

FTFA > The attack steals credentials, authentication tokens, environment variables, and cloud secrets, while also attempting to poison GitHub repositories.

That doesn't really explain why there is a bunch of GitHub repos created as well. If I remember correctly from Shai-Hulud 2, the attacker extricated creds by posting them in public github repos with minor easily reversible encryption. I believe it was double b64 last time. I'm assuming the logic there is that every security researcher and company is going to pull and scan those creds for their stuff and their clients…

[dead]

Re: Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

#117

> Running pip install lightning is all that is needed to activate FYI, pip added cooldowns in 26.1: * https://discuss.python.org/t/announcement-pip-26-1-release/107108 * https://ichard26.github.io/blog/2026/04/whats-new-in-pip-26.1/ To use: * CLI: pip install --uploaded-prior-to=P1D ... * Env Var: PIP_UPLOADED_PRIOR_TO=P1D pip install ... * Config: pip config set global.uploaded-prior-to P1D

Even if you package manager does not support it, if you generate sboms your implement cooldowns across ecosystems https://www.interlynk.io/resources/cooldowns-with-sboms

Re: Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

#118
post #41

Earlier quoted context omitted.

Vendoring don't basically copy what go does?

You can trust a single big stdlib more than the 100 dependency that tokio pulls at any given time.

Yeah then you can version lock changes to one thing post-evaluation vs or even easier as noted above, download the stdlib and host it yourself.

Re: Shai-Hulud Themed Malware Found in the PyTorch Lightning AI Training Library

#119

Claude Code updates almost every day, sometimes multiple times. One of these days Anthropic is going to be compromised and we’re all gonna be f*cked.

Not if one is running it in a non-privileged vm/container with restricted network access. But everything is YOLO these days.
Post reply on HN