Q: NTFS Encryption

Q: NTFS Encryption

Secure Home | Search | About
 Microsoft Applications Security    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content add this group's latest topics to your Google content
Subject Author Date
Q: NTFS Encryption G. Ralph Kuntz, MD, MS 05-14-2008
Posted by G. Ralph Kuntz, MD, MS on May 14, 2008, 8:29 am
If you were  Registered and logged in, you could reply and use other advanced thread options
Suppose someone wanted to set up a database and the DB starts as a
service when the computer is booted. The database directories are
encrypted using NTFS encryption.

As I understand it, the secret key for the encryption is "protected"
using the password of the account who originally encrypted the files
(the encryption key is itself encrypted with the user's password).

When the DB service is created, the user enters the DB password so
that the serrvice can start and can decrypt its files, without the
user having to enter the password every time the machine is rebooted.

That DB password MUST be stored somewhere on the hard drive, otherwise
the encryption key could not be recovered and the files would be
unreadable.

Now I understand that if you removed the hard drive from the original
computer and placed it in a new computer as a secondary drive, if the
new computer is also running Windows, you will not be able to recover
the DB password and so will not be able to read the DB encrypted
files.

But, support you placed that drive in a Linux machine. Could you not
find the DB password (it MUST be some place on the drive), and with
that, decrypt the DB encryption key and get access to the encrypted
files?

Where is the flaw in my logic?

Posted by Daniel Petri on May 14, 2008, 9:03 am
If you were  Registered and logged in, you could reply and use other advanced thread options
As I understand it, there is no "DB password". The private key used to
decrypt the EFS encryption is protected and stored as part of the user's
profile. As far as I know, the private key is not the one that decrypts the
files, but instead it is the ley used to protect the encryption file, which
is a totally different thing. The encryption key is placed as an attachment
(well, sort of,) to the encrypted file, and is encrypted by the user's
public key. In some cases (domain environment, so on), that same encryption
key is stored yet again, but this time encrypted by the Recovery Agent's
public key. Only the user's private key, or the RA's private key can be used
to decrypt that field, and from it the original encryption key is extracted,
and used to decrypt the entire file.

The password you're referring to is, and correct me if I'm wrong, the one
used to start the services as a user.


--
Daniel Petri
www.petri.co.il



> Suppose someone wanted to set up a database and the DB starts as a
> service when the computer is booted. The database directories are
> encrypted using NTFS encryption.
>
> As I understand it, the secret key for the encryption is "protected"
> using the password of the account who originally encrypted the files
> (the encryption key is itself encrypted with the user's password).
>
> When the DB service is created, the user enters the DB password so
> that the serrvice can start and can decrypt its files, without the
> user having to enter the password every time the machine is rebooted.
>
> That DB password MUST be stored somewhere on the hard drive, otherwise
> the encryption key could not be recovered and the files would be
> unreadable.
>
> Now I understand that if you removed the hard drive from the original
> computer and placed it in a new computer as a secondary drive, if the
> new computer is also running Windows, you will not be able to recover
> the DB password and so will not be able to read the DB encrypted
> files.
>
> But, support you placed that drive in a Linux machine. Could you not
> find the DB password (it MUST be some place on the drive), and with
> that, decrypt the DB encryption key and get access to the encrypted
> files?
>
> Where is the flaw in my logic?



Posted by G. Ralph Kuntz, MD, MS on May 14, 2008, 12:31 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
What's to prevent someone from reading the private key from a user's
profile and using that to decrypt the files?

Posted by Daniel Petri on May 14, 2008, 2:39 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
Can YOU do it?

BTW, the protected store in the user's profile is protected in such a way
that if you reset a user's password without asking him to back up his
private key in advance, you will most likely cause him not to be able to
access his encrypted files anymore. This is by design.

--
Daniel Petri
www.petri.co.il



> What's to prevent someone from reading the private key from a user's
> profile and using that to decrypt the files?



Posted by Kerry Brown on May 14, 2008, 6:03 pm
If you were  Registered and logged in, you could reply and use other advanced thread options
It is possible to do this if you have access to the user's profile. There
are commercially available programs that do this. The only way I know to
prevent this is to export the key to removable media then remove it from the
profile. To decrypt a file you would then need to import the key, then
remove it again after you are finished with the file. With all encryption
schemes I've seen, the key/password/pin/token or whatever has to be
protected in some way. The more you protect it, the more inconvenient
decrypting the files becomes.

--
Kerry Brown
MS-MVP - Windows Desktop Experience: Systems Administration
http://www.vistahelp.ca/phpBB2/



> What's to prevent someone from reading the private key from a user's
> profile and using that to decrypt the files?


Similar ThreadsPosted
NTFS Encryption May 13, 2007, 7:25 pm
Data Encryption Standard (DES) encryption November 15, 2005, 6:26 pm
NTFS Permissions September 12, 2005, 8:49 am
NTFS Permissions January 30, 2006, 5:33 am
NTFS Permissions March 24, 2006, 7:02 am
NTFS permissions November 29, 2006, 5:32 am
Re: NTFS Permissions May 23, 2008, 2:41 am
NTFS Permissions and rights October 9, 2005, 5:29 pm
NTFS permissions isses November 28, 2005, 6:41 pm
Homedirs - NTFS permissions April 30, 2008, 5:49 am

The site map in XML format XML site map

Contact Us | Privacy Policy