logoalt Hacker News

mzajc • today at 11:20 AM • 1 reply • view on HN

> Most of the FOSS community is hostile to even creating basic sandboxing.

> 90s-style package management

> 80s/90s security model

> parsers from the 90/00s

Perhaps the crux of the issue, and the reason these new systems get pushback, is because people, myself included, don't like being told that they have to stop using the tools that served them well for arbitrary reasons (usually age). Similarly, you can't expect everyone to trade user control, convenience, usability, and more for security, or sometimes perceived security.


Replies

microtonal • today at 11:44 AM

We can debate about the 90s style package management, but old C-based file parsers and DAC access control were certainly not designed for modern attack vectors. Defending a device now requires layered security using a combination of among other things:

- Memory-safe languages where possible.

- Sandboxing of applications, parsers, etc., along with a strong permission model.

- Mitigation like secure app spawning, zeroing out pages, etc.

- Modern mitigation hardware-assisted mitigation like MTE and PAC.

- Storing secrets in a separate secure enclave (not ~/.config or ~/.ssh).

- Read-only and fully verified system partitions (anti-persistence).

This graph:

https://security.apple.com/assets/image/generated/xlarge_adv...

from Apple's MIE docs [1] shows where modern systems like iOS and Android are. An attacker often needs a long exploit chain to compromise a device and it becomes increasingly difficult with various mitigation techniques. On the standard Linux desktop it's often as easy as exploiting an image parser in a client. Old parsers in C have a history of bad vulnerabilities, exploiting one often gives you privileges of the process calling the function, since Linux applications mostly don't separate/sandbox parsers and from there you have direct access to all data of the user, since Linux applications are typically not sandboxed.

[1] https://security.apple.com/blog/memory-integrity-enforcement...

➕ show 2 replies