|
|
Log in / Subscribe / Register

The malicious "rustdecimal" crate

The malicious "rustdecimal" crate

Posted May 11, 2022 20:28 UTC (Wed) by wtarreau (subscriber, #51152)
In reply to: The malicious "rustdecimal" crate by epa
Parent article: The malicious "rustdecimal" crate

It just illustrates the problems with distributed development with excessive trust of unknown dependencies. When you think about it, a bit of googling or stackoverflow sends you to the wrong lib, you add a dependency to it and that's all you have to do, nobody checked any update, there's no intermediary distro maintainer involved to have a review before it lands in the OS. There's the same problem with other languages like perl, python, nodejs and so on where everyone finds it totally normal to automatically download half of the world's creativity and use it as a building block for something that will eventually reach production.

I should serve as an illustration about "what if the author was really badly intented". Because clearly it looks like an experiment that should serve as a warning against such bad practices. Similarly if I had time to waste I'd create a stupid project that randomly does nasty things to those who install it via the documented "curl | sudo" procedure.


The LWN site is currently under high scraper load, so comment display has been suppressed for anonymous users. If you are a human, you may read the comments by clicking the button below:

Note: you can avoid this step in the future by logging into your LWN account.


Copyright © 2026, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds