Skip to content

Latest commit

 

History

History
29 lines (24 loc) · 2.3 KB

key-expiration-enabled.md

File metadata and controls

29 lines (24 loc) · 2.3 KB

CloudSploit

AZURE / Key Vaults / Key Expiration Enabled

Quick Info

Plugin Title Key Expiration Enabled
Cloud AZURE
Category Key Vaults
Description Ensure that all Keys in Azure Key Vault have an expiry time set.
More Info Setting an expiry time on all keys forces key rotation and removes unused and forgotten keys from being used.
AZURE Link https://docs.microsoft.com/en-us/azure/key-vault/about-keys-secrets-and-certificates
Recommended Action Ensure each Key Vault has an expiry time set that provides for sufficient rotation.

Detailed Remediation Steps

  1. Log into the Microsoft Azure Management Console.
  2. In the search bar at the top search for Vaults and select "Key Vaults" from the search result.
  3. In the Key Vaults page select a key vault by clicking on the "Name" link to access the configuration changes.
  4. Scroll down and click "Keys" from the navigation pane on the left. Then, from the list of keys, select key with no expiration date under "Expiration date" column.
  5. In the key versions pane that opens, click "Rotation Policy" button at the top.
  6. In the Rotation policy pane, click on the Expiry time textbox and enter 28. From the units dropdown next to the textbox, select "days".
  7. Under the Rotation section, "Enable auto rotation" by selecting the "Enabled" radio button.
  8. Select "Automatically renew at a given time after creation" for "Rotation option".
  9. For "Rotation time" enter 18 and select "days" as the unit of time.
  10. Finally, hit "Save" at the top of the pane to complete the changes.
  11. Repeat step number 3 - 10 for all other key vaults and keys without expiration date.