Live data from Hacker News

NetSpectre: Read Arbitrary Memory Over Network [pdf]

misc0110.net

11–20 of 24 posts

Re: NetSpectre: Read Arbitrary Memory Over Network [pdf]

#11
This can pretty much all be laid at the feet of overly complex CPU designs and instruction sets. Looks like complexity is as evil for security in hardware as it is in software.

On the plus side part of why you see more of these kinds of attacks is that we have actually made progress on software security.

Re: NetSpectre: Read Arbitrary Memory Over Network [pdf]

#12
post #8

Earlier quoted context omitted.

Right but didn't we already know that this hypothetical attack class exists? The possibility of remote spectre exploits like this was discussed in the original spectre paper. It's certainly interesting to construct an example and show it working, but this isn't surprising, is it? Just trying to understand if I've missed something here. (The AVX side channel is certainly new and interesting, though!)

Other than the AVX side channel, the interesting thing is that it demonstrates that the remote aspect definitely works. Before, it was theorized but might have proven to never give sufficient signal. While many were confident, now we know. Further, it shows how to do it (classifier) and gives a very good model for what bandwidth can be expected in practice. And still further, that bandwidth is entirely sufficient for…

Indeed, that makes sense. Thanks!

Re: NetSpectre: Read Arbitrary Memory Over Network [pdf]

#14
I’d be curious the setup the researchers used. The paper doesn’t release the code or stack. It feels contrived but I’d be interested to be able to replicate. Trying in real, production environments, at least so far, has not been able to replicate any bit transfer rate. Has anyone else been able to reproduce? If so, can you share the specifics of your test?

Re: NetSpectre: Read Arbitrary Memory Over Network [pdf]

#15

Spectre just became a much bigger problem.

not really... this is only a vulnerability in so much as specific gadgets were intentionally placed in code. it's more of a danger for intentional data exfiltration covertly, not an issue of attacking random servers like ssh or web servers to get keys. show me a vulnerable ssh or web server and i'll be worried, otherwise, this is just hype about a new class of theoretical attack that has no known actual real world targets.

Re: NetSpectre: Read Arbitrary Memory Over Network [pdf]

#16
post #4
post #2

The AVX side channel is neat. It relies on power management rather than cache: after 1ms of AVX2 inactivity (no 256 bit operations being performed), it goes into a power-saving mode; the next 256-bit operation pays a ~2x cycle penalty. They get 8B/min at low error rate with AVX2. In Google Cloud, from unrelated instances, they're getting 1 byte every 8 hours (3 if the target has an AVX2 gadget). Attacks tend to get b…

This one is going to be much more difficult to defeat. I suspect we will see more dangerous local exploits based on power side channels. Mitigating those will be bad for power usage and performance. We can imagine future processors will manage cache state differently, keeping all changes local to the core until the relevant instructions retire. I have no idea how you would mitigate functional unit power up / power do…

Maybe just don't speculate across power domains? I.e. if a speculative execution would require bringing up the AVX2 unit that might be a bad idea anyway because it slows down everything else even if the branch is mispredicted.

Or at least execute it on the slow path if the unit is not up (lower execution width) without triggering the ramp-up as long as it is speculative. Only ramp-up when the instruction is committed.

Re: NetSpectre: Read Arbitrary Memory Over Network [pdf]

#17
post #8

Earlier quoted context omitted.

Right but didn't we already know that this hypothetical attack class exists? The possibility of remote spectre exploits like this was discussed in the original spectre paper. It's certainly interesting to construct an example and show it working, but this isn't surprising, is it? Just trying to understand if I've missed something here. (The AVX side channel is certainly new and interesting, though!)

Other than the AVX side channel, the interesting thing is that it demonstrates that the remote aspect definitely works. Before, it was theorized but might have proven to never give sufficient signal. While many were confident, now we know. Further, it shows how to do it (classifier) and gives a very good model for what bandwidth can be expected in practice. And still further, that bandwidth is entirely sufficient for…

> This is also really good because the bandwidth is really low.

Until someone improves on this work.

Re: NetSpectre: Read Arbitrary Memory Over Network [pdf]

#18
post #11

This can pretty much all be laid at the feet of overly complex CPU designs and instruction sets. Looks like complexity is as evil for security in hardware as it is in software. On the plus side part of why you see more of these kinds of attacks is that we have actually made progress on software security.

> overly complex

Speculative execution is what makes our sequential code fast by exploiting parallel execution pipelines that would otherwise sit idle.

Avoiding this would increase complexity somewhere else, e.g. compilers would have to become even more clever or programmers would have to work harder to reduce the branches in their code. Sprinkling code with annotations to prevent speculative execution around sensitive data is of course just another way complexity does go up to let us keep the performance gains of speculation.

Re: NetSpectre: Read Arbitrary Memory Over Network [pdf]

#19
post #11

This can pretty much all be laid at the feet of overly complex CPU designs and instruction sets. Looks like complexity is as evil for security in hardware as it is in software. On the plus side part of why you see more of these kinds of attacks is that we have actually made progress on software security.

> overly complex Speculative execution is what makes our sequential code fast by exploiting parallel execution pipelines that would otherwise sit idle. Avoiding this would increase complexity somewhere else, e.g. compilers would have to become even more clever or programmers would have to work harder to reduce the branches in their code. Sprinkling code with annotations to prevent speculative execution around sensiti…

> Avoiding this would increase complexity somewhere else, e.g. compilers would have to become even more clever

Not really. Compilers are already stupendously complicated since they inherit a ton of techniques used for older processors that required, e.g. instruction scheduling and other tricks. CPUs getting bigger and faster just added additional complexity to extract even more dynamic parallelism and also do the job of simpler compilers.

It's much easier to turn off the complexity in a compiler and reason about the resulting program. The complexity in the CPU cannot be switched off and is closed source.

Gimme simple CPUs again.

Re: NetSpectre: Read Arbitrary Memory Over Network [pdf]

#20
post #11

This can pretty much all be laid at the feet of overly complex CPU designs and instruction sets. Looks like complexity is as evil for security in hardware as it is in software. On the plus side part of why you see more of these kinds of attacks is that we have actually made progress on software security.

> overly complex Speculative execution is what makes our sequential code fast by exploiting parallel execution pipelines that would otherwise sit idle. Avoiding this would increase complexity somewhere else, e.g. compilers would have to become even more clever or programmers would have to work harder to reduce the branches in their code. Sprinkling code with annotations to prevent speculative execution around sensiti…

Complex compilers seem better than complex chips because the former is software and can be fixed.

I'm wondering these days if Intel was onto something with EPIC/Itanium and just failed in the execution.

Post reply on HN