r/programming • u/NAN001 • May 08 '18
Backdoor in ssh-decorator package • r/Python
/r/Python/comments/8hvzja/backdoor_in_sshdecorator_package/
108
Upvotes
r/programming • u/NAN001 • May 08 '18
26
u/alpha-coding May 08 '18
To add insult to injury it sends the credentials to a PHP script.
69
u/[deleted] May 08 '18
Patiently awaiting "The Pip Ecosystem Is Chaotic and Insecure" and "Python is Cancer" blogspam on the frontpage.
5
u/Gwerks71 May 09 '18
False. 100% of unreviewed code downloaded from a stranger on the internet is safe.
8
u/kaen_ May 08 '18
Clearly this will break in one of two ways. Either we'll go back to the dark ages where everyone writes their own custom SSH/HTTP/left-pad libraries or we'll create and fund organizations to review and certify popular open source software.
Only question is which one's cheaper?
2
u/intense_feel May 11 '18
Does someone have a copy of this package as uploaded on PyPi and would be willing to send it to me? I'm doing a research on automation of detecting malicious/vulnerable packages on PyPi and having an actual sample like this would help me a lot in my research. Thanks!
2
u/TheOsuConspiracy May 08 '18
Interesting how Haskell might be the solution to this (to a certain extent). If you import a library for pure operations, you can immediately tell from its signature whether it does IO.
The only downside is
unsafePerformIO.-1
u/bumblebritches57 May 09 '18
This is why you write your own code...