News for hackers. Stuff that matters.
Re:NetSpectre: Read Arbitrary Memory Over Network [pdf] by tptacek on Thursday July 26, 2018 @06:30PM (#17621911)
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 better over time, but still, that's an AES key in a few days, and it assumes one discrete target; in a real deployment, that secret might be mirrored over hundreds of instances.

Re:NetSpectre: Read Arbitrary Memory Over Network [pdf] by berbec on Thursday July 26, 2018 @08:09PM (#17622461)
It's an AES key if you know where to look. Do these style of attacks let you view the memory map or do you just pick a place? How troublesome is this, really? I'm actually curious. I never saw where you find the point in memory to point your Spectre gun.
Re:NetSpectre: Read Arbitrary Memory Over Network [pdf] by eximius on Thursday July 26, 2018 @10:22PM (#17623013)
I'm a little vague on the details, but I think there are some tricks you use to narrow it down and then go spelunking. Maybe a particular variable needs to be in a page aligned struct so you only need to find a magic value at one of N places, etc.

Like I said, I don't know the specifics, but there are methods of doing better than guessing.

Re:NetSpectre: Read Arbitrary Memory Over Network [pdf] by xenadu02 on Thursday July 26, 2018 @09:14PM (#17622737)
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 down without destroying the usefulness of the feature itself.

Re:NetSpectre: Read Arbitrary Memory Over Network [pdf] by Eit4Choh on Friday July 27, 2018 @06:38AM (#17624934)
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.