4 ms·
> Using wasm in addition to seccomp strictly increases your attack surface. If you want to maximize security you would only use seccomp. Huh? How so?
by feanaro 6y ago
> Using wasm in addition to seccomp strictly increases your attack surface. If you want to maximize security you would only use seccomp.
Huh? How so?
- CyberRabbi 6y agoThe wasm vm has to parse, validate, and compile untrusted input. It also exposes host calls. Those are all potential attack vectors. That’s at least roughly 50K LOC.
- imtringued 6y ago>It also exposes host calls. Only if you grant explicit access to them. What usually happens is that there is a vendor provided API that only gives you access to exactly what you need which is significantly less powerful than a complete linux process that can write to files, spawn background threads, etc all by default. Yes you can block access to these things but you're going to miss something at some point.
- CyberRabbi 6y agoIn seccomp the only syscalls available are read, write, exit, and sigreturn. There is nothing to miss