4 ms·
This is the closest thing to a javascript implementation I have seen: http://xlab.tencent.com/special/spectre/js/check.js http://xlab.tencent.com/special/spectr
by diyseguy 9y ago
This is the closest thing to a javascript implementation I have seen: http://xlab.tencent.com/special/spectre/js/check.js http://xlab.tencent.com/special/spectre/js/check.js
from: http://xlab.tencent.com/special/spectre/spectre_check.html http://xlab.tencent.com/special/spectre/spectre_check.html
- kodablah 9y agoNice. Reviewing the code, it is as the PDF said where they are just constantly incrementing a val in the shared buffer to get a fairly precise timer. But it seems to be using the timing to determine across 256 indices (99 tries to check) to check cache hits. So just removing this timer is not enough, it just increases the surface area of bytes you have to read and sift through to see if you have other mem? Anyone have a writeup on this?
- JonathonW 9y agoIsn't the high-precision timer required to detect a cache hit or miss-- as in, the side channel being exploited here is in the timing of a cache hit or miss; there's no data leaked directly into Javascript? That's not to say that removing SharedArrayBuffer (and high-precision performance timers, which were removed a couple years back to mitigate some other timing-related vulnerabilities) is enough to completely eliminate Spectre; there might be other methods that can time accurately enough to reveal information. (I might be completely wrong here, but this is my current understanding of the situation, at least.)
- mwambua 9y agoNice tool. Sadly, it reports that my browser (Chromium 63.0.3239.132 with strict site isolation (chrome://flags/#enable-site-per-process) enabled) is vulnerable to Spectre. Do you know if there are any other steps that I can take to secure myself aside from using Firefox?
- btb 9y agoI'm running the same version of Chrome(with site isolation enabled), its reporting "Your browser is NOT VULNERABLE to Spectre" for me. Also in incognito mode with extensions disabled.
- mwambua 9y agoThanks! It reports the same thing for me too now. I had to enable Top document isolation (chrome://flags/#enable-top-document-isolation) as well.
- gadgetoid 9y agoFound this earlier today via GitHub search: https://github.com/cgvwzq/spectre/blob/master/spectre.js https://github.com/cgvwzq/spectre/blob/master/spectre.js
- dingo_bat 9y agoInteresting that Firefox on my phone is shown vulnerable but Samsung browser is not.