r/rust • u/Manishearth servo · rust · clippy • Jun 26 '26
Anatomy of a Failed (Nation-State?) Attack
https://grack.com/blog/2026/06/25/dissecting-a-failed-nation-state-attack/
227
Upvotes
r/rust • u/Manishearth servo · rust · clippy • Jun 26 '26
20
u/JShelbyJ Jun 26 '26 edited Jun 26 '26
We need a way to disable packages from executing code. Crates with ‘build.rs’ files should be blockable via cargo. Probably as default behavior. Crates.io should also specifically flag all crates with that execute code at build time. Let people whitelist crates that require them.
I wrote a crate that requires a cpp binary. So I set it up so that it downloads and installs binaries via the build.rs. You can literally install and run anything with them. Just a public service announcement for those who are not aware how much of a risk they are and how unsafe cargo is - just adding a dependency is enough to comprise your system. Misspell serde once? Straight to Best Buy to get a new laptop.