News for hackers. Stuff that matters.
Re:The xz attack shell script by zmmmmm on Tuesday April 02, 2024 @06:45PM (#39911659)
The way python's run time literally executes code when you import a module makes it seem pretty easy to taint things from afar. You only need to control a single import anywhere in the dependency hierarchy and you can reach over and override any code somewhere else.
Re:The xz attack shell script by sunshowers on Tuesday April 02, 2024 @06:46PM (#39911666)
Oh yeah, that's a fantastic point.
Re:The xz attack shell script by eru on Tuesday April 02, 2024 @11:35PM (#39913363)
There are lints that will warn you, if your imported module does anything apart from define functions and classes.

(Though not sure how fool-proof these are.)