News for hackers. Stuff that matters.
Re:Rust Malware Staged on Crates.io by woodruffw on Friday August 25, 2023 @12:55PM (#37264037)
Proc macros can do anything, but this is not meaningfully different from mechanisms in most packaging ecosystems: Python runs arbitrary code (via `setup.py` or a potential in-tree build system) when you install a source distribution, Ruby evaluates the Gemspec's source code, etc.

Even Rust has plenty of avenues for arbitrary install-time code execution: `build.rs` runs as arbitrary Rust code without a sandbox, regardless of any proc macros.

(This is not to say that any of this is good! But it's worth having a full picture of the status quo.)

Re:Rust Malware Staged on Crates.io by oconnor663 on Friday August 25, 2023 @02:26PM (#37265360)
I think Matt Godbolt said he found it impossible to fix all the ACE vulnerabilities on godbolt.com (before code execution was a feature), and that was only GCC command line flags, not even makefiles.