News for hackers. Stuff that matters.
Re:Malicious Rust crate Arrayref runs a build-time payload by burnt-resistor on Thursday August 20, 2026 @10:49AM (#49375422)
More than that, we need capability-based languages. No capability passed to it, no permission.
Re:Malicious Rust crate Arrayref runs a build-time payload by kibwen on Thursday August 20, 2026 @10:58AM (#49375578)
First we need capability-based OSes, like we should have had decades ago if worse-is-better hadn't stuck us with Unix. I don't need to care whether or not a program was written in a capability-aware language if the OS fundamentally takes care of that for me.
Re:Malicious Rust crate Arrayref runs a build-time payload by grommz on Thursday August 20, 2026 @11:56AM (#49376405)
HarmonyOS is a capability based OS. I don't know why anyone in China is still using Rust. The biggest social engineering hack was for the Rust team to convince developers that it is a safe language.
Re:Malicious Rust crate Arrayref runs a build-time payload by pjmlp on Thursday August 20, 2026 @02:33PM (#49378394)
Actually HarmonyOS NEXT is getting its language as well, Cangjie.

https://cangjie-lang.cn/en

https://cangjie-lang.cn/en/docs?url=%2F1.0.0%2Fuser_manual%2...

Re:Malicious Rust crate Arrayref runs a build-time payload by ptx on Thursday August 20, 2026 @11:14AM (#49375822)
FreeBSD does this with Capsicum: https://wiki.freebsd.org/Capsicum
Re:Malicious Rust crate Arrayref runs a build-time payload by burnt-resistor on Thursday August 20, 2026 @02:43PM (#49378483)
1. seL4 exists. I haven't seen much more formal and rigorous than it. Efforts have ported the Linux kernel and RTOS-things to it.

2. Add syscall(s) to POSIX, which encourages *nix adoption, with an API like the following:

- Drop capabilities for thread/process except allow list.

- Test if current thread/process has all listed capabilities.

- List should be able to represent capabilities and their attributes, much like a single unveil() OpenBSD call, maybe as an array of/pointer to struct.

- (Program crashes if syscall capability is missing.)

Re:Malicious Rust crate Arrayref runs a build-time payload by mike_hearn on Thursday August 20, 2026 @01:16PM (#49377441)
Re:Malicious Rust crate Arrayref runs a build-time payload by burnt-resistor on Thursday August 20, 2026 @02:11PM (#49378116)
No. Object-oriented brings things many languages cannot use. Also, that was a tl;dr fluff blog with barely any examples.
Re:Malicious Rust crate Arrayref runs a build-time payload by mike_hearn on Thursday August 20, 2026 @05:23PM (#49380465)
All languages in mainstream use are imperative and at least somewhat object oriented, other than SQL. But many of those don't have what it takes to implement capabilities (too flexible/dynamic).
Re:Malicious Rust crate Arrayref runs a build-time payload by burnt-resistor on Friday August 21, 2026 @06:48AM (#49386259)
No, this is false and you're using weasel words and creating a strawman.

I said add functions or capabilities to make it happen.

You don't read.