4 ms·
Yes javascript is sufficient. I think Spectre is theoretically possible with just untrusted data (not just untrusted code). It would need an existing trusted
by paulhodge 9y ago
Yes javascript is sufficient.
I think Spectre is theoretically possible with just untrusted data (not just untrusted code).
It would need an existing trusted program that has a branch-predicting loop like the one in the paper. The attacker would feed untrusted data into the loop and then observe secrets through cache timing.
It's weird code, so it's probably unlikely an existing program would have it, but it's not outside the realm of possibility. The attacker would also need a high-precision way to measure the timing of the operation, which also might be hard to find in an existing program, but not impossible.
Just something else to keep you awake at night!
- kllrnohj 9y agoThey need code execution to observe that cache timing, though, and they need to prime the branch predictor and cache.
- paulhodge 9y agoI think the branch predictor can be primed with well-crafted data? (start off with a long series of 0s for X) For the other aspects like getting the cache timing, that does seem harder. I don't really know if it's feasible in practice.