Live data from Hacker News

New speculative attacks on Apple CPUs

predictors.fail

251–260 of 365 posts

Re: New speculative attacks on Apple CPUs

#251

Can browser side channel attacks be made less effective by running another compute/branch heavy process?

Mine shitcoins in a web worker for extra protection?

Sure. Why not? It'd tick a couple of the boxes to possibly lower the exploit bitrate...

"Side channel attacks are a class of exploit that infers secrets by measuring manifestations such as timing, sound, and power consumption"

Re: New speculative attacks on Apple CPUs

#252

Earlier quoted context omitted.

idunno, as a professional web dev since 1998, I don't understand why Google, Apple and Mozilla are trying so hard to make the web browser like a complete OS (I technically understand why, I just think it's ridiculous). The amount of obscure APIs being added just boosts the surface area for vulnerabilities and makes low-resource web browsing nearly impossible. You either get "a web browser that works" or "a web browse…

> The Screen Wake Lock API provides a way to prevent devices from dimming or locking the screen when an application needs to keep running. https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake ... There's an obscure use case for this called "Watching Video"

Recipe sites will keep themselves awake also, which is nice.

Re: New speculative attacks on Apple CPUs

#253
post #84

Earlier quoted context omitted.

I'm not saying it's bad (I'm pretty close to a disclosure absolutist), though I don't really know what the norms are for hardware attacks --- both papers are well past the normal coordinated disclosure window for software.

The vendor requested embargo timelines can get pretty crazy. Intel requested an embargo for 21 months for SRBDS/Crosstalk. For Downfall, a more recent one, Intel requested a 12 month embargo to release a microcode update.

For all I know, that might be a reasonable ask for these kinds of vulnerabilities --- not that researchers have to honor them.

Re: New speculative attacks on Apple CPUs

#254

Earlier quoted context omitted.

idunno, as a professional web dev since 1998, I don't understand why Google, Apple and Mozilla are trying so hard to make the web browser like a complete OS (I technically understand why, I just think it's ridiculous). The amount of obscure APIs being added just boosts the surface area for vulnerabilities and makes low-resource web browsing nearly impossible. You either get "a web browser that works" or "a web browse…

> The Screen Wake Lock API provides a way to prevent devices from dimming or locking the screen when an application needs to keep running. https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake ... There's an obscure use case for this called "Watching Video"

Dunno, that API has only been available since Firefox 126 and I've been watching videos without having my screen go to sleep (or screensaver coming on) for like.. years and years (far before Firefox 126)

Re: New speculative attacks on Apple CPUs

#255
post #23

Earlier quoted context omitted.

Is it bad that I disable spectre mitigations on all my PCs to get a free double-digit-% performance boost?

Where and how do you disable these mitigations?

Not sure about Windows, but on Linux I used: https://unix.stackexchange.com/a/554922

Re: New speculative attacks on Apple CPUs

#256
post #196
post #194

Earlier quoted context omitted.

We already have this with (iirc) postMessage API.

That API is exactly one of the reasons Safari still runs some distinct origin sites in the same process together. Performantly implementing that API across processes is possible, but not quite trivial.

popup-based authentication does not actually need high performance.

Re: New speculative attacks on Apple CPUs

#257

Seems like speculative execution is just fundamentally insecure. With SPECTRE/MELTDOWN mitigations, doesn't CPU performance drop below the same CPU performance with no branch prediction at all? Should we move back to CISC? Or maybe VLIW?

I don't think so; speculative execution is the cornerstone of modern CPU performance. Even 15-year-old 32-bit ARM CPUs do it. The only phone/PC-grade processors without it are the first generation of Intel Atom, and I recall that early Atom processors sacrificed a ton of performance to keep power consumption low. I doubt this will change since mitigations are "good enough" to patch over major issues.

There is extremely popular Cortex-A53 which is in-order core.

Re: New speculative attacks on Apple CPUs

#258

Earlier quoted context omitted.

I don't think so; speculative execution is the cornerstone of modern CPU performance. Even 15-year-old 32-bit ARM CPUs do it. The only phone/PC-grade processors without it are the first generation of Intel Atom, and I recall that early Atom processors sacrificed a ton of performance to keep power consumption low. I doubt this will change since mitigations are "good enough" to patch over major issues.

There is extremely popular Cortex-A53 which is in-order core.

Yes and it's very slow as a result. In-order cores without speculative execution can't be fast. Not unless you have no memory and only operate out of something equivalent to L1 cache.

Memory is slow. Insanely slow (compared to the CPU). You can process stupid fast if your entire working set can fit in a 2KB L1 cache, but the second you touch memory you're hosed. You can't hide memory latency without out-of-order execution and/or SMT. You fundamentally need to be parallel to hide latency. CPUs do it with out-of-order and speculative execution. GPUs do it by being stupidly parallel and running something like 32-64 way SMT (huge simplification). Many high-performance CPUs do all of these things.

Instruction level parallelism is simply not optional with the DRAM latency we have.

Re: New speculative attacks on Apple CPUs

#260
post #215
post #34

Earlier quoted context omitted.

That's not a failure of Safari, it's required by window.open API semantics, in particular by the default Cross-Origin-Opener-Policy of "unsafe-none" [1]. By setting a different policy, sites can protect themselves against this. I guess technically browsers could open new windows in a new browsing context group regardless of this setting and relay the allowed types of messages via IPC (if any), but that would be a maj…

Can't edit my original post anymore: Firefox and Chrome do seem to isolate even same-browsing-context-group and bridge the required APIs via IPC, so hopefully Safari will catch up at some point. Basically, there are three scenarios: - Completely unrelated tabs (e.g. those you open manually, those opened via command-click, tabs opened via ' " or 'rel="noopener"' references etc.) – these are relatively easily isolated…

I worked on a browser team when Spectre/Meltdown came out, and I can tell you that a big reason why Firefox and Chrome do such severe process isolation is exactly because these speculative attacks are almost impossible to entirely prevent. There were a number of other mitigations including hardening code emitted from C++ compilers and JS JITs, as well as attempts to limit high precision timers, but the browser vendors largely agreed that the only strong defense was complete process isolation.

I'm not surprised to see this come back to bite them if after like 7 years Apple still hasn't adopted the only strong defense.

Post reply on HN