t-d-k / LibreCrypt

LibreCrypt: Transparent on-the-fly disk encryption for Windows. LUKS compatible.
https://LibreCrypt.tdksoft.co.uk
736 stars 71 forks source link

Driver allows writing to arbitrary devices #39

Open t-d-k opened 9 years ago

t-d-k commented 9 years ago

This is similar to #38, in that it has the same symptoms, but a different cause and fix. The driver allows a caller to open any device as an encrypted drive, with no checks on the headers, after that any data can be read or written. Although this data is encrypted and decrypted as it is accessed, the caller has access to all keys, including master keys and the salt in the header so can reverse this process to arbitrarily read and write to anywhere on disc. So a malware app can:

This bypasses Windows file-system access restrictions.

In short this allows a malware app on a PC where LC is installed to read and write arbitrarily anywhere on any physical device, without admin rights.

There are different solutions for the different container types: