Using Fortanix DSM for Verifying Key Attestation Statements

1.0 Introduction

Fortanix DSM can issue key provenance attestation statements that are cryptographically verifiable proofs about certain types of asymmetric keys that are managed in DSM.

This document describes the steps to verify DSM key attestation statements and extract claims about the target key. The claims about the target key can then be used by a certificate authority (CA) for whatever purposes they see fit.

The following types of claims can be extracted from a Fortanix DSM key attestation statement and a certificate path:

  • The protection properties of the DSM cluster holding the key, for example: the cluster is running on hardware with physical protection.
  • The allowed key usages.
  • Whether the key was generated in Fortanix DSM.
  • Whether the key has ever been exportable.

2.0 Fortanix Attestation and Provisioning Key Hierarchy

KPO-AttestationHierarchy.png Figure 1: Fortanix Attestation and Provisioning PKI Hierarchy

3.0 Fortanix DSM Key Attestation Statement Format

This section provides a description of the key attestation statements in JSON format that Fortanix DSM has issued. This format is the same as the output of the KeyAttestation API (POST /crypto/v1/keys/key_attestation) in DSM SaaS. For more information, refer to the Fortanix Open API documentation.

The key attestation statement is a JSON object with the following fields:

  • authority_chain: An array of base64-encoded blobs; each blob is a DER-encoded X.509 certificate.
  • attestation_statement: An object with the following fields:
    • format: A string describing the format of the statement field. See below for a list of possible formats.
    • statement: A base64-encoded blob.

The supported formats for attestation statements are:

x509_certificate: the statement field contains an attestation statement formatted as a DER-encoded X.509 certificate. The following is an example key attestation statement JSON object:

{
  "authority_chain": [
    "MIIF3TCCA8WgAwIBAgIVAMSEK+w2k7qWvIeDsRrdD2d3mJAsMA0GCSqGSIb3DQEBCwUAMHcxCzAJBgNVBAYMAlVTMRMwEQYDVQQIDApDYWxpZm9ybmlhMRQwEgYDVQQHDAtTYW50YSBDbGFyYTEXMBUGA1UECgwORm9ydGFuaXgsIEluYy4xJDAiBgNVBAMMG0ZvcnRhbml4IEtleSBBdHRlc3RhdGlvbiBDQTAeFw0yMzA5MDUxNDA4MTNaFw0yMzEwMDUxNDA4MTNaMDYxNDAyBgNVBAMMK0ZvcnRhbml4IERTTSBTYWFTIEtleSBBdHRlc3RhdGlvbiBBdXRob3JpdHkwggGiM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U23qOc7CZXksd9NkHIqX5eZ/YEComTr68iMX3Thn3KMqbA2hxp+5EHNy/LhOcrYJSmCqmNQk6tNqs1aqOvI8gpNHwN9G/pIY2+AAzIBuY9JYf06gspBVrPIJyNJuv2aYQeoK8tN9t/QisLHdmyH9q+/cIlJIK8fQ6w86ZzTQWJLhjrlsJnU3sR5ThAUk4GAS02BEca6i1HWjuv2iQvJtMy1Das2A1zyybYxxF373FEtD1a8ogOHYM5e6wtgs+SFFc+K4AM97bLcVHJ9iPN0aq/NnWfn2jMPj1G3XLA5KPFpmbkRM0EGULK2gm19/8qis1lsEqYTdfxHk4tW/HGC2WxZTi53gKyOosEcwEwjaDO3qwgNHBuRxXp6d0VoNkN9yt0aku58yjW0ytOtXO4+BYXcSA5mOkETzDBYhA+BhdXgu3ieRB5f62peMh5fjuXjiUZZ0BuAs0FGfSmL31xHHVy7C0XDshbtkYyLwng8do2UtM4FT0fYV"
  ],
  "attestation_statement": {
    "format": "x509_certificate",
    "statement": "MIID/zCCAmegAwIBAgIUFfMF1u5hM+1tXXYUXWOqNKS7xx4wDQYJKoZIhvcNAQELBQAwNjE0MDIGA1UEAwwrRm9ydGFuaXggRFNNIFNhYVMgS2V5IEF0dGVzdGF0aW9uIEF1dGhvcml0eTAgFw0yMzA5MDUxODExNTFaGA85OTk5MTIzMTIzNTk1OVowXjElMCMGA1UEAwwcRm9ydGFuaXggRFNNIEtleSBBdHRlc3RhdGlvbjE1MDMGCysGAQQBg4QaAQICDCQxOGVjOGI5Ni04ODQ1LTRjZTMtOWZkMS01MDQwN2I0YjFmYzAwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQC8UHvIrnFPGD6B5uCihVW/H9MqL8NWJ7qvfrelsvON/PkZIuYmpSrQUvzQpy/5rk+07V91BSKAAtUMap3ALe9CCKca+gugq+VqBP8c7MzTeYmI8QPDz4bD5dKNEnLgdn42c2onxqVRk52eJeJ5f1WT+g/INi4V3LSYJEvkgs2aQiZ9c6wCByvMlmNax1NpidnAlp8uuFKJtB3wf5Gu1HPi4mgFZ4Hbg+aAdH2EHpdP7HvvvmhJ6+Nt0oB7N68i4c+T366bc+LwCvYHz3fON54k2izilXhbooRgfxksKvjpYYPIRtXZIDHJ8cCkQIZfshZRFb3tBM2ihfJNj4X2byFzAgMBAAGjWzBZMA4GA1UdDwEB/wQEAwIHgDASBgwrBgEEAYOEGgIEAQEEAjAAMBIGDCsGAQQBg4QaAgQBAgQCMAAwHwYDVR0jBBgwFoAUPkO0uRsgbLzurpzytKoxWc/hKlUwDQYJKoZIhvcNAQELBQADggGBABLOIVpgH9SMPxN7qLl18dKiznqM2mfdO7InpPQmivbCDNw8QWdqmgJNxtMG4HtJpEOeSVkcIiFIXLuQghjehk5Q246vf9HAVMnTU7vn2MDAtP4gTxruIOJeOunnGwFugEKsLy6nfBEbkcip5X0jY07KLtKXjQDXEeDBsIhr9VD6nnN8ySs7RVxb2VuT9crDdSx6yLC4OBwylayvDk3BZzIKeW4qKh11vkJaSoJJni4XkTTeQnR0hWHgOW9/l+nVV2jxqCSN03T92lsojkVC/5B3dqClqO1y45FdHgmIDq7zyzdBYLFVSKV7H8MiUgfHlBr+e0kC/tu+WBnEGGuzCk/PVXxLg4Ly3baLLc0egOSdzUtGuovS6sntFjwkdKezDPlADFFIb93jnwi/oRLsc0BBWCE90idVxpr2sx2h6QCs0Yxigyx19ZtsVzHIOtfEHVQ5bcT8EWhS8kkZynK/6xhNj7jKv5fuDX/WCSvZJISvx1kKb6yTlv5c8vI6xoxyKw=="
  }
}

3.1 Authority Chain Certificates

The authority_chain field contains the following certificates:

  • Key Attestation Authority Certificate: This is the end-entry certificate in the authority_chain field.
  • Key Attestation CA Certificate: this refers to any non-self-signed CA certificates in the authority_chain field.
  • Fortanix Attestation and Provisioning Root CA Certificate: This certificate can be obtained from https://pki.fortanix.com/Fortanix_Attestation_and_Provisioning_Root_CA.crt.
NOTE
The certificates may appear in any order.

The Subject of the Key Attestation Authority Certificate identifies the DSM cluster. The Key Attestation Authority Certificate will have the following extended key usage:

fortanixKeyAttestationSigning = 1.3.6.1.4.1.49690.8.1

The Key Attestation Authority Certificate will have the following certificate policy:

fortanixKeyAttestationPkiCertificatePolicy = 1.3.6.1.4.1.49690.6.1.2

The Key Attestation Authority Certificate will have the following certificate extension, containing claims:

fortanixClusterNodeEnrollmentPolicy = 1.3.6.1.4.1.49690.2.5

3.2 Key Attestation Statement

The attestation_statement specifies in format the format of the Key Attestation Statement in statement.

  • x509_certificate format
    A Key Attestation Statement is not a public-key certificate, but the same format is used. The fields in the certificate have the following meaning:
    • The Subject Public Key Info specifies the public key of the Target Key.
    • The Subject contains the following DN attribute, uniquely identifying the Target Key object in DSM:
      • Attribute type:
        fortanixKeyId = 1.3.6.1.4.1.49690.1.2.2
        
      • Attribute value:
        -- The value should contain a human-readable UUID
         -- of form `xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx`
         -- Example: 3cc1bec3-4fc1-4df9-9538-8f40577d126e
         KeyID ::= UTF8String
        
    • The Issuer and Authority Key Identifier extension identifies the authority that issued the Key Attestation Statement. The Signature Algorithm and Signature describe the cryptographic signature from the Key Attestation Authority.
    • The Validity "not before" time indicates when the Key Attestation Statement was signed.
    • The Key Usage extension may contain the following bits:
      • Digital Signature: sign key usage claim
      • Key Encipherment: unwrap key usage claim
      • Data Encipherment: decrypt key usage claim
      • Key Agreement: agree key usage claim
        The following extensions may be included, containing claims:
      fortanixKeyGeneratedInDSM = 1.3.6.1.4.1.49690.2.4.1.1
      fortanixKeyNeverExportable = 1.3.6.1.4.1.49690.2.4.1.2
      

3.3 Claims

3.3.1 Claims About the Protection Properties of the DSM Cluster

The fortanixClusterNodeEnrollmentPolicy extension

This claim indicates the policy that applies to nodes in the DSM cluster. The policy is a list of policy items, all of which must be met in order for a node to become part of the cluster.
The claim value is the following ASN.1 type:

ClusterNodeEnrollmentPolicy ::= SEQUENCE SIZE (1..MAX) OF NodeEnrollmentPolicyItem

NodeEnrollmentPolicyItem ::= SEQUENCE {
  policyItem  OBJECT IDENTIFIER,
  qualifiers  ANY DEFINED BY policyItem OPTIONAL
}

The following is a list of defined policy items:

  • Minimum protection profile:
    fortanixNodeEnrollmentPolicyItemMinimumProtectionProfile = 1.3.6.1.4.1.49690.2.5.1
    
    The above policy item has the following qualifiers:
    MinimumProtectionProfile ::= CHOICE {
     wellKnown  OBJECT IDENTIFIER,
    }
    
    This policy item indicates that the node must be protected in at least the manner described in the protection profile.
    The following well-known protection profiles are defined:
    fortanixFX2200 = 1.3.6.1.4.1.49690.2.5.1.1
    
    This protection profile includes the following minimum requirements:
    • The computing environment is protected using an Intel SGX Trusted Execution Environment of one of the following SGX types:
      • Standard
      • Scalable with Cryptographic Integrity
    • The node is a Fortanix FX2200 appliance.
    • The node is compliant with at least FIPS 140-2 or 140-3 hardware level 2.
  • Site operator approval required
    fortanixNodeEnrollmentPolicyItemSiteOperatorApprovalRequired = 1.3.6.1.4.1.49690.2.5.2
    
    • This policy item has no qualifiers.
    • This policy item indicates that a site operator must approve the enrollment of nodes into the cluster.

3.3.2 Claims About the Target Key

Key Usage Claims

Key usage claims indicate for which purposes the Target Key may be used. DSM will not use the Target Key for any purposes not claimed.

  • sign: the Target Key can be used to generate digital signatures.
  • unwrap: the Target Key can be used to decrypt (unwrap) other cryptographic keys.
  • decrypt: the Target Key can be used to decrypt data.
  • agree: the Target Key can be used for key agreement.

The following are the key usage claims:

  • fortanixKeyGeneratedInDSM: This claim indicates that the Target Key was generated in DSM. The claim value is the empty ASN.1 SEQUENCE.
  • fortanixKeyNeverExportable: This claim indicates that the Target Key was never exported from DSM and may not be exported in the future. This prohibition also includes export in encrypted form. The claim value is the empty ASN.1 SEQUENCE.

4.0 Verify the Key Attestation Statements

All of the following steps should be performed prior to relying on the Target Key.

4.1 Validate the Authority Chain

The first step is to verify the authority chain. The objective is to ensure that the authority chain ends in Fortanix Attestation and Provisioning Root CA.

The authority chain must be built using the standard X.509 Certification path building procedure and the standard [ST1] X.509 Certification path validation procedure must be used to verify that the authority chain forms a valid path. The path-building and validation procedure should be called with the following inputs:

  • Target certificate: the Key Attestation Authority Certificate
  • Collection of certificates that may be useful in building the path: the Key Attestation CA Certificates
  • Trust list: the Fortanix Attestation and Provisioning Root CA Certificate
  • Initial user acceptable policy set: initialized with fortanixKeyAttestationPkiCertificatePolicy

4.2 Validate the Key Attestation Authority Certificate

  • If the Key Attestation Authority Certificate contains a Key Usage extension, check that digital signature is allowed.
  • If the Key Attestation Authority Certificate contains a Basic Constraints extension, check that CA is set to false.
  • Check that the Key Attestation Authority Certificate contains an Extended Key Usage extension, and that extension includes fortanixKeyAttestationSigning.

4.3 Validate the Key Attestation Statement

The next step is to ensure that the Fortanix DSM Key Attestation Statement is valid and properly signed by the Key Attestation Authority Certificate. The exact method for verifying this depends on the attestation statement format:

  • For x509_certificate format, since the attestation statement is formatted as an X.509 certificate, the X.509 Certification path validation procedure can be used to verify that the attestation statement is signed by the Fortanix DSM Key Attestation Authority. The procedure should be called with the following inputs:
    • Certification path: the Key Attestation Statement
    • Trust anchor information: the previously identified Key Attestation Authority Certificate
    • user-initial-policy-set: any-policy
NOTE
  • A trust anchor consists only of a name and a public key, but some software implementations of the X.509 Certification path validation procedure may incorrectly try to validate the trust anchor certificate.
  • This is not the same as combining the steps from Section 4.1: Validate the Authority Chain and Section 4.2: Validate the Key Attestation Authority Certificate and performing the X.509 Certification path validation procedure on the Key Attestation Statement with the Fortanix Attestation and Provisioning Root CA as the trust anchor. The Key Attestation Authority Certificate is not a CA since it does not have the right basic constraints and key usage extensions and, as such, cannot be used as an intermediate CA in the path.
  • The user should check that the Key Attestation Statement's "not before" time is within the validity of the Key Attestation Authority Certificate.

4.4. Validating the Claims

The Key Attestation Authority Certificate and Key Attestation Statement must be checked for claims that are of interest.

Comments

Please sign in to leave a comment.

Was this article helpful?
0 out of 0 found this helpful