Considering the frequency and severity of malicious code being added to the Rust Crates ecosystem... is Rust the least secure programming language? More from The Lunduke Journal:https://lunduke.com/
This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit lunduke.substack.com/subscribe
Audio and video play straight from the show's own hosting. PodSubs stores and serves no media.
Transcript
From the show. Tap a time to play from there.
SPEAKER_00Considering the frequency and severity of malicious code being added to the general Rust programming ecosystem, Rust crates in particular, I would like to ask the following question. And I ask it a little bit tongue-in-cheek because it's fun to poke the giant crazy rabbit bear that is Rust. But also a little bit on the serious side. Is Rust... The least secure programming language right now in modern usage,
SPEAKER_00not like, you know, just in general, but like, like right now in modern usage is Rust the least secure programming language because Because of all these issues, right? Because you don't hear about, and while there have been security issues on every language, on Python, on C++, on Objective-C, there's been security issues for sure. The frequency of fairly severe ones coming out of the Rust world is a little off the charts. Let me read this.
SPEAKER_00We had another one come in. Just a couple of days ago. So let me just read what I posted here over on X. Yet another massive attack on Rust crates, the code library collections that darn near every Rust programmer uses, being compromised. By compromising potentially millions of Rust programmers, not a few, millions. Every Rust programmer who compiled any project which referenced one of the compromised crates, including the popular...
SPEAKER_00ArrayRefCrate, which has been downloaded over 244 million times. Now, you also, if you did that, you unknowingly downloaded ProcMacro1. Which is another crate containing malicious code. And this is not the first time a malicious crate has been discovered within Rust. In fact, it's kind of becoming a regular occurrence.
SPEAKER_00The One Ring Rust Crate. That was yet another example. Here, let me show you. I think I've got a screenshot here. Here it is. Compromised Rust Crate One Ring performs code exfiltration. This did all sorts of nasty stuff. Basically went into your project, grabbed all your code, sent it to an offsite server, you know, that sort of thing. It was basically mining for your information. This was from back in June. This is happening pretty quickly. Pretty frequency. It's not just that this isn't the first time we've seen malicious code in
SPEAKER_00the rust crates ecosystem. It's happening so regularly that it's almost It's almost becoming blase. It's becoming boring. It's so frequent. It's rare that a month or two goes by without more malicious code being discovered in the Rust ecosystem. This time was particularly ridiculous Because again, it was with this ArrayRef crate. Let's see here. It was discovered on August 20th. Sorry, they got the report the Refs Foundation did on August 20th about this Proc Macro 1.
SPEAKER_00The Security Response Team, blah, blah, blah, blah, blah. We discovered the Popular Array Rift Crate had recently been published and made to depend on this crate with the most recent version yanked. We have removed the right, removed blah, blah, blah, blah, blah. So the Rust team is fairly on top of it when they find this stuff, but there's so much coming out and it just gets a constant onslaught of it. So my question is, considering... How frequently malicious code gets installed forcefully on the computers
SPEAKER_00of Rust programmers across the globe, potentially by the millions. Are the Rust Evangelists some of the most hypocritical people on planet Earth? Because the whole point, the whole selling factor of Rust has been that it's fixing memory safety to make our code secure. Oh, if you're using C and C++, oh, there might be memory safety bugs, which means it's super insecure. Security vulnerabilities everywhere.
SPEAKER_00Yet... Most of the time you see people replacing and rewriting old C code in Rust. They don't have any single actual bug to point to and say, hey, that's the security bug in the original C code that we're fixing. I don't, at this point...
SPEAKER_00It seems insane to me that a Rust advocate could see the state that the Rust ecosystem in general is in, in terms of security, and then continue to parrot the, oh, you gotta have memory safety via Rust to be secure. At that point, I mean, they know. They know they're just full of BS and hot air, right? So anyway, I thought this was a little bit on the fan... Fascinating site. There'll probably be more. There's going to be so many random rust vulnerabilities.
SPEAKER_00There's no way I'm going to report on them all. This one I had to report on because it was so huge with over 244 million downloads of this crate. That's like really, really popular. And then that crate gets, oh my gosh, that's huge. So, you know, just assume... I think it's fair to assume that there's more Rust security vulnerabilities coming just based on the past track record. I'm not going to have time to report on them all. It's just ridiculous. We just have to assume that if you're programming with Rust,
SPEAKER_00you have an insecure system at this point. Thank you to The Lunduke Journal subscribers for making it possible to do the work that I do. Look at these screenshots I'm scrolling past. They're so fancy. Look at these ones at the end. Is that OS 2 1.3 back when it was mine? Microsoft OS 2. Oh, there's Windows Mobile, Windows CE 4.2. Oh my gosh, Atari Unix System V. Oh, and the Newton OS. There sure is a lot of space on those walls. All the other ones are full.
SPEAKER_00There's $25. Five full walls of names of Lunduke Journal lifetime subscribers. Just huge numbers. I don't know how many of you there are on there. I'm not going to count. It's too hard. But if you want to get your name added to some of the other ones, there are a couple of empty If you go to lunduke.com and scroll all the way to the bottom, you can find them there. Thank you to everyone who has made it possible to do this work. Truly appreciate it. And with that, ladies and gentlemen, boys and girls, nerds and nerdettes, I'm going to get yelled at a lot. I'm going to get yelled at a lot.
SPEAKER_00It's funny. This episode, we really didn't get political at all, right? This story really doesn't get political. It's just, oh, we're just talking about security vulnerabilities and programming languages and the hypocrisy of promoting a programming language to fight against insecurity when that programming language is itself astoundingly insecure. It's an interesting topic. It's not a political topic, but I'm going to get yelled at nonstop from this one. Oh, man, they're going to come at me. The Rust advocates are going to come at me so hard.
SPEAKER_00They're going to ignore everything that I said in this one. They're going to be like, one, two, one, two, one. He doesn't understand the things about computers. He doesn't understand. And I guarantee you, the vast majority of people yelling about that will probably be first. And with that, ladies and gentlemen, boys and girls, nerds and nerds, we've got their programmer socks on, little cat ears, across the inner tubes, I do declare, end broadcast.
Debian is "much more of a political movement than a technological one."The Lunduke Journal & LCOS:https://lunduke.com/ This is a public episode. If you'd like to discuss this with other subscribers or get access to...
But don't worry. It's Rust. So it's MeMoRY sAfE.The Lunduke Journal & LCOS:https://lunduke.com/ This is a public episode. If you'd like to discuss this with other subscribers or get access to bonus episodes, visit...
“This policy works in the same way as the Code of Conduct: violations will first result in a warning, and repeated violations may result in a ban.”The Lunduke Journal & LCOS:https://lunduke.com/ This is a public...
Plus: Red Hat Dev says AI users are "Nazis" who "voted for Republicans" and are "unsafe to have around".The Lunduke Journal & LCOS:https://lunduke.com/ This is a public episode. If you'd like to discuss this with other...
Don't get too excited just yet: "RISC-V is not yet drop-in and boot-up ready for PureOS. Most peripherals are not supported in mainline Linux."The Lunduke Journal & LCOS:https://lunduke.com/ This is a public episode. If...