Windows 10: About the security of Virtual Smart Cards

Discus and support About the security of Virtual Smart Cards in AntiVirus, Firewalls and System Security to solve the problem; Hello all, Trying to have a good overview about the security of Virtual Smart Cards relying on TPMs, I read this very short article (the only I... Discussion in 'AntiVirus, Firewalls and System Security' started by OOlahoop, May 10, 2019.

  1. OOlahoop Win User

    About the security of Virtual Smart Cards


    Hello all,


    Trying to have a good overview about the security of Virtual Smart Cards relying on TPMs, I read this very short article (the only I found) covering this topic (first part): https://docs.microsoft.com/en-us/wi...rt-cards/virtual-smart-card-evaluate-security.


    My understanding

    I well understand there is a key hierarchy :

    - The Endorsement Key (EK) : potentially burned by the manufacturer (may be a ROM in the TPM), this is what could be referenced as the master key of the given TP (RSA key pair e.g.),

    - The Storage Root Key (SRK) : generated when the TPM is initialized/owned, it is stored and used in the TPM only. It is obviously stored in non-volatile memory but can be replaced if the TPM is reinitialized. Don't know if the key is stored encrypted by the EK (given it is stored in the TPM and the TPM should provide tamper-resistance properties...),

    - The SmartCard Key (SCK) : The public part of this key is used to encrypt the AK,

    - The Authorization Key (AK) : The public part of this key is used to "authorize" the decryption of the UK,

    - The User Key (UK) : This is a user key (may be a private RSA key linked to an authentication certificate E.g.).


    The article says : "The TPM key hierarchy is designed to allow encryption of user data with the storage root key, but it authorizes decryption with the user PIN in such a way that changing the PIN doesn’t require re-encryption of the data."


    This explictely means that the PIN is not used at any moment to encrypt/decrypt any user key.


    Question

    How does the authorization process work ? I'm not sure of that but I guess the PINs are not stored in the TPM since there may be a lot of VSC and since the TPM is not suited to store a lot of objects (limited memory). Is it false ?. So, taking the first step as an example, how is the SCK decrypted ? We can see ScKey = dsrkPriv(SCKeyBlob) | PIN : which makes me believe the SCK blob is only the SCK encrypted with the public part of the SRK. So what does mean "| PIN" ? And why would there be the sentence I quoted and such a key hierarchy if it was that simple ? That's all my topic is about.


    So :

    > PIN stored in the TPM ? Then the OS calls the TPM with a SCK identifier and a PIN. The TPM checks the stored PIN is the right one for the SCK identifier. Then, the SCK is deciphered and allows to decipher the AK.. Then, this AK is somewhat returned to the OS, which calls again the TPM with this key (as a PIN) to authorize the decryption of a user key (with the SRK)... Hm... It means a TPM stores a PIN and an AK in the TPM for each VSC.

    >PIN not stored in the TPM ? The quoted sentence implies that the PIN is somewhere involved in an encryption process. Finally, does this formula "ScKey = dsrkPriv(SCKeyBlob) | PIN" mean that the PIN is used in the decryption process ? But how ? I can't get it. Of course, it cannot be as simple as "ScKeyBlob = EsrkPub(SCKey) | PIN", | meaning concatenation. It would mean you only have to take the last xx bytes of the file on your hard drive and test it as the PIN for the given VSC. In fact, what does mean "|" here ? Is it something like a XOR ? Is the PIN taken as a part of the data to encrypt ? If it is, how does the encryption/decryption process really work ?


    Thanks a lot !

    Arachnide

    :)
     
    OOlahoop, May 10, 2019
    #1
  2. Junaid_A Win User

    Disable PIN caching for Virtual Smart Cards

    Hi,



    Thank you for writing to Microsoft Community forum.



    Pass-through authentication with smart cards work on domain environments. You may want to go through
    Use Virtual Smart Cards to know
    more about the same. As this requires expertise in an environment which has a direct two-way trust relationship, I suggest you to post your query in the
    TechNet forums.



    Regards,
     
    Junaid_A, May 10, 2019
    #2
  3. virtual smart card not found

    I have a "virtual digitalbadge" on my PC, which, I think, is an implementation of virtual smart card technology. I use it to set up a VPN to my partner company.

    When I try to set up the VPN, I often get the message "select a smart cart device". Screenshot:


    About the security of Virtual Smart Cards 44cf132c-b921-4da8-bc10-ccd522f1dbe1.png


    The Japanese text means "insert smart card". I can't proceed, since I don't know how to "insert" a virtual smart card.

    I believe this happens consistently after hibernation; a reboot fixes the problem but is a very poor workaround, since it takes about 15 minutes until my PC becomes usable. Of course I could avoid hibernation, but I hibernate for a reason (i.e. I want to
    have the same programs running when I switch my PC on as when I switch it off).

    The same happens whenever Internet Explorer wants to check the certificate on the smart card.

    Is there a tool, a command, a registry entry, anything that helps me "inserting" the smart card without rebooting? Is there a log file or anything else to find out where the process is broken so that I can fix it?
     
    BerndBausch, May 10, 2019
    #3
  4. About the security of Virtual Smart Cards

    TPM Virtual Smart Card creation

    Hello,

    I'm having an issue regarding TPM Virtual Smart Card creation. I'm using a method from Windows.Devices.SmartCards.dll, SmartCardProvisioning class, RequestVirtualSmartCardCreationAsync(String, IBuffer, SmartCardPinPolicy), and I'm continuously getting an
    error showing:

    Element not found. (Exception from HResult:0x80070490)

    Stack exception is shown below:

    at Windows.Devices.SmartCards.SmartCardProvisioning.RequestVirtualSmartCardCreationAsync(String friendlyName, IBuffer administrativeKey, SmartCardPinPolicy pinPolicy, Guid cardId)

    at POC_VSC.TPMVSC.<ScenarioCreateTpmVirtualSmartCard>d__3.MoveNext() in D:\Projects\POC_VSC\POC_VSC\TPMVSC.cs:line 87

    A line below is responsible for the error:

    Complete method I'm using is:

    I'm using VS 2017 and I'm running this example on Windows 10. Any help or suggestion would be really appreciated...
     
    Tomislav Šimović, May 10, 2019
    #4
Thema:

About the security of Virtual Smart Cards

Loading...
  1. About the security of Virtual Smart Cards - Similar Threads - security Virtual Smart

  2. Future deprecation of virtual smart cards

    in Windows Hello & Lockscreen
    Future deprecation of virtual smart cards: Hello,On https://docs.microsoft.com/en-us/windows/security/identity-protection/virtual-smart-cards/virtual-smart-card-overview, there is the following note:Windows Hello for Business is the modern, two-factor authentication for Windows 10. Microsoft will be deprecating...
  3. Future deprecation of virtual smart cards

    in Windows 10 Gaming
    Future deprecation of virtual smart cards: Hello,On https://docs.microsoft.com/en-us/windows/security/identity-protection/virtual-smart-cards/virtual-smart-card-overview, there is the following note:Windows Hello for Business is the modern, two-factor authentication for Windows 10. Microsoft will be deprecating...
  4. Future deprecation of virtual smart cards

    in Windows 10 Software and Apps
    Future deprecation of virtual smart cards: Hello,On https://docs.microsoft.com/en-us/windows/security/identity-protection/virtual-smart-cards/virtual-smart-card-overview, there is the following note:Windows Hello for Business is the modern, two-factor authentication for Windows 10. Microsoft will be deprecating...
  5. Virtual Smart Card lock

    in AntiVirus, Firewalls and System Security
    Virtual Smart Card lock: Hello. Our company uses Windows authorization and some other services using a virtual smart card. The problem is that the virtual smart card is blocked after 5 incorrect PIN entries. It is the smart card that is blocked, not the TPM. Tell me, is it possible to somehow...
  6. Windows security asking for a smart card

    in AntiVirus, Firewalls and System Security
    Windows security asking for a smart card: Good morning everyone, I have to occasionally use a smart card reader to access work-related websites. I have the issue where windows gives me 3-5 popups whenever I start my computer asking for a smart card. It will also occasionally ask for a smart card when I attempt to...
  7. Windows Security (Smart Card Pin)

    in Windows 10 Ask Insider
    Windows Security (Smart Card Pin): Everytime I boot in, Windows Security prompts me to enter my Common Access Card. Even if I boot without my CAC Reader in. It only started doing this after the recent update. I've disabled the CAC Reader Driver, uninstalled DoD Certs and reinstalled, created a new profile and...
  8. Virtual Machine is not reading Smart Card reader and Smart card after Windows update.

    in Windows 10 Drivers and Hardware
    Virtual Machine is not reading Smart Card reader and Smart card after Windows update.: Environment: WIN10 v1607 ENT N 2016 2016 / Virtual Machine - (Physical desktops with updates operate correctly) Since installing latest updates, all VM's will not read the certificates. However both objects "SCR35xx Smart Card Reader" and "Smart Card" -ARE- shown in device...
  9. TPM Virtual Smart Card creation

    in Windows 10 Software and Apps
    TPM Virtual Smart Card creation: Hello, I'm having an issue regarding TPM Virtual Smart Card creation. I'm using a method from Windows.Devices.SmartCards.dll, SmartCardProvisioning class, RequestVirtualSmartCardCreationAsync(String, IBuffer, SmartCardPinPolicy), and I'm continuously getting an error...
  10. Disable PIN caching for Virtual Smart Cards

    in AntiVirus, Firewalls and System Security
    Disable PIN caching for Virtual Smart Cards: We want to store digital certificates for PDF signing in virtual smart cards. Due to regulatory reasons (FDA, we are developing medical devices), I have to assure that the PIN protecting the certificate has to be (re-)entered for each document to be signed. The default...

Users found this page by searching for:

  1. requestvirtualsmartcardcreationasync element not found

    ,
  2. virtual digitalbadge not installing on tpm