> The threat resides in the chips’ data memory-dependent prefetcher, a hardware optimization that predicts the memory addresses of data that running code is likely to access in the near future. Are we nearing any sort of consensus that any form of speculation is bad? Is there a fundamentally secure way to do it?
Should we make a petition for apple to make lockdown-like mode that disables speculative execution? I'll sign up for that.
New vuln in Apple M-series allowing secret keys extraction can't be patched
61–70 of 145 posts
Re: New vuln in Apple M-series allowing secret keys extraction can't be patched
#62Earlier quoted context omitted.
For cryptographic applications yes. That is why people have spent significant effort to implement constant time algorithms to replace standard math and bitwise operations. At the hardware level any optimizations that change performance characteristics locally (how long the crypto operation directly takes) or non locally (in this case the secrets leak via observation of cache timings in the attacker's untrusted code)…
> Where possible try utilizing HSMs, yubikeys, secure enclaves - any specialized hardware that has been hardened to protect key material. Are there any circumstances where this hardware is accessible in the browser? As I understand, it is not generally available (if at all) for any cryptography you might want to do in the browser.
Re: New vuln in Apple M-series allowing secret keys extraction can't be patched
#63Another day, another speculative execution vuln.. IMHO: all this speculation is a local maximum and it show we have fundamental issue with how we design 'computers'
Re: New vuln in Apple M-series allowing secret keys extraction can't be patched
#64Earlier quoted context omitted.
My personal opinion is that we should solve it the opposite way - don't run untrusted code in the first place (with rare exceptions like dedicating an entire cpu core and a region of memory to a virtual machine, etc). Speculation is one of many side channel attacks, who knows what kind of crazy RF-based exploits are out there. AFAIK we still haven't fully solved rowhammer. I think for "normal" users the main risk is…
So, CPUs or cores (and maybe RAM) dedicated to run only trusted and only untrusted code? Examples (I'm running Debian) The kernel, the X11 server, terminal, ssh, bash, anything coming from the official Debian repos including the password manager: in the trusted environment. browsers, electron apps, anything installed from unofficial repos or language and package managers (npm, rvm, asdf, etc): in the untrusted enviro…
> X11 server
Those can very easily execute untrusted code.
Re: New vuln in Apple M-series allowing secret keys extraction can't be patched
#65Earlier quoted context omitted.
My personal opinion is that we should solve it the opposite way - don't run untrusted code in the first place (with rare exceptions like dedicating an entire cpu core and a region of memory to a virtual machine, etc). Speculation is one of many side channel attacks, who knows what kind of crazy RF-based exploits are out there. AFAIK we still haven't fully solved rowhammer. I think for "normal" users the main risk is…
So you browse the Internet with JavaScript turned off? You're a bigger person than I am ;). The risk here is that there are more individuals with the skills to take this type of attack and bring it to a browser near you. One apps data is another apps code.
Re: New vuln in Apple M-series allowing secret keys extraction can't be patched
#66Earlier quoted context omitted.
Because the timing difference is extraordinarily subtle, far too small to measure compared to regular network timing noise.
Noise doesn't protect against that, statistics is a thing. But I think you might overall be right that this requires two colocated processes: the paper talks about how the DMP breaks assumptions made by "the constant-time programming model", and I took this to mean that constant-time algorithms aren't constant-time any more. Reading more closely, I think maybe the issue is that "the constant-time programming model" w…
In any case, the stack of "this could not possibly be workable / but with enough statistics it can, and computers are plenty fast to generate statistically useful case numbers" is truly mindboggling with these attack vectors.
Re: New vuln in Apple M-series allowing secret keys extraction can't be patched
#67Now looking for an affordable M3 Max MBP that should cost less than my car :-)
Here in Singapore, everything that Apple does costs less than any car you could buy.
There are a bunch of second hand cars below 6000 Singapore Dollars on this website[1], which is the price of the 64GB/1TB Mac Studio[2].
1 - https://www.sgcarmart.com/used_cars/listing.php?MOD=&PRC=18&...
Re: New vuln in Apple M-series allowing secret keys extraction can't be patched
#68Earlier quoted context omitted.
So, CPUs or cores (and maybe RAM) dedicated to run only trusted and only untrusted code? Examples (I'm running Debian) The kernel, the X11 server, terminal, ssh, bash, anything coming from the official Debian repos including the password manager: in the trusted environment. browsers, electron apps, anything installed from unofficial repos or language and package managers (npm, rvm, asdf, etc): in the untrusted enviro…
> terminal, ssh, bash > X11 server Those can very easily execute untrusted code.
Re: New vuln in Apple M-series allowing secret keys extraction can't be patched
#69> The threat resides in the chips’ data memory-dependent prefetcher, a hardware optimization that predicts the memory addresses of data that running code is likely to access in the near future. Are we nearing any sort of consensus that any form of speculation is bad? Is there a fundamentally secure way to do it?
For cryptographic applications yes. That is why people have spent significant effort to implement constant time algorithms to replace standard math and bitwise operations. At the hardware level any optimizations that change performance characteristics locally (how long the crypto operation directly takes) or non locally (in this case the secrets leak via observation of cache timings in the attacker's untrusted code)…