News for hackers. Stuff that matters.
Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by nrengan on Thursday April 30, 2026 @03:47PM (#47967352)
Most of my pip installs come from Claude Code suggesting them now and me just hitting enter. Model was trained months ago, so it has no clue what got compromised this week. We built the worst possible filter for "is this package safe right now".
Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by BrenBarn on Thursday April 30, 2026 @03:57PM (#47967446)
By "the worst possible filter" do you mean "hitting enter when claude tells you to"?
Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by throwawayqqq11 on Thursday April 30, 2026 @04:23PM (#47967748)
"Sandbox this project before you make no mistakes."
Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by moritzwarhier on Thursday April 30, 2026 @04:42PM (#47967954)
What filter?

You say you rely on CC to suggest software to install from the internet, and then you install it.

I haven't heard anyone suggest CC or any LLM as a "filter" for "is this package safe right now", and it seems like a very bad heuristic to me, not only, but also for the reason you gave.

Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by nrengan on Thursday April 30, 2026 @05:04PM (#47968206)
Well, people weren't checking CVEs before pip install before CC either, CC just scaled the habit to a larger audience at a faster cadence. The blast radius for day-zero compromises is what changed.
Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by ShyCodeGardener on Friday May 01, 2026 @09:01AM (#47974289)
How has the blast radius changed though? The vibecoders that weren't developers before? If someone switched from pip installing themselves to having Claude do it, I don't see how that increased the blast radius.
Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by nulltrace on Thursday April 30, 2026 @07:21PM (#47969591)
Stale training data is part of it. But even a current model can't tell what setup.py is going to run on your box. Nothing actually inspects the package before it executes. You'd want something that pulls the metadata and checks what hooks are in there before anything runs.
Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by ashishbijlani on Thursday April 30, 2026 @07:31PM (#47969678)
Built Packj [1] to do exactly this.

1. Packj (https://github.com/ossillate-inc/packj) detects malicious PyPI/NPM/Ruby/PHP/etc. dependencies using behavioral analysis. It uses static+dynamic code analysis to scan for indicators of compromise (e.g., spawning of shell, use of SSH keys, network communication, use of decode+eval, etc). It also checks for several metadata attributes to detect bad actors (e.g., typo squatting).

Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by throwatdem12311 on Thursday April 30, 2026 @08:11PM (#47969959)
Stop blaming the LLM for your laziness and lack of due diligence.
Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by zarzavat on Friday May 01, 2026 @12:00AM (#47971169)
Indeed, I also use LLMs to suggest dependencies but:

- I ask the LLM for multiple options

- I tell it what I need and what I don't need

- I then look at the packages it has suggested. Sometimes LLMs suggest unmaintained packages with 5 downloads a month just because it came at the top of a web search.

- if it's not a very well known project, I look at the code, I have received vibecoded dependency suggestions before that don't even function

LLMs are useful resources for "getting the pulse of the ecosystem", but just pressing enter is crazy.

Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by throwatdem12311 on Friday May 01, 2026 @12:27AM (#47971290)
exactly
Re:Shai-Hulud Themed Malware Found in the PyTorch Lightning ... by vovavili on Friday May 01, 2026 @07:12AM (#47973399)
This is easily circumvented by not pressing Enter.