Encryption FAQ
This topic provides answers to frequently asked questions about encryption in Secret Server.
General
Is Secret Server source code available for review?
Secret Server is currently closed source and is not available for review.
What is the cryptographic library used by Secret Server?
Secret Server uses the Microsoft CNG namespace of the .NET Framework library for encryption, which uses the ncrypt and bcrypt Microsoft libraries. FIPS mode can be enabled in Secret Server to ensure that only FIPS-validated algorithms are used.
Password Storage
Can we enforce a password policy that requires eight characters or more?
Yes, the password policy can require longer than 8 characters. To configure this:
- Search for Configuration.
- Click the Local User Passwords tab.
- Set the minimum password length to 9 or higher.
To control passwords stored in secrets rather than login passwords, you can define Password Requirements under Admin > Secret Templates.
How are login passwords stored?
Local user passwords are hashed using PBKDF2-SHA256 with 100,000 iterations to a fixed character length digest (hexadecimal from the bytes).
Password fields on secrets are encrypted using AES-256 since the system must be able to retrieve them to perform password changing, heartbeat, and session launching.
Secret Server enforces rules on secret passwords using Password Requirements by Secret Template. You can also enforce requirements on local login passwords if you don't use AD authentication to get into Secret Server. If you use AD to authenticate to Secret Server, then you can set your password policy in AD and the password is not stored in Secret Server.
How is PBKDF2-SHA256 used to hash passwords?
Secret Server uses the Microsoft CNG API for PBKDF2-SHA256 with a user-specific randomized salt and 100,000 iterations for local user passwords.
How is the salt stored?
The salt is stored on the tbUser.Password column as the first 32 characters of the value. There is no pipe or other separation value. Secret Server knows to use the first 32 characters as the salt.
How and where are salts stored for encrypted data?
Salts are stored as prepended values in the same database column as the hashed (for hashed passwords) or encrypted value (for secret data that is salted/entropied before encryption to avoid duplicate encrypted values).
Authentication
Is another authentication supported, such as Active Directory?
Yes. Active Directory, SAML, and RADIUS authentication are all supported.
Is Mutual HTTPS authentication supported?
IIS can be configured to require client certificates before granting access to the website. Secret Server also has other means to ensure the identity of the client:
- IP address restrictions: Restrict the IP address ranges from which a user can access Secret Server.
- RADIUS-based authentication: Allows authentication through RSA tokens or any RADIUS-compatible authentication.
- Two-factor authentication: Using pin-codes via email, OATH authenticators, and Duo Security to ensure the user has access to a secondary device or their email account.
Encryption
What is the HTTPS cipher suite?
The HTTPS cipher suite is controlled by IIS and can be configured through the IIS Manager.
What is the AES-256 block cipher mode of operation?
Secret Server uses the CBC cipher mode of operation for all AES-256 encryption operations. All secret items are encrypted using AES-256.
How are initialization vectors managed?
Initialization vectors (IVs) are managed in the same way that encryption keys are managed. Each secret item has its own random unique IV.
Would two or more different passwords be separately encrypted using the same cryptographic key and IV?
No. All secret data is encrypted with a secret-level AES-256 key, and each item has a unique IV.
What is the random number generator for the cryptographic keys?
Secret Server uses the Microsoft CNG Random Number Generator.
Cryptographic Keys
How are cryptographic keys generated, stored, and protected in Secret Server?
Cryptographic keys are randomly generated during installation and encrypted using a heavily obfuscated encryption key. They are then stored in the encryption.config file, which exists in the Secret Server directory. This file is required for decrypting database information, so we recommend that you do not give the same user account access to both the encryption.config file and the database. Each encryption key is unique per installation.
When using an HSM, the top-level master key is an RSA 2048 or 4096 key managed by the HSM rather than a key in the encryption.config file.
If not using an HSM, you can enforce DPAPI or EFS protection on the encryption.config file for additional security.
The top-level key (either the encryption.config or RSA key managed by the HSM) encrypts the secret keys, which are intermediate AES-256 keys. The intermediate keys can be rotated in the administration menu.
Is there support for using an HSM to store the cryptographic keys?
Yes. Secret Server supports any HSM with a CNG provider or PKCS #11 support. For more information, see Hardware Security Module Overview.
QuantumLock
Where are the QuantumLock key pairs stored?
The QuantumLock IV is stored in the database table tbDoubleLock. The QuantumLock key is stored in the database table tbEncryptor per user that is assigned to that QuantumLock. Note that the QuantumLock is a symmetric 256-bit key used for AES encryption.
Does Unlimited Administrator Mode allow access to QuantumLock-protected passwords?
No. This would not be possible since the person would not have the necessary information to decrypt the QuantumLock keys, which are then needed to decrypt the secret data.
What public key cryptography standards, algorithms, and key lengths are used by QuantumLock?
Each user has a public and private key pair: RSA-2048 by default, or ML-KEM-1024 when Quantum Safe Encryption is enabled. The private key is encrypted using a key derived from their QuantumLock password.
ML-KEM-1024 is the post-quantum key-encapsulation mechanism standardized by NIST in FIPS 203. It was standardized from the CRYSTALS-Kyber submission, so earlier documentation and the Secret Server user interface refer to it as Kyber or Kyber-1024. It is designed to counter the potential threat from quantum computers to current public-key encryption methods.
Is the RSA key pair generated according to any standard, such as PKCS#1?
Secret Server uses System.Security.Cryptography.RSACryptoServiceProvider to create the RSA key pair using a key size of 2048.
How is the QuantumLock password used as a key?
Yes, there is a key derivation function. Secret Server uses Rfc2898DeriveBytes (PBKDF2) with a fixed salt and 1000 iterations to derive a 32-byte (256-bit) AES key from the QuantumLock password.
Is a standard such as PKCS#1 used to RSA encrypt the QuantumLock symmetric AES key?
Yes. Secret Server uses PKCS#1-based RSA encryption using OAEP padding.
What RSA key size is used during QuantumLock?
The key size used for the RSA key is 2048. The generation and use of the 2048 key does not take any noticeable time when using the user interface.