Encryption suddenly denied

Page 1 of 2 12 LastLast

  1. Posts : 13
    Windows 7 Pro 64 bit
       #1

    Encryption suddenly denied


    I'm using the file encryption (required by my work) on Win 7 Pro 64 bit.

    I suddenly am being denied access to my files. It happened after my admin changed my password from within the admin account, which is not the same account associated with the encryption. My best thought is that the encryption key (password) was not changed when the admin changed the password from their side.

    The certificates are all on the computer, I can access them, but it doesn't help. I have a backup of the encryption certificates, but it is not accepting what we definitely believe the password (key) to be. So something very odd is going on.

    Note that when I log on to my account, the process lsass.exe uses 50% cpu usage for about 30 seconds, which does not usually happen at logon. So I assume that it is looking for some kind of encryption info, but not finding it.

    Is there some way to find out what lsass.exe is doing, and thus try to troubleshoot what info it doesn't have?

    I have already tried running "dpapimig.exe" in CMD, which is supposed to update the encryption to the current password, but this doesn't help.
      My Computer


  2. Posts : 13
    Windows 7 Pro 64 bit
    Thread Starter
       #2

    Also, when I go into any of my files, it does say that I'm the owner. But clearly the encryption certificate is corrupt.

    If I go into the certmgr, and then try to export the certificates that are there in, for example, "Trusted People", it tells me I can't export the private key because the private key can't be found. Why would this be? What could have corrupted the private keys? Where are they normally stored? Perhaps I can go there and look at that file location?
      My Computer


  3. Posts : 13
    Windows 7 Pro 64 bit
    Thread Starter
       #3

    I found a website that suggested the location of the private key storage in Win 7:


    C:\users\ [ACCNT NAME] \AppData\Roaming\Microsoft\Crypto\RSA\S-1-5-… (many numbers)

    There are keys in this folder that were created on the same day as my encryption certificates that supposedly have no key associated with them. Is there some way to re-associate the keys with the certificates?
      My Computer


  4. Posts : 13
    Windows 7 Pro 64 bit
    Thread Starter
       #4

    I now suspect that the problem stems not from the change of the password, but rather some other permissions change that prevents the encryption certificates from being linked to the private keys in the MACHINEKEYS folder (ie \RSA\S-1-5-...). I attempted to troubleshoot using the following method:

    How to correct 'The associated private key cannot be found' error message

    but the \RSA\MACHINEKEYS folder already claims that SYSTEM and local administrators have full control over the folder (in addition to my user account). I can change the ownership, it was already set to "administrators". However, I can't change the Full Control settings in the Allow column, all check marks are grayed out - but they are all checked, which makes me think they are all active? Unclear.

    I also tried repairing the certificate using the following command with its serial number:

    certutil -repairstore my "SerialNumber"
    How to assign a private key to a new certificate after you use the Certificates snap-in to delete the original certificate in Internet Information Services

    but it failed. However, I do have a folder full of private keys, so there must be some way to repair this problem and force the certificates to locate such keys. I really need help from a Win 7 programming expert.

    Any such person out there?
      My Computer


  5. Posts : 25,847
    Windows 10 Pro. 64/ version 1709 Windows 7 Pro/64
       #5

    The only thing I can think of is going to the Administrator that changed your password and ask for help.

    Your post #1

    I suddenly am being denied access to my files. It happened after my admin changed my password from within the admin account, which is not the same account associated with the encryption. My best thought is that the encryption key (password) was not changed when the admin changed the password from their side.
      My Computer


  6. Posts : 13
    Windows 7 Pro 64 bit
    Thread Starter
       #6

    Ah, thanks, I agree that seems the obvious thing to do. I did do that when it first happened, the problem is that my administrator is not a Win 7 programming expert either, and they have no idea why I lost control of the encryption after the password change. So I am left to try to rescue my files on my own.

    We did try changing the password back to various older passwords, but it didn't solve the problem. I'm trying hard to understand how the encryption system in Windows works - and again it seems at this point there is a problem with linking the private keys, which I have located, to the certificates, which I have also located.
      My Computer


  7. Posts : 13
    Windows 7 Pro 64 bit
    Thread Starter
       #7

    For example, I can view the properties of the encrypted files, and they have a "thumb print" associated with them that links them to a particular certificate. I have 5 certificates for some reason that could be associated with the encryption, but only one of them matches the thumb print of the encrypted files. And I know the date on which that certificate was created. If I go into the private keys folder (ie MACHINEKEYS, which is apparently a number specific to your computer), I find that there is also exactly one private key file that was created on the same date as the matched certificate.

    So I'm pretty sure I know exactly which certificate and private key go together - but I can't seem to get the Win7 file system to link them up.
      My Computer


  8. Posts : 13
    Windows 7 Pro 64 bit
    Thread Starter
       #8

    I also note that lsass.exe uses significant resources whenever I attempt to access anything in my user account.
      My Computer


  9. Posts : 2,528
    Windows 10 Pro x64
       #9

    lsass == Local Security Authority Subsystem Service, and as such is responsible for handling permissions, auth, etc. on the system. Not surprising it's consuming resources in a situation where there are permission lookups or account lookups being done.

    If your password was changed by the administrator, and you're using Encrypting File System (EFS) to encrypt data (and given your post, I'd wager this is exactly what's happening), this problem you're seeing is *expected behavior* and the admin was warned of this when he reset your password and apparently ignored the very, very obvious warning before he clicked "yes" a second time. The only way you get that back is to have the admin use the recovery keys stored in Active Directory for EFS done under your user account (they did do that, didn't they???), or import/re-associate keys that were backed up under your account previously (you did do that, didn't you???). The last method would be to try to brute force the key with 3rd party software, but that can be expensive and you can end up with corrupt files on the other end if it fails.

    In essence, if the encryption keys weren't backed up manually or recovery keys backed up to Active Directory during the encryption configured by the admin, those encrypted files are locked and gone for all intents and purposes.
      My Computer


  10. Posts : 13
    Windows 7 Pro 64 bit
    Thread Starter
       #10

    cluberti - thanks for the post. I doubt that the admin knows what "active directory" is, otherwise they would have tried this, but I have definitely backed up windows and can restore to a previous state. I'm attempting to recover lost work since the last backup.

    But I think you are suggesting that the keys can be restored from the previous backup, and only the keys (ie don't overwrite everything?). I'll see if we can do this.

    I'll also research Active Directory - is this located with the back-up under windows backup?

    Thanks again!
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 06:58.
Find Us