Get-ADWHfBKeyFromValue.ps1

#
# Get_ADWhfbKeyFromValue.ps1
#
# Copyright 2019 Microsoft. All rights reserved.
#

function Get-ADWHfBKeyFromValue
{
    <#.SYNOPSIS
        Parses a WHfB key from a msdsKeyCredentialLink dn-binary value.
 
    .DESCRIPTION
        Parses a WHfB key from a msdsKeyCredentialLink dn-binary value.
 
    .PARAMETER RawValue
        The raw value of the msdsKeyCredentialLink dn-binary attribute as
        queried via LDAP.
 
    .PARAMETER Logging
        This switch will enable additional diagnostic logging to a file.
 
    #>


    [CmdletBinding()]
    param (
        [Parameter(
            Mandatory=$true
            )]
            [string]$RawValue,
        [Parameter(
            Mandatory=$false
            )]
            [bool]$Logging
    )

    Process
    {
        $memStream = $null;
        $binReader = $null;

        try
        {
            $parsedLink = $RawValue.Split(':');

            if($parsedLink.Length -ne 4)
            {
                if ($Logging)
                {
                    $output = "Key has unexpected number of elements: $parsedLink.Length"
                    DiagLog $output -logOnly
                }
                Write-Output $null;
                return;
            }

            $valueCount = [Convert]::ToInt32($parsedLink[1]);

            if ($parsedLink[2].Length -ne $valueCount)
            {
                if ($Logging)
                {
                    $output = "Key has unexpected valueCount: $parsedLink[2].Length $valueCount"
                    DiagLog $output -logOnly
                }
                Write-Output $null;
                return;
            }

            $keyBytes = Get-ByteArrayFromHexString -HexString $parsedLink[2];

            $memStream = New-Object System.IO.MemoryStream (,[byte[]]$keyBytes)
            $binReader = New-Object System.IO.BinaryReader $memStream;

            $key = Get-ADWHfBKeyFromRawValueBinary -Reader $binReader

            if($null -eq $key)
            {
                Write-Output $null;
                return;
            }

            $key.KeyLinkTargetDN = $parsedLink[3];
            $key.KeyRawLDAPValue = $RawValue;

            Write-Output $key;
        }
        catch
        {
            $output = "Get-ADWHfBKeyFromValue caught exception: " + $_.Exception.ToString()
            DiagLog $output -logOnly
            Write-Output $null
        }
        finally
        {
            if($null -ne $binReader)
            {
                $binReader.Close();
                $binReader.Dispose();
            }

            if($null -ne $memStream)
            {
                $memStream.Close();
                $memStream.Dispose();
            }
        }
    }
}

<#
    Get-ADWHfBKeyFromRawValueBinary
#>

function Get-ADWHfBKeyFromRawValueBinary
{
    <#.SYNOPSIS
        Parses a WHfB key from a msdsKeyCredentialLink dn-binary binary value.
 
    .DESCRIPTION
        Parses a WHfB key from a msdsKeyCredentialLink dn-binary binary value.
 
    .PARAMETER Reader
        The binary value loaded into a binary reader object.
 
    .PARAMETER Logging
        This switch will enable additional diagnostic logging to a file.
    #>


    [CmdletBinding()]
    param (
        [Parameter(
            Mandatory=$true)]
            [System.IO.BinaryReader]$Reader,
        [Parameter(
            Mandatory=$false
            )]
            [bool]$Logging
    )

    Process
    {
        # Create empty key object with all fields
        $Key = [PSCustomObject]@{
            UserDomain = ""
            UserSamAccountName = ""
            UserDistinguishedName = ""
            KeyVersion = -1
            KeyId = ""
            KeyMaterial = $null
            KeySource = ""
            KeyUsage = ""
            KeyDeviceId = ""
            KeyApproximateLastLogonTimestamp = ""
            KeyCreationTime = ""
            CustomKeyInformation = $null
            KeyLinkTargetDN = ""
            ROCAVulnerable = "Unknown"
            OrphanedKey = "Unknown"
            KeyRawLDAPValue = ""
        }

        $keySourceString = [String]::Empty;
        $keySource = @(1);
        $lastReadKeyId = [KEY_OBJECT_ATTR_TYPE]::KeyObjectValueIdMsDsKeyVersion;

        # First four bytes is the key version
        $KeyVersionBytes = 0;
        $KeyVersionBytes = $Reader.ReadUInt32();
        switch($KeyVersionBytes)
        {
            0
            {
                if ($Logging)
                {
                    $output = "Key has zero (0) version : $parsedLink[2].Length $valueCount"
                    DiagLog $output -logOnly
                }
                return $null
            };
            0x100
            {
                $Key.KeyVersion = 1;
                break;
            };
            0x200
            {
                $Key.KeyVersion = 2;
                break;
            }
            default
            {
                if ($Logging)
                {
                    $output = "Key has unrecognized version: " + $KeyVersionBytes.ToString()
                    DiagLog $output -logOnly
                }
                return $null;
            }
        }

        # Each set in this stream is in the form of:
        # { keyValueCount (2bytes), keyId (1byte), keyValue (keyValueCount bytes) }
        do
        {
            # Read the keyValueCount
            $keyValueCount = $Reader.ReadUInt16();

            # Read the keyId
            $keyId = $Reader.ReadByte();

            if ($keyId -ge 10 -or
                $keyId -lt 0)
            {
                if ($Logging)
                {
                    $output = "Key value has unrecognized id: $keyId"
                    DiagLog $output -logOnly
                }
                return $null
            }

            $readKeyId = [KEY_OBJECT_ATTR_TYPE]$keyId;

            if ($lastReadKeyId -ge $readKeyId)
            {
                if ($Logging)
                {
                    $output = "Key has duplicated key id value"
                    DiagLog $output -logOnly
                }
                return $null
            }

            # Read the actual keyValue.
            $keyValue = $Reader.ReadBytes($keyValueCount);

            switch($readKeyId)
            {
                "KeyObjectValueIdMsDsKeyUsage"
                {
                    if ($keyValueCount -eq 1)
                    {
                        switch ($keyValue[0])
                        {
                        0
                        {
                           $Key.KeyUsage = "AdminKey"
                        }
                        1
                        {
                           $Key.KeyUsage = "NGC"
                        }
                        2
                        {
                           $Key.KeyUsage = "STK"
                        }
                        3
                        {
                           $Key.KeyUsage = "BitlockerRecovery"
                        }
                        default
                        {
                           $Key.KeyUsage = "Unknown"
                        }
                        }
                    }
                    else
                    {
                        $Key.KeyUsage = [System.Text.Encoding.UTF8]::GetString($keyValue);
                    }
                    break;
                }

                "KeyObjectValueIdMsDsKeyId"
                {
                    $keyIdBytes = @();
                    $keyIdBytes = $keyValue;

                    if($Key.KeyVersion -eq 1)
                    {
                        # Version 1 keys had a guid in this field
                        $Key.KeyId = [System.BitConverter]::ToString($keyIdBytes).Replace("-", "");
                    }
                    else
                    {
                        # Version 2 keys have a SHA256 hash of the key material here
                        $Key.KeyId = [System.Convert]::ToBase64String($keyIdBytes);
                    }
                    break;
                }

                "KeyObjectValueIdMsDsKeyHash"
                {
                    # Do nothing.
                    break;
                }

                "KeyObjectValueIdMsDsKeyMaterial"
                {
                    $Key.KeyMaterial = [System.Convert]::ToBase64String($keyValue);
                    break;
                }

                "KeyObjectValueIdMsDsKeySource"
                {
                    $keySource = $keyValue;

                    if($Key.KeyVersion -le 1)
                    {
                        $Key.KeySource = "NA";
                    }
                    elseif($keySource[0]-eq 0)
                    {
                        $Key.KeySource = "AD";
                    }
                    elseif($keySource[0]-eq 1)
                    {
                        $Key.KeySource = "AzureAD";
                    }
                    else
                    {
                        $Key.KeySource = "Unknown";
                    }
                    break;
                }

                "KeyObjectValueIdMsDsDeviceId"
                {
                    $deviceId = New-Object System.Guid (,$keyValue)
                    $Key.KeyDeviceId = $deviceId.ToString()
                    break;
                }

                "KeyObjectValueIdMsDsCustomKeyInformation"
                {
                    $Key.CustomKeyInformation = [System.Convert]::ToBase64String($keyValue);
                    break;
                }

                "KeyObjectValueIdMsDsKeyApproximateLastLogonTimeStamp"
                {
                    $Key.KeyApproximateLastLogonTimestamp = Get-KeyTimeFromBytes `
                        -TimeData $keyValue `
                        -KeySource $keySource[0]`
                        -KeyVersion $Key.KeyVersion;
                    break;
                }

                "KeyObjectValueIdMsDsKeyCreationTime"
                {
                    $Key.KeyCreationTime = Get-KeyTimeFromBytes `
                        -TimeData $keyValue `
                        -KeySource $keySource[0]`
                        -KeyVersion $Key.KeyVersion;
                    break;
                }

                default
                {
                    $output = "Ignoring unrecognized key entry id: $readKeyId"
                    DiagLog $output -logOnly
                }
            }
        }
        while($Reader.BaseStream.Position -lt $Reader.BaseStream.Length);

        return $Key
    }
}

<#
    Get-KeyTimeFromBytes
#>

function Get-KeyTimeFromBytes
{
    <#.SYNOPSIS
        Parse time from byte array. The time format is inferred from the
        key source and version.
 
    .DESCRIPTION
        Parse time from byte array. The time format is inferred from the
        key source and version.
 
    .PARAMETER TimeData
        Byte array containing the time information.
 
    .PARAMETER KeySource
        The time source (AD or AAD).
 
    .PARAMETER KeyVersion
        The WHfB key version
 
    #>


    [CmdletBinding()]
    param (
        [Parameter(
            Mandatory=$true,
            Position=0)]
            [byte[]]$TimeData,

        [Parameter(
            Mandatory=$true,
            Position=1)]
            [int]$KeySource,

        [Parameter(
            Mandatory=$true,
            Position=2)]
            [int]$KeyVersion
    )

    PROCESS
    {
        $dateTime64 = [System.BitConverter]::ToInt64($TimeData, 0);

        if ($dateTime64 -eq 0)
        {
            $time = [DateTime]::MinValue
        }
        elseif (($KeyVersion -le 1) -or ($KeySource -eq 1))
        {
            $time = [DateTime]::FromBinary($dateTime64);
        }
        elseif ($KeySource -eq 0)
        {
            $time = [DateTime]::FromFileTime($dateTime64);
        }
        else
        {
            throw New-Object System.Exception -ArgumentList "Unexpected time format.";
        }

        Write-Output $time.ToString("o");
    }
}

# SIG # Begin signature block
# MIIjhgYJKoZIhvcNAQcCoIIjdzCCI3MCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCD9PSpjJKruAPsO
# y4vS6PE/zIqzm9jn1NHXRYF1CVZ1LaCCDYEwggX/MIID56ADAgECAhMzAAABUZ6N
# j0Bxow5BAAAAAAFRMA0GCSqGSIb3DQEBCwUAMH4xCzAJBgNVBAYTAlVTMRMwEQYD
# VQQIEwpXYXNoaW5ndG9uMRAwDgYDVQQHEwdSZWRtb25kMR4wHAYDVQQKExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24xKDAmBgNVBAMTH01pY3Jvc29mdCBDb2RlIFNpZ25p
# bmcgUENBIDIwMTEwHhcNMTkwNTAyMjEzNzQ2WhcNMjAwNTAyMjEzNzQ2WjB0MQsw
# CQYDVQQGEwJVUzETMBEGA1UECBMKV2FzaGluZ3RvbjEQMA4GA1UEBxMHUmVkbW9u
# ZDEeMBwGA1UEChMVTWljcm9zb2Z0IENvcnBvcmF0aW9uMR4wHAYDVQQDExVNaWNy
# b3NvZnQgQ29ycG9yYXRpb24wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
# AQCVWsaGaUcdNB7xVcNmdfZiVBhYFGcn8KMqxgNIvOZWNH9JYQLuhHhmJ5RWISy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