Skip to content

[RULE] AZ-KV-005: Key Vault Certificate Expiring Within 30 Days #72

@TFT444

Description

@TFT444

Objective

Add a new scanner rule to detect Key Vault certificates that are expiring within 30 days and have no auto-renewal configured, risking service outages and broken TLS connections.

Background

Expired certificates cause immediate service outages, broken HTTPS connections, and failed authentication flows. Many organisations only discover expired certificates after an outage has already occurred. A 30 day early warning gives teams enough time to renew or replace before impact.

Real-World Breach Scenario

In 2020, Microsoft Teams experienced a global outage caused by an expired authentication certificate. The incident affected millions of users for several hours and could have been prevented with automated certificate expiry monitoring.

Compliance Mapping

  • CIS Azure Benchmark: 8.5
  • NIST CSF: PR.MA-1
  • ISO 27001: A.10.1.2
  • SOC 2: CC9.1

Deliverables

  • scanner/rules/az_kv_004.py — scan() function using Azure SDK
  • playbooks/cli/fix_az_kv_004.sh — enable auto-renewal on expiring certificates
  • compliance/frameworks/cis_azure_benchmark.json — add AZ-KV-004 entry
  • compliance/frameworks/nist_csf.json — add AZ-KV-004 entry
  • compliance/frameworks/iso27001.json — add AZ-KV-004 entry
  • compliance/frameworks/soc2.json — add AZ-KV-004 entry

Severity

MEDIUM

Category

Key Vault

Metadata

Metadata

Assignees

Labels

new-ruleAdding a new misconfiguration scan rule

Type

No type
No fields configured for issues without a type.

Projects

Status

📋 Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions