Re:How Shopify Uses WebAssembly Outside of the Browser
by CyberRabbi on Saturday December 19, 2020 @07:38AM
(#25477058)
Running untrusted code in a wasm vm doesn’t add any extra defense over just using seccomp. It just adds unnecessary overhead and increases attack surface.
[ Parent
| on HN ]
Re:How Shopify Uses WebAssembly Outside of the Browser
by alquemist on Saturday December 19, 2020 @07:56AM
(#25477123)
Assuming that Intel / ARM microarch implementations are bug free, that is correct. In the real world there are no bug free implementations.
Edit. This is the strategy Chrome sandboxing uses: a hardened runtime (JS/WASM) inside a seccomp enclosure. https://chromium.googlesource.com/chromiumos/docs/+/master/s...
Re:How Shopify Uses WebAssembly Outside of the Browser
by CyberRabbi on Saturday December 19, 2020 @08:15AM
(#25477213)
Running code in a wasm vm doesn’t magically prevent user code from exploiting uarch bugs. Lucet specifically does not mitigate spectre variant 2.
Re:How Shopify Uses WebAssembly Outside of the Browser
by feanaro on Saturday December 19, 2020 @08:14AM
(#25477206)
seccomp escapes are a thing and if you're inside a restrictive environment such as WASM, it is harder to achieve it.
Re:How Shopify Uses WebAssembly Outside of the Browser
by CyberRabbi on Saturday December 19, 2020 @08:18AM
(#25477226)
I think you’re referring to seccomp-bpf. seccomp has never been escaped and it is unlikely such a bug could happen due its simplicity. If you do not know the difference between seccomp and seccomp-bpf, please check references: https://en.wikipedia.org/wiki/Seccomp
Re:How Shopify Uses WebAssembly Outside of the Browser
by tuwtuwtuwtuw on Saturday December 19, 2020 @09:05AM
(#25477450)
Unlikely? Sounds like you think it could happen.
Re:How Shopify Uses WebAssembly Outside of the Browser
by CyberRabbi on Saturday December 19, 2020 @01:03PM
(#25479507)
Nothing is 100%. It’s effectively impossible.
Re:How Shopify Uses WebAssembly Outside of the Browser
by bobthebuilders on Saturday December 19, 2020 @05:22PM
(#25481820)
This disproves your point. How many "effectively impossible" exploits have come out recently?
Re:How Shopify Uses WebAssembly Outside of the Browser
by CyberRabbi on Saturday December 19, 2020 @06:29PM
(#25482308)
The semantic gymnastics here are pretty interesting. It’s about as secure / impossible to penetrate as anyone could reasonably guarantee in the face of future uncertainty. If you don’t understand why, please check references on how seccomp works: https://en.Wikipedia.org/wiki/Seccomp