News for hackers. Stuff that matters.
Re:Tresor – CPU-only AES implementation resistant to RAM col... by _antares on Wednesday February 03, 2016 @01:28AM (#11025032)
Clever but useless. Cold boot attack does not work on RAM with DDR3+. Pretty much all new computers are safe. http://superuser.com/a/464396
Re:Tresor – CPU-only AES implementation resistant to RAM col... by rdl on Wednesday February 03, 2016 @01:31AM (#11025043)
Plenty of other attacks work, such as sniffing memory lines on a running system.
Re:Tresor – CPU-only AES implementation resistant to RAM col... by _antares on Wednesday February 03, 2016 @01:34AM (#11025059)
That is not CBA so it's not on topic. Extracting encryption keys on a running system is completely other vector attack and I doubt using registers is much safer than RAM in such case. Might be wrong though. :)
Re:Tresor – CPU-only AES implementation resistant to RAM col... by dang on Tuesday February 02, 2016 @03:58PM (#11022521)
Re:Tresor – CPU-only AES implementation resistant to RAM col... by RRRA on Tuesday February 02, 2016 @06:56PM (#11023706)
DMA attacks (tb, firewire, etc) also have to be prevented so nobody injects code to pop the registers
Re:Tresor – CPU-only AES implementation resistant to RAM col... by dmitrygr on Tuesday February 02, 2016 @03:48PM (#11022419)
Pretty clever, but do intel CPUs guarantee that xmm regs are zeroed on boot?
Re:Tresor – CPU-only AES implementation resistant to RAM col... by raimue on Tuesday February 02, 2016 @05:40PM (#11023273)
The key for AES is held in the four debug registers. On a 32-bit machine you get 4x32-bit for AES-128, or on a 64-bit machine 4x64-bit up to AES-256. The ptrace(2) system call is patched so these registers are not exposed to user space. And yes, they are zeroed on power-up or reset of the CPU.
Re:Tresor – CPU-only AES implementation resistant to RAM col... by dmitrygr on Tuesday February 02, 2016 @06:34PM (#11023594)
patching ptrace is nice, but it does not stop me booting an unpatched kernel after pressing the reset button and reading them

hence my question.

thanks for answering

where in the intel cpu doc can i see this?

Re:Tresor – CPU-only AES implementation resistant to RAM col... by raimue on Tuesday February 02, 2016 @07:28PM (#11023872)
https://www-ssl.intel.com/content/www/us/en/processors/archi...

  Volume 3A
  Chapter 9, Processor Management and Initialization
  Table 9-1. IA-32 Processor States Following Power-up, Reset, or INIT
The debug registers are named DR0-3 and will be initialized with 00000000H. I can't find an explicit statement for IA-32e mode (Intel's name for x86_64), but I think it is safe to assume the remaining upper 32 bits will be cleared as well.
Re:Tresor – CPU-only AES implementation resistant to RAM col... by dmitrygr on Wednesday February 03, 2016 @01:22PM (#11028374)
and sse regs?
Re:Tresor – CPU-only AES implementation resistant to RAM col... by exabrial on Tuesday February 02, 2016 @05:03PM (#11023039)
Ah, suggesting that cold boot cpu hacks next?
Re:Tresor – CPU-only AES implementation resistant to RAM col... by rdl on Wednesday February 03, 2016 @01:32AM (#11025046)
CPU registers aren't as persistent.
Re:Tresor – CPU-only AES implementation resistant to RAM col... by locacorten on Tuesday February 02, 2016 @07:42PM (#11023930)
Another implementation using ARM support for cache locking: http://research.microsoft.com/~ssaroiu/publications/asplos/2...
Re:Tresor – CPU-only AES implementation resistant to RAM col... by panamafrank on Tuesday February 02, 2016 @04:04PM (#11022574)
Ein wunderschönes Name!