Aren’t they very easy to exploit, for a mildly dedicated actor? I don’t see any decent solution to this. Any line could contain a wget | bash...
Aren’t they very easy to exploit, for a mildly dedicated actor? I don’t see any decent solution to this. Any line could contain a wget | bash...
Or you can not, and work to control your supply chain. Host the artifacts yourself and choose carefully which ones you use.
There is no magic bullet, just boring and painful risk-control processes. But they do help.
Wayland, SELinux, Flatpak, PipeWire. These will save us or at least reduce the problem of evil maintainers.
This model has been tried and proven for over a decade on mobile. What we call malware on mobile is simply the app doing bad things with what you enter in to the app itself and not the desktop class "steals all your data and then encrypts it"
If the sandbox is configured by the same person or organization that writes the code there's no improvement in trust.
That's why package maintainers have a role in Linux distributions.
Maintainers do not have the time or ability to check for even intentional malware let alone security bugs.
There is no way around having to trust somebody else.
Debian does very extensive vetting of the contents of packages - and of the volunteers who get to become Debian Developers.