The rule book.

All 155 misconfiguration rules across 17 Azure domains, with 156 remediation playbooks. Every rule is a plain Python file in scanner/rules/, extracted here at build time.

SHOWING 155 OF 155 RULES
HighAZ-AKS-001

AKS Private Cluster Not Enabled

aksCIS N/A-AKS-001NIST PR.AC-3
Details +

The AKS API server is reachable through a public endpoint. Public control-plane exposure increases the opportunity for credential attacks and unauthorized cluster access.

Fix: Enable the AKS private cluster feature after validating private DNS and administrator connectivity.

CIS N/A-AKS-001NIST PR.AC-3ISO27001 A.8.20SOC2 CC6.6
fix_az_aks_001.sh →
HighAZ-AKS-002

AKS Local Accounts Enabled

aksCIS N/A-AKS-002NIST PR.AC-1
Details +

Local AKS accounts bypass centralized Microsoft Entra identity controls and can provide long-lived cluster access outside normal conditional-access and lifecycle processes.

Fix: Disable AKS local accounts after confirming Microsoft Entra administrators can access the cluster.

CIS N/A-AKS-002NIST PR.AC-1ISO27001 A.5.16SOC2 CC6.1
fix_az_aks_002.sh →
HighAZ-AKS-003

AKS Cluster Not Using Managed Identity

aksCIS N/A-AKS-003NIST PR.AC-1
Details +

The AKS control plane is not configured with a managed identity. Legacy service principals depend on credentials that require rotation and can be exposed or expire unexpectedly.

Fix: Migrate the AKS cluster from its service principal to a system- or user-assigned managed identity.

CIS N/A-AKS-003NIST PR.AC-1ISO27001 A.5.16SOC2 CC6.1
fix_az_aks_003.sh →
MediumAZ-AKS-004

AKS Workload Identity Not Fully Enabled

aksCIS N/A-AKS-004NIST PR.AC-4
Details +

AKS Workload Identity and its OIDC issuer are not both enabled. Applications may consequently depend on shared credentials or broader node identities when accessing Azure resources.

Fix: Enable both the AKS OIDC issuer and Microsoft Entra Workload Identity, then federate each workload.

CIS N/A-AKS-004NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.3
fix_az_aks_004.sh →
MediumAZ-AKS-005

AKS Azure Policy Add-on Not Enabled

aksCIS N/A-AKS-005NIST PR.IP-1
Details +

The Azure Policy add-on is not enabled for the AKS cluster. The organization cannot centrally audit or enforce Kubernetes admission controls through Azure Policy.

Fix: Enable the Azure Policy add-on and assign an appropriate AKS security initiative in audit mode first.

CIS N/A-AKS-005NIST PR.IP-1ISO27001 A.8.9SOC2 CC8.1
fix_az_aks_005.sh →
HighAZ-AKS-006

AKS Node OS Automatic Upgrades Disabled

aksCIS N/A-AKS-006NIST PR.IP-12
Details +

The AKS node OS upgrade channel does not automatically apply managed security updates. Worker nodes can remain exposed to operating-system vulnerabilities without a separate patch process.

Fix: Set the AKS node OS upgrade channel to SecurityPatch or NodeImage and configure a maintenance window.

CIS N/A-AKS-006NIST PR.IP-12ISO27001 A.8.8SOC2 CC7.1
fix_az_aks_006.sh →
HighAZ-AKS-007

AKS API Server Lacks Approved IP Restrictions

aksCIS N/A-AKS-007NIST PR.AC-3
Details +

A public AKS API server accepts traffic from sources outside the organization-approved IP ranges.

Fix: Use a private cluster or restrict API server authorized IP ranges to the approved administration networks.

CIS N/A-AKS-007NIST PR.AC-3ISO27001 A.8.20SOC2 CC6.6
fix_az_aks_007.sh →
HighAZ-AKS-008

AKS Cluster Has No Kubernetes Network Policy

aksCIS N/A-AKS-008NIST PR.AC-5
Details +

The AKS cluster has no supported network policy engine to enforce workload traffic boundaries.

Fix: Enable Azure, Calico, or Cilium network policy using a tested cluster upgrade or migration plan.

CIS N/A-AKS-008NIST PR.AC-5ISO27001 A.8.22SOC2 CC6.6
fix_az_aks_008.sh →
HighAZ-AKS-009

Kubernetes Namespace Has No NetworkPolicy

aksCIS N/A-AKS-009NIST PR.AC-5
Details +

An eligible application namespace contains no NetworkPolicy and has no workload traffic boundary.

Fix: Apply tested default-deny ingress and egress policies, then add explicit workload communication allowances.

CIS N/A-AKS-009NIST PR.AC-5ISO27001 A.8.22SOC2 CC6.6
fix_az_aks_009.sh →
HighAZ-AKS-010

Defender for Containers Protection Disabled

aksCIS 2.1.8NIST DE.CM-8
Details +

Microsoft Defender for Containers is disabled, removing managed threat detection for in-scope clusters.

Fix: Enable the Containers Defender plan at subscription scope and validate sensor deployment.

CIS 2.1.8NIST DE.CM-8ISO27001 A.8.8SOC2 CC7.1
fix_az_aks_010.sh →
HighAZ-AKS-011

AKS Secrets Lack Key Vault or KMS-Backed Protection

aksCIS N/A-AKS-011NIST PR.DS-1
Details +

A workload references native Kubernetes Secrets while Azure Key Vault KMS encryption is disabled.

Fix: Enable and validate Key Vault KMS for native Kubernetes Secrets, or configure the Key Vault Secrets Store CSI provider with Workload Identity and migrate the workload so it no longer references native Secrets.

CIS N/A-AKS-011NIST PR.DS-1ISO27001 A.8.24SOC2 CC6.1
fix_az_aks_011.sh →
MediumAZ-AKS-012

Secrets Store CSI Secret Rotation Disabled

aksCIS N/A-AKS-012NIST PR.AC-1
Details +

The enabled Key Vault Secrets Store CSI provider does not automatically rotate mounted secret material.

Fix: Enable secret rotation for the AKS Key Vault Secrets Store CSI provider and test application reload behavior.

CIS N/A-AKS-012NIST PR.AC-1ISO27001 A.5.17SOC2 CC6.1
fix_az_aks_012.sh →
CriticalAZ-AKS-013

Kubernetes Workload Permits Privileged Containers

aksCIS N/A-AKS-013NIST PR.AC-4
Details +

A workload explicitly enables privileged mode for an application or init container.

Fix: Remove privileged mode and grant only the specific Linux capabilities required by the workload.

CIS N/A-AKS-013NIST PR.AC-4ISO27001 A.8.3SOC2 CC6.1
fix_az_aks_013.sh →
HighAZ-AKS-014

Kubernetes Workload Uses Host Network

aksCIS N/A-AKS-014NIST PR.AC-5
Details +

A workload explicitly shares the Kubernetes node network namespace.

Fix: Disable hostNetwork and use Kubernetes Services or an approved network integration.

CIS N/A-AKS-014NIST PR.AC-5ISO27001 A.8.22SOC2 CC6.6
fix_az_aks_014.sh →
HighAZ-AKS-015

Kubernetes Workload Uses Host PID Namespace

aksCIS N/A-AKS-015NIST PR.AC-4
Details +

A workload explicitly shares the Kubernetes node process namespace.

Fix: Disable hostPID and use scoped observability or management interfaces instead of node process access.

CIS N/A-AKS-015NIST PR.AC-4ISO27001 A.8.3SOC2 CC6.1
fix_az_aks_015.sh →
HighAZ-AKS-016

Kubernetes Workload Uses Host IPC Namespace

aksCIS N/A-AKS-016NIST PR.AC-4
Details +

A workload explicitly shares the Kubernetes node inter-process communication namespace.

Fix: Disable hostIPC and use scoped application communication mechanisms.

CIS N/A-AKS-016NIST PR.AC-4ISO27001 A.8.3SOC2 CC6.1
fix_az_aks_016.sh →
HighAZ-AKS-017

Kubernetes Workload Uses Unrestricted HostPath Volumes

aksCIS N/A-AKS-017NIST PR.AC-4
Details +

A workload mounts a path from the Kubernetes node filesystem.

Fix: Replace hostPath with a scoped persistent volume or an approved CSI volume and enforce admission policy.

CIS N/A-AKS-017NIST PR.AC-4ISO27001 A.8.3SOC2 CC6.1
fix_az_aks_017.sh →
CriticalAZ-AKS-018

Kubernetes Cluster Admin Access Assigned Too Broadly

aksCIS N/A-AKS-018NIST PR.AC-4
Details +

A ClusterRoleBinding grants cluster-admin to a subject outside the approved platform administrator allowlist.

Fix: Remove the broad binding and replace it with namespace-scoped, least-privilege roles for approved groups.

CIS N/A-AKS-018NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.3
fix_az_aks_018.sh →
HighAZ-AKS-019

Kubernetes Workload Uses Untrusted Registry

aksCIS N/A-AKS-019NIST PR.DS-6
Details +

A workload pulls an image from a registry outside the organization-approved trust prefixes.

Fix: Mirror the image into an approved registry, verify it, and update the workload reference.

CIS N/A-AKS-019NIST PR.DS-6ISO27001 A.8.27SOC2 CC8.1
fix_az_aks_019.sh →
HighAZ-AKS-020

Kubernetes Workload Uses Latest Image Tag

aksCIS N/A-AKS-020NIST PR.IP-1
Details +

A workload uses the latest tag or omits a tag, allowing deployments to change without a manifest change.

Fix: Replace latest or implicit latest with an approved version and preferably a verified sha256 digest.

CIS N/A-AKS-020NIST PR.IP-1ISO27001 A.8.32SOC2 CC8.1
fix_az_aks_020.sh →
MediumAZ-AKS-021

Kubernetes Workload Image Is Not Digest Pinned

aksCIS N/A-AKS-021NIST PR.DS-6
Details +

A workload image uses a mutable tag instead of a verified sha256 digest required by policy.

Fix: Resolve the approved image digest and pin the workload image to its sha256 reference.

CIS N/A-AKS-021NIST PR.DS-6ISO27001 A.8.27SOC2 CC8.1
fix_az_aks_021.sh →
CriticalAZ-BAK-001

Backup Soft Delete Disabled or Below 35 Days

backupCIS N/A-BAK-001NIST PR.IP-4
Details +

The Recovery Services vault lacks the approved soft-delete recovery window.

Fix: Enable enhanced soft delete and set retention to at least 35 days after reviewing cost and retention requirements.

CIS N/A-BAK-001NIST PR.IP-4ISO27001 A.8.13SOC2 A1.2
fix_az_bak_001.sh →
HighAZ-BAK-002

Backup Vault Immutability Disabled

backupCIS N/A-BAK-002NIST PR.IP-4
Details +

Vault immutability is disabled, allowing destructive changes to protected recovery points.

Fix: Enable immutability after reviewing protected items and policies; do not lock it automatically.

CIS N/A-BAK-002NIST PR.IP-4ISO27001 A.8.13SOC2 A1.2
fix_az_bak_002.sh →
HighAZ-BAK-004

Backup Multiuser Authorization Missing

backupCIS N/A-BAK-004NIST PR.AC-4
Details +

The vault does not enable Resource Guard multiuser authorization.

Fix: Configure a separately owned Resource Guard and protect critical operations with MUA.

CIS N/A-BAK-004NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.1
fix_az_bak_004.sh →
MediumAZ-BAK-006

Backup Security Monitoring Disabled

backupCIS N/A-BAK-006NIST DE.CM-1
Details +

The Recovery Services vault does not enable built-in monitoring for backup job failures.

Fix: Enable Azure Monitor alerts and route backup diagnostics to the approved monitoring destination.

CIS N/A-BAK-006NIST DE.CM-1ISO27001 A.8.16SOC2 CC7.2
fix_az_bak_006.sh →
HighAZ-CACHE-001

Managed Cache Public or Non-TLS Access

cacheCIS N/A-CACHE-001NIST PR.AC-5
Details +

An explicitly protected managed cache permits public network access or a minimum TLS version below 1.2.

Fix: Disable public access and require TLS 1.2 or later for the managed cache.

CIS N/A-CACHE-001NIST PR.AC-5ISO27001 A.8.20SOC2 CC6.6
fix_az_cache_001.sh →
HighAZ-CMP-001

VM with Public IP and No Associated NSG on Network Interface

computeCIS 7.1NIST PR.AC-3
Details +

A virtual machine has a public IP address assigned to its network interface but no Network Security Group protecting that interface. Without an NSG, all inbound ports are open to the internet by default, creating an unrestricted attack surface.

Fix: Associate an NSG with the VM's network interface or its subnet that allows only required inbound traffic. Remove the public IP if internet access is not needed and use Azure Bastion or a VPN gateway for administrative access.

CIS 7.1NIST PR.AC-3ISO27001 A.8.20
fix_az_cmp_001.sh →
HighAZ-CMP-002

Virtual machine disk not protected by customer-managed key or ADE

computeCIS 7.2NIST PR.DS-1
Details +

One or more disks attached to this virtual machine are using platform-managed encryption only (EncryptionAtRestWithPlatformKey). CIS 7.2 requires disks to be protected using either Azure Disk Encryption (ADE) or server-side encryption with a customer-managed key (CMK). Platform-managed encryption does not give the organisation control over the encryption keys.

Fix: Configure server-side encryption with a customer-managed key via a Disk Encryption Set, or enable Azure Disk Encryption on all OS and data disks. Navigate to: Virtual Machine > Disks > Additional settings > Disk encryption set, or use az vm encryption enable with a Key Vault.

CIS 7.2NIST PR.DS-1ISO27001 A.8.24SOC2 CC6.7
fix_az_cmp_002.sh →
HighAZ-CMP-003

VM Without Endpoint Protection Installed

computeCIS 8.2NIST DE.CM-4
Details +

VM has no recognised endpoint protection extension installed. Without it malware and ransomware can run undetected. CIS 8.2 requires an approved AV/EDR solution on all VMs.

Fix: Open Defender for Cloud > Recommendations > 'Endpoint protection should be installed on your machines', review why the agent is reporting unhealthy on this VM, and remediate (reinstall/repair the AV/EDR agent, resolve conflicting security products).

CIS 8.2NIST DE.CM-4ISO27001 A.8.7SOC2 CC6.8
fix_az_cmp_003.sh →
HighAZ-CMP-004

VM Without Automatic OS Patching Enabled

computeCIS 8.3NIST PR.IP-12
Details +

VM does not have automatic OS patching enabled. Unpatched VMs are vulnerable to known exploits. CIS 8.3 requires OS patches are applied in a timely manner.

Fix: For Windows VMs enable automatic updates via osProfile.windowsConfiguration or set patchMode to AutomaticByPlatform. For Linux VMs set patchMode to AutomaticByPlatform.

CIS 8.3NIST PR.IP-12ISO27001 A.8.8SOC2 CC7.1
fix_az_cmp_004.sh →
MediumAZ-CMP-005

VM Without Trusted Launch (Secure Boot and vTPM) Enabled

computeCIS N/A-CMP-005NIST PR.DS-6
Details +

A Generation 2 virtual machine does not have Trusted Launch fully enabled (security type TrustedLaunch with both Secure Boot and vTPM turned on). Without Secure Boot and a virtual TPM, unsigned or malicious code can run during boot and persist beneath the OS, evading OS-level antimalware and EDR. Generation 1 VMs do not support Trusted Launch and are not flagged.

Fix: Enable Trusted Launch on the VM: set the security type to TrustedLaunch and turn on Secure Boot and vTPM, e.g. `az vm update --name <vm> --resource-group <rg> --security-type TrustedLaunch --enable-secure-boot true --enable-vtpm true` (requires a restart; only supported on Gen2 VM sizes/images).

CIS N/A-CMP-005NIST PR.DS-6ISO27001 A.8.19SOC2 CC6.8
fix_az_cmp_005.sh →
HighAZ-CMP-006

VM Scale Set with Public IP and No Associated NSG on Network Interface

computeCIS N/A-CMP-006NIST PR.AC-3
Details +

A VM Scale Set network interface configuration provisions a public IP address for its instances but has no Network Security Group protecting that interface, either directly or via the subnet it deploys into. Without an NSG, all inbound ports are open to the internet by default on every instance created from this scale set, creating an unrestricted attack surface.

Fix: Attach an NSG to the scale set's network interface configuration or to the subnet it deploys into, with rules that allow only required inbound traffic. Remove the public IP configuration if internet access is not needed and use Azure Bastion or a load balancer for administrative/application access instead.

CIS N/A-CMP-006NIST PR.AC-3ISO27001 A.8.20SOC2 CC6.6
fix_az_cmp_006.sh →
MediumAZ-CMP-007

VM Management Ports Open Without Just-In-Time (JIT) Access

computeCIS N/A-CMP-007NIST PR.AC-3
Details +

A virtual machine has management ports (SSH 22 / RDP 3389) allowed inbound from the internet by a network security group (on the NIC or its subnet), and no Microsoft Defender for Cloud Just-In-Time (JIT) VM access policy covers those ports. The ports are therefore open on a standing basis instead of only during an approved, time-boxed request, leaving them continuously exposed to scanning and brute-force attacks. VMs with no management ports open are not applicable.

Fix: Enable Just-In-Time VM access in Microsoft Defender for Cloud for the affected VM and ports (or `az security jit-policy create`), so management ports are only opened for an approved, time-limited window. Alternatively restrict the NSG rule to trusted source ranges or use Azure Bastion for administrative access.

CIS N/A-CMP-007NIST PR.AC-3ISO27001 A.8.20SOC2 CC6.6
fix_az_cmp_007.sh →
HighAZ-COSMOS-001

Cosmos DB Local Authentication Enabled

cosmos dbCIS N/A-COSMOS-001NIST PR.AC-6
Details +

An explicitly protected Cosmos DB account permits local key authentication.

Fix: Disable local authentication after confirming all clients use Microsoft Entra authentication.

CIS N/A-COSMOS-001NIST PR.AC-6ISO27001 A.8.5SOC2 CC6.3
fix_az_cosmos_001.sh →
HighAZ-COSMOS-002

Cosmos DB Public Network Access Enabled

cosmos dbCIS N/A-COSMOS-002NIST PR.AC-5
Details +

An explicitly protected Cosmos DB account allows public network access.

Fix: Disable public network access and use approved private connectivity or an explicit exception.

CIS N/A-COSMOS-002NIST PR.AC-5ISO27001 A.8.20SOC2 CC6.6
fix_az_cosmos_002.sh →
HighAZ-DB-001

PostgreSQL Server Allows Public Network Access

databaseCIS 4.3.1NIST PR.AC-3
Details +

The Azure Database for PostgreSQL server is configured to allow public network access. This means the server endpoint is reachable from the public internet, increasing the attack surface. Database servers should only be accessible from trusted private networks.

Fix: Disable public network access on the PostgreSQL server and configure a private endpoint or VNet service endpoint to restrict connectivity to trusted networks only.

CIS 4.3.1NIST PR.AC-3ISO27001 A.8.20
fix_az_db_001.sh →
MediumAZ-DB-002

Azure SQL Server Has No Auditing Configured

databaseCIS 4.1.3NIST DE.CM-7
Details +

Azure SQL Server auditing is disabled. Without auditing, database access, schema changes, and failed login attempts are not logged, making forensic investigation and compliance reporting impossible.

Fix: Enable SQL Server auditing and configure a storage account, Log Analytics workspace, or Event Hub as the audit log destination. Retain logs for at least 90 days to satisfy most compliance frameworks.

CIS 4.1.3NIST DE.CM-7ISO27001 A.8.15
fix_az_db_002.sh →
HighAZ-DB-003

PostgreSQL Flexible Server SSL Enforcement Disabled

databaseCIS 4.3.6NIST PR.DS-2
Details +

The Azure Database for PostgreSQL Flexible Server has SSL enforcement disabled. Without SSL, data in transit between the application and database is transmitted in plaintext and is vulnerable to interception and man-in-the-middle attacks.

Fix: Enable SSL enforcement on the PostgreSQL Flexible Server by setting require_secure_transport to ON. Run: az postgres flexible-server parameter set --resource-group <rg> --server-name <server> --name require_secure_transport --value ON

CIS 4.3.6NIST PR.DS-2ISO27001 A.8.24SOC2 CC6.1
fix_az_db_003.sh →
HighAZ-DB-004

SQL Server Firewall Allows All Azure Services

databaseCIS 4.1.2NIST PR.AC-3
Details +

Azure SQL Server has the 'Allow access to Azure services' firewall setting enabled. This creates a firewall rule that permits any resource hosted in Azure, including services from other tenants, to connect to the SQL Server. This significantly increases the attack surface and can allow unauthorised access from compromised or malicious Azure-hosted services.

Fix: Disable the 'Allow access to Azure services' setting on the SQL Server firewall. Instead, add explicit firewall rules for specific trusted IP ranges or use private endpoints to restrict access to known sources only.

CIS 4.1.2NIST PR.AC-3ISO27001 A.8.20SOC2 CC6.6
fix_az_db_004.sh →
HighAZ-DB-005

SQL Server Microsoft Entra-Only Authentication Not Enforced

databaseCIS N/A-DB-005NIST PR.AC-6
Details +

An explicitly protected Azure SQL server permits SQL authentication instead of enforcing Microsoft Entra-only authentication.

Fix: Enable Microsoft Entra-only authentication after confirming all clients use Entra identities.

CIS N/A-DB-005NIST PR.AC-6ISO27001 A.8.5SOC2 CC6.3
fix_az_db_005.sh →
HighAZ-DB-006

SQL Vulnerability Assessment Not Configured

databaseCIS N/A-DB-006NIST DE.CM-8
Details +

An explicitly protected Azure SQL server has no enabled vulnerability-assessment configuration.

Fix: Enable SQL vulnerability assessment and configure an approved storage destination.

CIS N/A-DB-006NIST DE.CM-8ISO27001 A.8.8SOC2 CC7.1
fix_az_db_006.sh →
MediumAZ-DB-007

SQL Auditing Retention Below Minimum

databaseCIS N/A-DB-007NIST PR.PT-1
Details +

An explicitly protected Azure SQL server retains audit logs for less than the required 90 days.

Fix: Enable SQL auditing and set retention to at least 90 days in an approved destination.

CIS N/A-DB-007NIST PR.PT-1ISO27001 A.8.15SOC2 CC7.2
fix_az_db_007.sh →
HighAZ-DB-008

Azure SQL Server Minimum TLS Version Below 1.2

databaseCIS N/A-DB-008NIST PR.DS-2
Details +

The Azure SQL Server does not enforce a minimum TLS version of 1.2 or higher. Connections are still able to negotiate the deprecated TLS 1.0 or 1.1 protocols, or no minimum is set at all, leaving data in transit exposed to known protocol downgrade and interception weaknesses in those older versions.

Fix: Set the server's minimum TLS version to 1.2. Run: az sql server update --name <server-name> --resource-group <resource-group> --minimal-tls-version 1.2

CIS N/A-DB-008NIST PR.DS-2ISO27001 A.8.24SOC2 CC6.7
fix_az_db_008.sh →
HighAZ-DL-001

ExpressRoute Direct Link Does Not Use MACsec

data linkCIS N/A-DL-001NIST PR.DS-2
Details +

An enabled ExpressRoute Direct Ethernet link does not have a MACsec configuration.

Fix: Plan a maintenance window, store CAK and CKN values in Azure Key Vault, then enable MACsec on both ends of the ExpressRoute Direct link. Confirm connectivity before retiring the previous configuration.

CIS N/A-DL-001NIST PR.DS-2ISO27001 A.8.20SOC2 CC6.7
fix_az_dl_001.sh →
MediumAZ-DL-002

High-Speed ExpressRoute Direct Link Uses Non-XPN MACsec

data linkCIS N/A-DL-002NIST PR.DS-2
Details +

An enabled ExpressRoute Direct port of 40 Gbps or greater uses a MACsec cipher without XPN.

Fix: Confirm both peer devices support an XPN cipher, schedule a maintenance window, update the MACsec cipher on both ends, and verify link counters and traffic before completing the change.

CIS N/A-DL-002NIST PR.DS-2ISO27001 A.8.20SOC2 CC6.7
fix_az_dl_002.sh →
HighAZ-FUNC-001

Function App HTTPS Only Disabled

serverlessCIS N/A-FUNC-001NIST PR.DS-2
Details +

The Function App accepts unencrypted HTTP traffic.

Fix: Enable HTTPS Only after validating clients.

CIS N/A-FUNC-001NIST PR.DS-2ISO27001 A.5.14
fix_az_func_001.sh →
HighAZ-FUNC-002

Function App Minimum TLS Below 1.2

serverlessCIS N/A-FUNC-002NIST PR.DS-2
Details +

The Function App permits TLS older than 1.2.

Fix: Set the minimum inbound TLS version to 1.2 or newer.

CIS N/A-FUNC-002NIST PR.DS-2ISO27001 A.5.14
fix_az_func_002.sh →
MediumAZ-FUNC-003

Function App FTP Publishing Enabled

serverlessCIS N/A-FUNC-003
Details +

The Function App exposes an FTP or FTPS deployment channel.

Fix: Disable FTP/FTPS publishing after migrating deployment automation.

CIS N/A-FUNC-003
fix_az_func_003.sh →
HighAZ-FUNC-004

Function App Remote Debugging Enabled

serverlessCIS N/A-FUNC-004
Details +

Remote debugging expands the Function App management attack surface.

Fix: Disable remote debugging outside a controlled troubleshooting window.

CIS N/A-FUNC-004
fix_az_func_004.sh →
MediumAZ-FUNC-005

Function App Managed Identity Missing

serverlessCIS N/A-FUNC-005
Details +

The Function App has no Azure managed identity for secretless resource access.

Fix: Assign a managed identity and migrate supported credentials to identity-based access.

CIS N/A-FUNC-005
fix_az_func_005.sh →
HighAZ-GOV-001

Subscription Outside Approved Management Group Hierarchy

govCIS N/A-GOV-001NIST PR.AC-4
Details +

An Azure subscription is outside the organisation's approved management-group hierarchy.

Fix: Move the subscription into an approved management group after validating inherited policy and access effects.

CIS N/A-GOV-001NIST PR.AC-4ISO27001 A.5.15SOC2 CC6.3
fix_az_gov_001.sh →
HighAZ-GOV-002

Required Security Policy Initiative Missing

govCIS N/A-GOV-002NIST PR.IP-1
Details +

A required security policy initiative is not assigned at its approved scope.

Fix: Assign the required initiative at the approved scope and validate its effective state.

CIS N/A-GOV-002NIST PR.IP-1ISO27001 A.5.1SOC2 CC5.2
fix_az_gov_002.sh →
HighAZ-GOV-003

Preventive Policy Uses Non-Enforcing Effect

govCIS N/A-GOV-003NIST PR.IP-1
Details +

A mandatory preventive policy assignment uses an effect that does not enforce the approved control.

Fix: Update the assignment effect to an organisation-approved preventive effect after testing impact.

CIS N/A-GOV-003NIST PR.IP-1ISO27001 A.5.1SOC2 CC5.2
fix_az_gov_003.sh →
MediumAZ-GOV-004

Policy Exemption Missing Governance Metadata

govCIS N/A-GOV-004NIST PR.IP-1
Details +

A policy exemption lacks an accountable owner, justification, or valid expiration date.

Fix: Add the required exemption metadata or remove the exemption if it is no longer approved.

CIS N/A-GOV-004NIST PR.IP-1ISO27001 A.5.1SOC2 CC5.3
fix_az_gov_004.sh →
HighAZ-GOV-005

Critical Production Resource Missing Deletion Lock

govCIS N/A-GOV-005NIST PR.IP-3
Details +

A production resource in the protected scope has no effective deletion lock.

Fix: Apply a CanNotDelete lock at the resource or an approved parent scope after validating operations.

CIS N/A-GOV-005NIST PR.IP-3ISO27001 A.8.9SOC2 CC6.5
fix_az_gov_005.sh →
HighAZ-GOV-006

Excessive Subscription Owner Assignments

govCIS N/A-GOV-006NIST PR.AC-4
Details +

The subscription has more Owner role assignments than the organisation permits.

Fix: Remove unnecessary Owner assignments and use least-privilege roles with eligible activation where appropriate.

CIS N/A-GOV-006NIST PR.AC-4ISO27001 A.5.18SOC2 CC6.3
fix_az_gov_006.sh →
HighAZ-GOV-007

Privileged Access Assigned at Broad Scope

govCIS N/A-GOV-007NIST PR.AC-4
Details +

A privileged role is assigned outside the organisation's approved scopes.

Fix: Reduce the assignment scope and use eligible time-bound access where supported.

CIS N/A-GOV-007NIST PR.AC-4ISO27001 A.5.18SOC2 CC6.3
fix_az_gov_007.sh →
MediumAZ-GOV-008

Undocumented Resource Provider Registered

govCIS N/A-GOV-008NIST PR.IP-1
Details +

A resource provider is registered without an approved operational requirement.

Fix: Confirm the business requirement, record approval, or unregister the unused provider after impact review.

CIS N/A-GOV-008NIST PR.IP-1ISO27001 A.5.9SOC2 CC6.6
fix_az_gov_008.sh →
MediumAZ-GOV-009

Production Resource Missing Ownership Metadata

govCIS N/A-GOV-009NIST ID.AM-1
Details +

A production resource has no recognised accountable ownership tag.

Fix: Add an approved ownership tag with a current team or service owner.

CIS N/A-GOV-009NIST ID.AM-1ISO27001 A.5.9SOC2 CC2.2
fix_az_gov_009.sh →
HighAZ-GOV-010

Security Configuration Drift Exceeds SLA

govCIS N/A-GOV-010NIST DE.CM-8
Details +

Confirmed non-compliant policy state has remained unresolved beyond the approved remediation SLA.

Fix: Investigate the policy state, remediate the drift, and confirm compliance with a new evaluation.

CIS N/A-GOV-010NIST DE.CM-8ISO27001 A.8.8SOC2 CC7.2
fix_az_gov_010.sh →
HighAZ-IDN-001

Service Principal Assigned Owner Role at Subscription Scope

identityCIS 1.24NIST PR.AC-4
Details +

A service principal holds the Owner role at subscription scope, granting it full control over all resources and the ability to assign roles to other principals. This violates the principle of least privilege and represents a critical blast-radius risk if the service principal credentials are compromised.

Fix: Replace the Owner role assignment with a narrower built-in role (e.g., Contributor, or a custom role) that covers only the required permissions. Audit and rotate the service principal's client secret or certificate.

CIS 1.24NIST PR.AC-4ISO27001 A.8.2
fix_az_idn_001.sh →
HighAZ-IDN-002

No MFA Enforced on Admin Accounts via Conditional Access

identityCIS 1.2.4NIST PR.AC-1
Details +

No Conditional Access policy is enabled that requires multi-factor authentication for administrator accounts. Without MFA enforcement, a single compromised password is sufficient for an attacker to gain privileged access to the Azure tenant.

Fix: Create a Conditional Access policy that targets administrator directory roles (Global Administrator, Privileged Role Administrator, etc.) and requires MFA as a grant control. Ensure the policy state is set to 'enabled'.

CIS 1.2.4NIST PR.AC-1ISO27001 A.8.5
fix_az_idn_002.sh →
MediumAZ-IDN-003

Guest user invitations not restricted to admins in Entra ID

identityCIS 1.15NIST PR.AC-1
Details +

Guest user invitations in Entra ID are not restricted to administrators. Any organisation member can invite external users into the tenant without centralised review or approval. This bypasses formal external identity provisioning controls and increases the risk of unauthorised access by untrusted parties.

Fix: Restrict guest invitations to admins only by setting the 'allowInvitesFrom' policy to 'adminsAndGuestInviters' or 'admins' in Entra ID. Navigate to: Entra ID > External Identities > External collaboration settings > Guest invite settings. Set to 'Only users assigned to specific admin roles can invite guest users'.

CIS 1.15NIST PR.AC-1ISO27001 A.5.16
fix_az_idn_003.sh →
HighAZ-IDN-004

No Privileged Identity Management for Admin Roles

identityCIS 1.16NIST PR.AC-4
Details +

Privileged Identity Management (PIM) is not configured for one or more admin roles in Entra ID. Without PIM, admin roles are permanently assigned with no just-in-time access controls, approval workflows, or time-bound activation. Any compromised admin account has constant unrestricted access with no time limit.

Fix: Enable Privileged Identity Management for all admin roles in Entra ID. Navigate to: Entra ID > Identity Governance > Privileged Identity Management > Azure AD roles > Settings. Configure eligible assignments with time-bound activation, MFA on activation, and approval workflows for all privileged roles.

CIS 1.16NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.3
fix_az_idn_004.sh →
HighAZ-IDN-005

Guest User with High Privilege Role in Entra ID

identityCIS 1.3NIST PR.AC-4
Details +

One or more guest user accounts (userType = Guest) have been assigned high privilege roles in Entra ID. Guest accounts originate from outside the organisation and should never hold privileged roles. A compromised guest account with admin rights gives an external attacker full control of the Azure tenant.

Fix: Remove privileged role assignments from all guest accounts. Navigate to: Entra ID > Roles and administrators > [role name] > Assignments. For each guest account found, click the assignment and select Remove. Consider converting the guest to a member account or using a dedicated internal service account for any legitimate administrative need.

CIS 1.3NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.3
fix_az_idn_005.sh →
HighAZ-IDN-006

Service Principal Client Secret Older Than 90 Days

identityCIS 1.14NIST PR.AC-1
Details +

One or more service principal applications have client secrets with a creation date older than 90 days and no expiry date set, or secrets that have already expired but remain present. Long-lived or non-expiring secrets are a major credential hygiene risk. If a secret leaks it remains valid indefinitely, giving an attacker persistent access to the application and its permissions.

Fix: Rotate all client secrets older than 90 days and set an expiry date of no more than 90 days on new secrets. Run: az ad app credential reset --id <app-id> --years 0 --end-date <YYYY-MM-DD>. Consider migrating to certificate-based authentication or managed identities to eliminate secret rotation entirely.

CIS 1.14NIST PR.AC-1ISO27001 A.5.17SOC2 CC6.1
fix_az_idn_006.sh →
HighAZ-IDN-007

Active User with No MFA Registered in Entra ID

identityCIS 1.1NIST PR.AC-7
Details +

One or more active user accounts in Entra ID have no multi-factor authentication methods registered. Accounts without MFA are vulnerable to password spray, credential stuffing, and phishing attacks. A single compromised password gives an attacker full account access with no additional verification required.

Fix: Enforce MFA registration for all users via a Conditional Access policy. Navigate to: Entra ID > Protection > Conditional Access > Policies > New policy. Set Users to include all users, grant access requiring multi-factor authentication, and enable the policy. Users without MFA registered will be prompted on next sign-in. Use the Authentication methods registration campaign to drive adoption before the policy enforcement date.

CIS 1.1NIST PR.AC-7ISO27001 A.8.5SOC2 CC6.1
fix_az_idn_007.sh →
HighAZ-IDN-008

Custom RBAC Role with Wildcard Permissions at Subscription Scope

identityCIS 1.23NIST PR.AC-4
Details +

One or more custom RBAC role definitions contain wildcard actions (*) or overly broad permissions at subscription scope. Custom roles with wildcard permissions are functionally equivalent to the built-in Owner role but less visible and harder to audit. They violate the principle of least privilege and are frequently created as shortcuts that are never cleaned up.

Fix: Replace wildcard actions with the specific actions required for the role. Review the role with: az role definition show --name '<role-name>'. Edit the role definition to replace '*' with explicit action strings. Use the Azure built-in roles reference to identify the minimum required actions. If the role is unused, delete it with: az role definition delete --name '<role-name>'.

CIS 1.23NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.3
fix_az_idn_008.sh →
MediumAZ-IDN-009

No Activity Log Alert for Role Assignment Changes

identityCIS 5.2.1NIST DE.CM-3
Details +

The subscription has no activity log alert configured for role assignment changes (Microsoft.Authorization/roleAssignments/write). Without alerting on privilege escalation events, an attacker who gains access and elevates their own permissions will go undetected. This is a required detective control under CIS Azure Benchmark 5.2.1 and NIST DE.CM-3.

Fix: Create an activity log alert for role assignment write events. Run: az monitor activity-log alert create --name 'Alert-RoleAssignment-Write' --resource-group <rg-name> --scope /subscriptions/<subscription-id> --condition category=Administrative operationName=Microsoft.Authorization/roleAssignments/write --action-group <action-group-id>. Ensure the action group routes alerts to a monitored channel such as email or a ticketing integration.

CIS 5.2.1NIST DE.CM-3ISO27001 A.8.16SOC2 CC7.2
fix_az_idn_009.sh →
MediumAZ-IDN-010

App Registration Has No Owner

identityCIS N/A-IDN-010NIST PR.AC-4
Details +

The App Registration has no assigned owner. Unowned applications can escape periodic review, credential rotation, permission cleanup, and accountable incident response.

Fix: Assign at least one accountable owner and establish a periodic application ownership review.

CIS N/A-IDN-010NIST PR.AC-4ISO27001 A.5.16SOC2 CC6.2
fix_az_idn_010.sh →
HighAZ-IDN-011

App Registration Uses Insecure Redirect URI

identityCIS N/A-IDN-011NIST PR.DS-2
Details +

The App Registration contains an HTTP redirect URI for a non-loopback host. Authorization responses can be intercepted or modified before reaching the application.

Fix: Replace non-loopback HTTP redirect URIs with exact HTTPS URIs and remove obsolete entries.

CIS N/A-IDN-011NIST PR.DS-2ISO27001 A.8.26SOC2 CC6.7
fix_az_idn_011.sh →
MediumAZ-IDN-012

App Registration Enables OAuth Implicit Grant

identityCIS N/A-IDN-012NIST PR.AC-3
Details +

The App Registration enables access-token or ID-token issuance through the legacy implicit grant flow. Tokens can be exposed to browser history, extensions, or front-channel leakage.

Fix: Disable implicit grant and migrate clients to authorization code flow with PKCE.

CIS N/A-IDN-012NIST PR.AC-3ISO27001 A.8.5SOC2 CC6.1
fix_az_idn_012.sh →
MediumAZ-IDN-013

App Registration Uses Password Credentials

identityCIS N/A-IDN-013NIST PR.AC-1
Details +

The App Registration has one or more password credentials. Client secrets are commonly copied, logged, leaked, or left unrotated and are weaker than managed identity or certificate authentication.

Fix: Migrate to managed identity, workload identity federation, or certificates, then remove client secrets.

CIS N/A-IDN-013NIST PR.AC-1ISO27001 A.5.17SOC2 CC6.1
fix_az_idn_013.sh →
HighAZ-IDN-014

Multi-Tenant App Registration Lacks Property Lock

identityCIS N/A-IDN-014NIST PR.IP-1
Details +

The multi-tenant App Registration does not lock all sensitive properties on its service-principal instances. Tenant administrators can modify credentials or token-encryption settings unexpectedly.

Fix: Enable application-instance property lock and lock all sensitive service-principal properties.

CIS N/A-IDN-014NIST PR.IP-1ISO27001 A.8.32SOC2 CC6.6
fix_az_idn_014.sh →
HighAZ-IDN-015

Managed Identity Has Privileged Subscription Role

identityCIS N/A-IDN-015NIST PR.AC-4
Details +

A managed identity holds Owner or Contributor at subscription scope. Compromise of any resource that can use the identity would provide an unnecessarily large Azure control-plane blast radius.

Fix: Replace the assignment with the narrowest role and resource scope required by the workload.

CIS N/A-IDN-015NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.3
fix_az_idn_015.sh →
CriticalAZ-IDN-016

Privileged User Missing Phishing-Resistant MFA

identityCIS N/A-IDN-016NIST PR.AC-7
Details +

A user assigned to a privileged directory role has no phishing-resistant authentication method registered. Phishing-resistant methods (FIDO2 security keys, Windows Hello for Business, certificate-based authentication) cannot be intercepted by adversary-in-the-middle attacks, unlike TOTP or SMS-based MFA. Privileged accounts are the highest-value targets in a tenant and must use the strongest available authentication.

Fix: Register a FIDO2 security key, configure Windows Hello for Business, or enrol a certificate-based authentication method for every privileged user. In Entra ID: Security > Authentication methods > Policies > enable FIDO2 or Certificate-based authentication. Then create a Conditional Access policy requiring 'Phishing-resistant MFA strength' for administrator roles.

CIS N/A-IDN-016NIST PR.AC-7ISO27001 A.8.5SOC2 CC6.1
fix_az_idn_016.sh →
HighAZ-IDN-017

Global Administrator Permanently Assigned Outside PIM

identityCIS N/A-IDN-017NIST PR.AC-4
Details +

A user holds the Global Administrator role as a permanent direct assignment rather than through a time-bound Privileged Identity Management eligible assignment. Permanent role assignments keep the full attack surface active at all times. An account compromise immediately grants unrestricted tenant control with no approval gate or time limit.

Fix: Remove the permanent Global Administrator assignment and replace it with a PIM-eligible assignment. In Entra ID: Identity Governance > Privileged Identity Management > Azure AD roles > Global Administrator > Assignments > Add eligible assignment. Set maximum activation duration and require approval and MFA for activation.

CIS N/A-IDN-017NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.3
fix_az_idn_017.sh →
HighAZ-IDN-018

Privileged Role Assigned Outside Privileged Identity Management

identityCIS N/A-IDN-018NIST PR.AC-4
Details +

A user holds a privileged directory role through a permanent direct assignment rather than through Privileged Identity Management. Without PIM, privileged access is always-on with no activation approval, no time limit, no MFA step-up, and no audit trail for when the privilege was actually used. Any account compromise instantly delivers standing administrative access.

Fix: Migrate all privileged role assignments to PIM eligible assignments. In Entra ID: Identity Governance > Privileged Identity Management > Azure AD roles > select the role > Assignments > Add eligible assignment. Remove the corresponding permanent active assignment after the eligible assignment is confirmed. Set activation settings to require MFA and justification.

CIS N/A-IDN-018NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.3
fix_az_idn_018.sh →
HighAZ-IDN-019

Stale Privileged Account Retains Active Access

identityCIS N/A-IDN-019NIST PR.AC-1
Details +

An enabled account holding a privileged directory role has not signed in for more than 90 days. Dormant privileged accounts represent a persistent attack surface. Credentials may be stale, MFA devices may be lost or reassigned, and the account may belong to a former employee who should no longer have access. An attacker who obtains these credentials gains unmonitored privileged access.

Fix: Review each stale privileged account and either confirm it is still required or disable and remove its role assignments. In Entra ID: Users > select the account > Block sign-in. Remove role assignments via Identity Governance > Privileged Identity Management or directly from the role membership. Implement a Conditional Access policy to enforce access reviews for privileged users at least every 90 days.

CIS N/A-IDN-019NIST PR.AC-1ISO27001 A.5.18SOC2 CC6.2
fix_az_idn_019.sh →
HighAZ-IDN-020

Emergency Access Accounts Missing or Incorrectly Configured

identityCIS N/A-IDN-020NIST PR.AC-4
Details +

No emergency access (break-glass) Global Administrator accounts were detected in the tenant, or the detected accounts are misconfigured. Break-glass accounts are cloud-only, permanently assigned Global Administrator accounts used only when all other administrative access paths fail (e.g. MFA outage, Conditional Access misconfiguration). Without correctly configured break-glass accounts, an administrative lockout could make the tenant unrecoverable.

Fix: Create at least two cloud-only Global Administrator accounts with 'emergency', 'breakglass', or 'break-glass' in the user principal name. Ensure each account: is cloud-only (not synced from on-premises); has a strong, randomly generated password stored in a physical safe; is excluded from all Conditional Access policies; has sign-in alerts configured; and its credentials are reviewed and rotated at least every 90 days. Document the accounts and their location in your incident response plan.

CIS N/A-IDN-020NIST PR.AC-4ISO27001 A.5.15SOC2 CC6.3
fix_az_idn_020.sh →
HighAZ-IDN-021

Legacy Authentication Not Blocked by Conditional Access

identityCIS N/A-IDN-021NIST PR.AC-7
Details +

No enabled Conditional Access policy blocks legacy authentication protocols such as Basic authentication, Exchange ActiveSync, and other clients that do not support modern authentication. Legacy protocols cannot enforce MFA, making them a direct bypass for any MFA-based Conditional Access policy. The majority of password-spray attacks targeting Microsoft 365 use legacy authentication.

Fix: Create a Conditional Access policy that blocks all legacy authentication. In Entra ID: Security > Conditional Access > New policy. Set Users to include all users, set Conditions > Client apps > select Exchange ActiveSync clients and Other clients, set Grant to Block access, and enable the policy. Run in Report-only mode first to identify affected users and clients.

CIS N/A-IDN-021NIST PR.AC-7ISO27001 A.8.5SOC2 CC6.1
fix_az_idn_021.sh →
HighAZ-IDN-022

Azure Management Not Protected by Conditional Access

identityCIS N/A-IDN-022NIST PR.AC-4
Details +

No enabled Conditional Access policy requires MFA or other controls when accessing Azure management interfaces (Azure portal, Azure CLI, Azure PowerShell, ARM API). Without this control, any authenticated user, including compromised accounts, can access Azure management without additional verification, enabling resource modification, data exfiltration, and privilege escalation.

Fix: Create a Conditional Access policy targeting the Microsoft Azure Management cloud app. In Entra ID: Security > Conditional Access > New policy. Set Users to include all users, set Cloud apps to 'Microsoft Azure Management' (app ID: 797f4846-ba00-4fd7-ba43-dac1f8f63013), set Grant to require MFA, and enable the policy. Test in Report-only mode first.

CIS N/A-IDN-022NIST PR.AC-4ISO27001 A.8.3SOC2 CC6.6
fix_az_idn_022.sh →
MediumAZ-IDN-023

Identity Protection Risk Policies Not Enabled

identityCIS N/A-IDN-023NIST DE.CM-3
Details +

Microsoft Entra Identity Protection risk policies (user risk and sign-in risk) are not enabled. Risk policies automatically respond to detected anomalous activity, such as leaked credentials, impossible travel, or unfamiliar sign-in locations, by requiring MFA step-up or blocking access. Without these policies, compromised accounts and risky sign-ins proceed unimpeded until manually reviewed.

Fix: Enable both user risk and sign-in risk policies in Entra Identity Protection. In Entra ID: Security > Identity Protection > User risk policy: set User risk to High, require password change. Sign-in risk policy: set Sign-in risk to Medium and above, require MFA. Alternatively, configure equivalent risk-based Conditional Access policies which offer more granular control.

CIS N/A-IDN-023NIST DE.CM-3ISO27001 A.8.16SOC2 CC7.2
fix_az_idn_023.sh →
MediumAZ-IDN-024

Workload Identities Excluded From Conditional Access Policies

identityCIS N/A-IDN-024NIST PR.AC-4
Details +

All enabled Conditional Access policies that require MFA or other grant controls explicitly exclude workload identities (service principals). Workload identities with over-privileged roles that are excluded from access controls represent a persistent threat vector, if their credentials are compromised, they provide unrestricted access without any Conditional Access enforcement.

Fix: Review Conditional Access policies to ensure that workload identities with privileged roles are not broadly excluded. Use Conditional Access for workload identities (requires Entra ID P1): Security > Conditional Access > New policy > set 'Workload identities' as the user type and apply appropriate controls. At minimum, monitor service principal sign-ins via Identity Protection.

CIS N/A-IDN-024NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.3
fix_az_idn_024.sh →
MediumAZ-IDN-025

Privileged Role-Assignable Group Has No Owner

identityCIS N/A-IDN-025NIST PR.AC-4
Details +

An Entra ID group configured with 'isAssignableToRole=true' has no owner. Role-assignable groups can be used to grant directory role membership to every member of the group simultaneously. Without an owner, membership changes are uncontrolled: any administrator who can modify group membership can indirectly escalate privileges to the associated role. Ownerless privileged groups also prevent access reviews from functioning correctly.

Fix: Assign at least one owner to every role-assignable group. In Entra ID: Groups > select the group > Owners > Add owners. The owner should be a named individual (not a service account) who is responsible for approving membership changes. Configure access reviews for the group: Identity Governance > Access Reviews > New access review > select the group.

CIS N/A-IDN-025NIST PR.AC-4ISO27001 A.5.18SOC2 CC6.3
fix_az_idn_025.sh →
MediumAZ-KV-001

Key Vault with Soft Delete Disabled

key vaultCIS N/A-KV-001NIST PR.IP-4
Details +

Azure Key Vault soft delete is disabled. Without soft delete, secrets, keys, and certificates can be permanently destroyed immediately upon deletion, whether by accident, a disgruntled insider, or an attacker who has gained access. Soft delete provides a recoverable state for 7–90 days after deletion.

Fix: Enable soft delete on the Key Vault. Note: once enabled, soft delete cannot be disabled. Also consider enabling purge protection to prevent permanent deletion during the retention period.

CIS N/A-KV-001NIST PR.IP-4ISO27001 A.8.14
fix_az_kv_001.sh →
HighAZ-KV-002

Key Vault Allows Public Network Access Without Private Endpoint

key vaultCIS 8.7NIST AC-17
Details +

The Azure Key Vault is accessible over the public internet without a private endpoint configured. This increases the risk of unauthorized access to sensitive secrets, keys, and certificates.

Fix: Disable public network access for the Key Vault and configure a private endpoint to restrict access to trusted virtual networks.

CIS 8.7NIST AC-17ISO27001 A.8.20
fix_az_kv_002.sh →
MediumAZ-KV-003

Key Vault Without Diagnostic Logging Enabled

key vaultCIS 8.4NIST DE.CM-7
Details +

Azure Key Vault diagnostic logging is not enabled. Without diagnostic logs, access to secrets, keys, and certificates is not recorded, reducing visibility into unauthorized access attempts and preventing effective forensic investigation.

Fix: Enable diagnostic settings for the Key Vault and configure logs to be sent to Log Analytics, Event Hub, or a Storage Account.

CIS 8.4NIST DE.CM-7ISO27001 A.8.15SOC2 CC7.2
fix_az_kv_003.sh →
MediumAZ-KV-004

Key Vault Purge Protection Disabled

key vaultCIS 8.5NIST PR.IP-4
Details +

Azure Key Vaults without purge protection enabled allow permanent deletion of vaults and their secrets, keys, and certificates during the soft-delete retention period. Without purge protection, a malicious insider or accidental deletion can result in irrecoverable loss of cryptographic material.

Fix: Enable purge protection on the Key Vault. Note: once enabled, purge protection cannot be disabled. Ensure soft delete is also enabled as purge protection requires it.

CIS 8.5NIST PR.IP-4ISO27001 A.8.14SOC2 CC9.1
fix_az_kv_004.sh →
MediumAZ-KV-005

Key Vault Certificate Expiring Within 30 Days

key vaultCIS N/A-KV-005NIST PR.MA-1
Details +

A certificate stored in Azure Key Vault is expiring within 30 days and does not have auto-renewal configured. Expired certificates cause immediate service outages, broken HTTPS connections, and failed authentication flows.

Fix: Enable auto-renewal on the certificate in Azure Key Vault, or manually renew the certificate before it expires. Navigate to: Key Vault > Certificates > select certificate > Issuance Policy > enable Auto-renewal.

CIS N/A-KV-005NIST PR.MA-1ISO27001 A.8.24SOC2 CC9.1
fix_az_kv_005.sh →
MediumAZ-KV-006

Key Vault Using Legacy Access Policies Instead of Azure RBAC

key vaultCIS 8.6NIST PR.AC-4
Details +

The Azure Key Vault is authorizing access through legacy vault access policies instead of Azure RBAC. Access policies are all-or-nothing per permission type, cannot be scoped to individual keys/secrets/certificates, are not covered by Azure RBAC's centralized audit trail (Activity Log role assignments), and are easy to over-grant since there is no built-in least-privilege role model.

Fix: Enable Azure RBAC authorization on the Key Vault and replace access policies with scoped role assignments (e.g. Key Vault Secrets User, Key Vault Crypto Officer). Note: switching to RBAC does not delete existing access policies, but they stop being enforced.

CIS 8.6NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.1
fix_az_kv_006.sh →
HighAZ-NET-001

NSG Allows Unrestricted Inbound SSH from Any Source

networkCIS 6.2NIST PR.AC-3
Details +

The Network Security Group has an Allow rule for inbound TCP port 22 (SSH) from any source address (0.0.0.0/0, *, or Internet). Exposing SSH to the internet dramatically increases the attack surface and risk of brute-force attacks.

Fix: Remove or restrict the inbound SSH rule to known trusted IP ranges only. Consider using Azure Bastion for privileged access instead of direct SSH exposure.

CIS 6.2NIST PR.AC-3ISO27001 A.8.20
fix_az_net_001.sh →
HighAZ-NET-002

NSG Allows Unrestricted Inbound RDP from Any Source

networkCIS 6.3NIST PR.AC-3
Details +

The Network Security Group has an Allow rule for inbound TCP port 3389 (RDP) from any source address (0.0.0.0/0, *, or Internet). Exposing RDP to the internet is one of the most common initial access vectors for ransomware and credential-stuffing attacks.

Fix: Remove or restrict the inbound RDP rule to known trusted IP ranges only. Consider using Azure Bastion for privileged Windows access instead of direct RDP exposure.

CIS 6.3NIST PR.AC-3ISO27001 A.8.20
fix_az_net_002.sh →
HighAZ-NET-003

NSG allows unrestricted inbound on port 443

networkCIS 9.3NIST SC-7
Details +

A Network Security Group has an inbound rule allowing unrestricted access on port 443 from any source (0.0.0.0/0). While HTTPS traffic is encrypted, exposing port 443 to the entire internet unnecessarily increases the attack surface and can expose web services to automated scanning and exploitation attempts. Note: this finding is expected for intentionally public-facing web services. Review manually before remediating, do not auto-remediate without confirming the service is not meant to be publicly accessible.

Fix: Restrict the inbound rule on port 443 to known IP ranges or use an Application Gateway with WAF to front any public-facing HTTPS services. If the service must be public, ensure it is protected by DDoS Standard.

CIS 9.3NIST SC-7ISO27001 A.8.20
fix_az_net_003.sh →
MediumAZ-NET-004

NSG with no rules configured

networkCIS 9.2NIST SC-7
Details +

A Network Security Group exists but has no custom security rules configured. An empty NSG relies entirely on Azure default rules which may not meet your security requirements and provides no meaningful access control.

Fix: Add explicit inbound and outbound rules to the NSG that reflect the principle of least privilege. Deny all traffic by default and only allow what is required for the workload.

CIS 9.2NIST SC-7ISO27001 A.8.20
fix_az_net_004.sh →
LowAZ-NET-005

Virtual network with no DDoS protection enabled

networkCIS 9.4NIST SC-5
Details +

The virtual network does not have Azure DDoS Protection Standard enabled. Without DDoS protection, the network is vulnerable to volumetric attacks that can overwhelm resources and cause service outages.

Fix: Enable Azure DDoS Protection Standard on the virtual network. DDoS Protection Standard provides enhanced mitigation capabilities and is recommended for all production virtual networks.

CIS 9.4NIST SC-5ISO27001 A.8.20
fix_az_net_005.sh →
LowAZ-NET-006

Public IP address unassociated with any resource

networkCIS 9.1NIST CM-7
Details +

A public IP address exists in the subscription but is not associated with any resource such as a VM, load balancer or application gateway. Unassociated public IPs represent unnecessary cost and attack surface and may indicate leftover resources from decommissioned workloads.

Fix: Delete the unassociated public IP address if it is no longer needed. If it is reserved for future use, document the reason and tag it appropriately so it can be tracked and reviewed regularly.

CIS 9.1NIST CM-7ISO27001 A.8.20
fix_az_net_006.sh →
HighAZ-NET-007

Application Gateway without WAF enabled

networkCIS 9.6NIST SI-3
Details +

An Application Gateway exists without Web Application Firewall enabled. Without WAF, the application is unprotected against common web exploits such as SQL injection, cross-site scripting and OWASP Top 10 attacks. Any public-facing application behind an Application Gateway should have WAF enabled in Prevention mode.

Fix: Upgrade the Application Gateway SKU to WAF_v2 and enable WAF in Prevention mode. Configure the OWASP core rule set and review any false positives before enabling Prevention mode in production.

CIS 9.6NIST SI-3ISO27001 A.8.20
fix_az_net_007.sh →
LowAZ-NET-008

Load balancer with no backend pool configured

networkCIS 9.7NIST CM-7
Details +

A load balancer exists in the subscription but has no backend pool configured. A load balancer with no backend pool is either misconfigured or is a leftover resource from a decommissioned workload. It represents unnecessary cost and indicates poor resource hygiene.

Fix: If the load balancer is no longer needed, delete it to reduce cost and attack surface. If it is still required, configure a backend pool with the appropriate virtual machines or scale set instances.

CIS 9.7NIST CM-7ISO27001 A.8.20SOC2 CC8.1
fix_az_net_008.sh →
HighAZ-NET-009

VPN gateway using outdated IKE version

networkCIS 9.5NIST SC-8
Details +

A VPN gateway is configured to use IKEv1 which is an outdated and less secure version of the Internet Key Exchange protocol. IKEv1 is vulnerable to several known attacks and lacks features present in IKEv2 such as improved authentication and built-in NAT traversal support.

Fix: Migrate the VPN gateway connection to use IKEv2. Update the VPN gateway SKU if required and reconfigure all VPN connections to use IKEv2 only. Coordinate with the remote VPN peer to ensure IKEv2 is supported on both ends.

CIS 9.5NIST SC-8ISO27001 A.5.14
fix_az_net_009.sh →
HighAZ-NET-010

Subnet with no network security group attached

networkCIS 9.10NIST SC-7
Details +

A subnet exists without a Network Security Group attached. Without an NSG at the subnet level, all resources deployed into that subnet have no network layer access control. Any VM or service in the subnet is reachable from other subnets and potentially the internet with no filtering in place.

Fix: Create and attach an NSG to the subnet with rules that follow the principle of least privilege. Define explicit allow rules for required traffic and deny everything else. Apply NSGs at both the subnet and NIC level for defence in depth.

CIS 9.10NIST SC-7ISO27001 A.8.20
fix_az_net_010.sh →
LowAZ-NET-011

Network Watcher Not Enabled in All Regions

networkCIS 6.5NIST DE.CM-7
Details +

Network Watcher is not enabled in one or more Azure regions where resources are deployed. Network Watcher provides network monitoring, diagnostics, and logging capabilities. Without it, network-level incidents cannot be investigated or diagnosed.

Fix: Enable Network Watcher in all regions where Azure resources are deployed. Run: az network watcher configure --resource-group NetworkWatcherRG --locations <region> --enabled true

CIS 6.5NIST DE.CM-7ISO27001 A.8.15SOC2 CC7.2
fix_az_net_011.sh →
MediumAZ-NET-012

VNet Flow Logs Not Enabled

networkCIS 6.7NIST DE.CM-1
Details +

Neither a VNet flow log nor an existing legacy NSG flow log covers this virtual network. Without flow logs, network traffic is not auditable and attacker movement cannot be reconstructed. Microsoft stopped new NSG flow log creation on 2025-06-30 and retires the feature entirely on 2027-09-30 - VNet flow logs are the current, supported mechanism.

Fix: Enable a VNet flow log via Network Watcher (do not create a new NSG flow log - Microsoft blocks new NSG flow log creation as of 2025-06-30). Run: az network watcher flow-log create --location <region> --resource-group <network-watcher-resource-group> --name <flow-log-name> --vnet <vnet-id> --enabled true --storage-account <storage-account-id>

CIS 6.7NIST DE.CM-1ISO27001 A.8.15SOC2 CC7.2
fix_az_net_012.sh →
HighAZ-NET-013

Azure Firewall Not Enabled on Virtual Network

networkCIS 6.4NIST PR.AC-5
Details +

The virtual network has no Azure Firewall deployed or associated. Relying only on Network Security Groups leaves the network without a centralized perimeter inspection, logging, and threat-filtering layer. Azure Firewall provides stateful traffic inspection, FQDN filtering, threat intelligence, and centralized network logging that NSGs alone cannot offer.

Fix: Deploy an Azure Firewall into an 'AzureFirewallSubnet' within the virtual network (or a peered hub network) and route traffic through it. See playbooks/cli/fix_az_net_013.sh for the Azure CLI steps.

CIS 6.4NIST PR.AC-5ISO27001 A.8.20SOC2 CC6.6
fix_az_net_013.sh →
MediumAZ-NET-014

VNet Peering Configured Without Gateway Transit Restrictions

networkCIS 6.6NIST PR.AC-5
Details +

A Virtual Network peering connection has gateway transit enabled. Enabling allowGatewayTransit or useRemoteGateways on a peering connection allows traffic to flow between network segments through shared gateways, potentially enabling lateral movement between network zones that should be isolated from each other.

Fix: Review all VNet peering connections and disable allowGatewayTransit and useRemoteGateways unless explicitly required and documented. Ensure peering connections follow the principle of least privilege and only permit the minimum required traffic between networks.

CIS 6.6NIST PR.AC-5ISO27001 A.8.20SOC2 CC6.6
fix_az_net_014.sh →
MediumAZ-NET-015

Public DNS Zone Exposes Internal Infrastructure Details

networkCIS 9.8NIST PR.AC-5
Details +

A public DNS zone contains records that reference private RFC1918 IP addresses or hostnames that suggest internal infrastructure (such as admin, vpn, db, internal, or dev). Exposing private IPs or internal service names in public DNS assists attackers in mapping the organisation's internal network topology and identifying targets for further attack.

Fix: Review all A records in public DNS zones and remove or migrate any records that reference private RFC1918 IP addresses or expose internal service names. Internal services should be resolved using Azure Private DNS zones linked to the appropriate virtual networks, not public DNS.

CIS 9.8NIST PR.AC-5ISO27001 A.8.20SOC2 CC6.6
fix_az_net_015.sh →
MediumAZ-NET-016

Network Interface Has IP Forwarding Enabled

networkCIS N/A-NET-016NIST SC-7
Details +

The network interface has IP forwarding enabled, which disables Azure source and destination checks and allows the attached workload to forward traffic not addressed to it. This is normally required only for a documented network virtual appliance or routing function.

Fix: Confirm that the interface belongs to an approved network virtual appliance. Otherwise disable IP forwarding. If forwarding is required, document the routing function and restrict its paths with route tables and NSGs.

CIS N/A-NET-016NIST SC-7ISO27001 A.8.20SOC2 CC6.6
fix_az_net_016.sh →
MediumAZ-NET-017

User-Defined Default Route Uses Direct Internet Next Hop

networkCIS N/A-NET-017NIST SC-7
Details +

A user-defined IPv4 or IPv6 default route explicitly sends traffic to the Internet next hop. This bypasses a virtual appliance or virtual network gateway that would otherwise provide controlled egress inspection.

Fix: Review the subnet egress design. Remove the direct Internet default route or change its next hop to the approved Azure Firewall, network virtual appliance, or virtual network gateway.

CIS N/A-NET-017NIST SC-7ISO27001 A.8.20SOC2 CC6.6
fix_az_net_017.sh →
HighAZ-NET-018

Private Endpoint Target Retains Public Network Access

networkCIS N/A-NET-018NIST PR.AC-3
Details +

A supported PaaS target has a Private Endpoint but still permits public network access.

Fix: Validate private connectivity, then disable public network access on the target PaaS resource.

CIS N/A-NET-018NIST PR.AC-3ISO27001 A.8.20SOC2 CC6.6
fix_az_net_018.sh →
HighAZ-NET-019

Private Endpoint Connection Is Not Approved

networkCIS N/A-NET-019NIST PR.AC-5
Details +

A Private Endpoint connection is pending, rejected, or disconnected and cannot provide the intended private path.

Fix: Approve the intended connection, or delete and recreate rejected or disconnected Private Endpoint connections.

CIS N/A-NET-019NIST PR.AC-5ISO27001 A.8.20SOC2 CC6.6
fix_az_net_019.sh →
HighAZ-NET-020

Private Endpoint Lacks Private DNS Zone Association

networkCIS N/A-NET-020NIST PR.AC-5
Details +

An approved Private Endpoint has no associated Private DNS zone group.

Fix: Associate the service's documented privatelink DNS zone with the Private Endpoint and link it to the consuming VNet.

CIS N/A-NET-020NIST PR.AC-5ISO27001 A.8.20SOC2 CC6.6
fix_az_net_020.sh →
HighAZ-NET-021

Private Endpoint DNS Configuration Reports Only Public Addresses

networkCIS N/A-NET-021NIST PR.AC-5
Details +

Azure's Private Endpoint custom DNS configuration reports an FQDN with only public IP addresses. This control validates ARM configuration evidence; it does not test effective DNS resolution from a VNet workload or an on-premises resolver.

Fix: Correct the Private Endpoint DNS configuration so its FQDN is associated with the allocated private IP, then separately validate effective resolution from every relevant VNet and on-premises resolver path.

CIS N/A-NET-021NIST PR.AC-5ISO27001 A.8.20SOC2 CC6.6
fix_az_net_021.sh →
HighAZ-NET-022

Critical PaaS Resource Is Publicly Accessible Without Approved Exception

networkCIS N/A-NET-022NIST PR.AC-3
Details +

A critical PaaS resource permits public network access and is not in the explicit approved-exception list.

Fix: Validate private connectivity, disable public network access, or add a time-bound approved exception through deployment configuration.

CIS N/A-NET-022NIST PR.AC-3ISO27001 A.8.20SOC2 CC6.6
fix_az_net_022.sh →
HighAZ-NET-023

Azure Firewall Threat Intelligence Is Not in Deny Mode

networkCIS N/A-NET-023NIST DE.CM-1
Details +

Azure Firewall threat intelligence is disabled or configured to alert without denying known malicious traffic.

Fix: Set Azure Firewall threat intelligence mode to Deny after reviewing documented exception traffic.

CIS N/A-NET-023NIST DE.CM-1ISO27001 A.8.20SOC2 CC6.6
fix_az_net_023.sh →
HighAZ-NET-024

Application Gateway WAF Is Not in Prevention Mode

networkCIS N/A-NET-024NIST PR.PT-4
Details +

An enabled Application Gateway WAF is operating in Detection rather than Prevention mode.

Fix: Tune exclusions in a non-production environment, then set the inline WAF or associated WAF policy to Prevention mode.

CIS N/A-NET-024NIST PR.PT-4ISO27001 A.8.20SOC2 CC6.6
fix_az_net_024.sh →
MediumAZ-NET-025

Application Gateway WAF Diagnostic Logging Is Not Enabled

networkCIS N/A-NET-025NIST DE.CM-1
Details +

An Application Gateway WAF lacks a diagnostic setting with every log category supported by its SKU enabled. WAF v1 requires access, performance, and firewall logs; WAF_v2 requires access and firewall logs, with performance telemetry provided through Azure Monitor metrics.

Fix: Create an Azure Monitor diagnostic setting that exports all log categories supported by the Application Gateway SKU to an approved destination, and retain Azure Monitor metrics for v2 performance telemetry.

CIS N/A-NET-025NIST DE.CM-1ISO27001 A.8.15SOC2 CC7.2
fix_az_net_025.sh →
HighAZ-NET-026

WAF Lacks Current Managed Rules or Bot Protection

networkCIS N/A-NET-026NIST PR.PT-4
Details +

An Application Gateway WAF lacks both an approved current base managed rule set and Microsoft bot protection.

Fix: Associate a WAF policy using OWASP 3.2 or Microsoft Default Rule Set 2.1 or later, plus Microsoft Bot Manager Rule Set 1.0 or later.

CIS N/A-NET-026NIST PR.PT-4ISO27001 A.8.27SOC2 CC6.6
fix_az_net_026.sh →
HighAZ-NET-027

Internet-Facing Application Gateway Lacks Approved Rate Limiting

networkCIS N/A-NET-027NIST PR.PT-4
Details +

A public Application Gateway has no enabled RateLimitRule in its associated WAF policy.

Fix: Associate a WAF policy and add an enabled RateLimitRule with thresholds and grouping appropriate to the application.

CIS N/A-NET-027NIST PR.PT-4ISO27001 A.8.20SOC2 CC6.6
fix_az_net_027.sh →
HighAZ-PE-001

Storage Public Network Access Enabled

private endpointCIS N/A-PE-001
Details +

A Storage Account remains publicly reachable; an approved private endpoint alone does not disable its public endpoint.

Fix: Validate private DNS and connectivity, add the required endpoint, then restrict public access.

CIS N/A-PE-001
fix_az_pe_001.sh →
HighAZ-PE-002

Azure SQL Public Network Access Enabled

private endpointCIS N/A-PE-002
Details +

An Azure SQL logical server remains publicly reachable, regardless of whether a private endpoint also exists.

Fix: Validate private DNS and clients before disabling public access.

CIS N/A-PE-002
fix_az_pe_002.sh →
HighAZ-PE-003

PostgreSQL Public Network Access Enabled

private endpointCIS N/A-PE-003
Details +

A PostgreSQL Flexible Server remains publicly reachable instead of using private networking only.

Fix: Validate supported networking mode and private DNS before restricting public access.

CIS N/A-PE-003
fix_az_pe_003.sh →
HighAZ-PE-004

Web or Function App Public Network Access Enabled

private endpointCIS N/A-PE-004
Details +

An App Service workload remains publicly reachable without a default-deny access policy.

Fix: Validate the hosting tier, private DNS, and clients before restricting public access.

CIS N/A-PE-004
fix_az_pe_004.sh →
HighAZ-PE-005

Recovery Vault Public Network Access Enabled

private endpointCIS N/A-PE-005
Details +

A Recovery Services vault permits public access, even if a private endpoint also exists.

Fix: Validate Backup private DNS and agents before restricting public access.

CIS N/A-PE-005
fix_az_pe_005.sh →
MediumAZ-PE-006

Private Endpoint Connection Not Approved

private endpointCIS N/A-PE-006
Details +

A private endpoint connection is pending, rejected, or disconnected and does not provide an active private path.

Fix: Review ownership, approval state, target resource, and private DNS before approving or replacing the connection.

CIS N/A-PE-006
fix_az_pe_006.sh →
HighAZ-PQC-001

TLS Using Classical Key Exchange Algorithm

post-quantumCIS 9.9NIST PR.DS-2
Details +

The resource is configured with TLS using classical key exchange algorithms such as RSA or ECDH. These algorithms are vulnerable to Harvest Now Decrypt Later attacks where adversaries collect encrypted traffic today and decrypt it once quantum computers are available. Post-quantum safe key exchange algorithms should be used.

Fix: Migrate TLS configuration to use post-quantum safe key exchange. Update App Service TLS policies to enforce TLS 1.3 and plan adoption of quantum-safe cipher suites when supported. See playbooks/cli/fix_az_pqc_001.sh for remediation steps.

CIS 9.9NIST PR.DS-2ISO27001 A.8.24SOC2 CC6.7
fix_az_pqc_001.sh →
HighAZ-PQC-002

Key Vault Key Using Non-Quantum-Safe Algorithm

post-quantumCIS 8.1NIST PR.DS-2
Details +

The Key Vault contains keys using RSA or ECC algorithms which are vulnerable to quantum attacks using Shor's algorithm. A sufficiently powerful quantum computer can break RSA and ECC keys, compromising data encrypted or signed with these keys. Keys should be migrated to post-quantum safe algorithms such as those standardised by NIST in FIPS 203, FIPS 204, and FIPS 205.

Fix: Identify all RSA and ECC keys in Key Vault and plan migration to post-quantum safe alternatives. For signing use ML-DSA (FIPS 204). For key encapsulation use ML-KEM (FIPS 203). Document all keys requiring migration in a Cryptographic Bill of Materials (CBOM). See playbooks/cli/fix_az_pqc_002.sh for remediation steps.

CIS 8.1NIST PR.DS-2ISO27001 A.8.24SOC2 CC6.7
fix_az_pqc_002.sh →
MediumAZ-PQC-003

Key Vault Certificate Using Non-Quantum-Safe Signature Algorithm

post-quantumCIS 8.9NIST PR.DS-2
Details +

The Key Vault contains certificates signed using RSA or ECDSA algorithms. These classical signature schemes are vulnerable to Shor's algorithm on quantum computers. Certificates used for authentication, TLS, and code signing must be migrated to post-quantum safe signature algorithms such as ML-DSA (FIPS 204) or SLH-DSA (FIPS 205).

Fix: Audit all Key Vault certificates and identify those using RSA or ECDSA. Plan migration to post-quantum safe certificate authorities and signature algorithms. Include all certificates in your Cryptographic Bill of Materials. See playbooks/cli/fix_az_pqc_003.sh for remediation steps.

CIS 8.9NIST PR.DS-2ISO27001 A.8.24SOC2 CC6.7
fix_az_pqc_003.sh →
HighAZ-SC-001

Container Registry Admin User Enabled

supply chainCIS N/A-SC-001NIST PR.AC-1
Details +

The Azure Container Registry has the admin user enabled. The admin account is a single shared, non-attributable credential that bypasses Azure RBAC entirely, so registry pushes and pulls made with it cannot be tied to an individual identity or revoked without affecting every other user of the same credential.

Fix: Disable the admin user and authenticate to the registry with Azure AD identities or a managed identity instead: az acr update --name <registry> --admin-enabled false

CIS N/A-SC-001NIST PR.AC-1ISO27001 A.5.16SOC2 CC6.1
fix_az_sc_001.sh →
HighAZ-SC-002

Container Registry Public Network Access Enabled

supply chainCIS N/A-SC-002NIST PR.AC-5
Details +

The Azure Container Registry is reachable from the public internet. A registry that holds the container images an organization builds and deploys should only be reachable from trusted networks, the same way source code and build systems are.

Fix: Disable public network access and expose the registry through a private endpoint instead: az acr update --name <registry> --public-network-enabled false

CIS N/A-SC-002NIST PR.AC-5ISO27001 A.8.20SOC2 CC6.6
fix_az_sc_002.sh →
HighAZ-SC-003

Container Registry Allows Anonymous Pull

supply chainCIS N/A-SC-003NIST PR.AC-1
Details +

The Azure Container Registry allows anonymous pull, so any client on the network can pull every image in the registry without authenticating. Repository-scoped tokens cannot limit this once it is enabled; the setting applies registry-wide. If this registry is intentionally used for public OCI distribution, treat this finding as an accepted exception rather than a defect.

Fix: Disable anonymous pull unless the registry is deliberately used for public distribution: az acr update --name <registry> --anonymous-pull-enabled false

CIS N/A-SC-003NIST PR.AC-1ISO27001 A.5.16SOC2 CC6.1
fix_az_sc_003.sh →
MediumAZ-SC-004

Container Registry Missing Retention or Quarantine Policy

supply chainCIS N/A-SC-004NIST PR.IP-1
Details +

The Azure Container Registry has no retention policy for untagged manifests, so stale and orphaned images accumulate indefinitely, widening the pool of images that can be deployed. On Premium-tier registries that also lack a quarantine policy, a newly pushed image is pullable and deployable before any vulnerability scan has evaluated it.

Fix: Enable a retention policy to purge untagged manifests after a defined window: az acr config retention update --registry <registry> --status enabled --days 30. On Premium-tier registries, also enable the quarantine policy so pushed images are held until scanned.

CIS N/A-SC-004NIST PR.IP-1ISO27001 A.8.32SOC2 CC7.1
fix_az_sc_004.sh →
CriticalAZ-SC-005

Terraform State Storage Container Publicly Readable

supply chainCIS N/A-SC-005NIST PR.AC-5
Details +

A blob container that appears to hold Terraform remote state (matched by name) allows public read access. Terraform state files commonly contain resource IDs, connection strings, and in some provider configurations plaintext secrets. Public read access on the state backend can expose the full infrastructure layout and any secrets it captured.

Fix: Set the container's public access level to Private and confirm no anonymous read policy is attached: az storage container set-permission --name <container> --account-name <account> --public-access off

CIS N/A-SC-005NIST PR.AC-5ISO27001 A.8.20SOC2 CC6.6
fix_az_sc_005.sh →
HighAZ-SC-006

Terraform State Storage Account Missing Versioning or Soft Delete

supply chainCIS N/A-SC-006NIST PR.IP-4
Details +

A storage account holding a container that appears to be a Terraform remote state backend has neither blob versioning nor blob soft delete enabled. Azure does not support these settings per container, only account-wide. Without either, an overwritten or accidentally deleted state file cannot be recovered, which can leave Terraform unable to reconcile its understanding of deployed infrastructure with reality.

Fix: Enable blob versioning and soft delete on the storage account: az storage account blob-service-properties update --account-name <account> --enable-versioning true --enable-delete-retention true --delete-retention-days 30

CIS N/A-SC-006NIST PR.IP-4ISO27001 A.8.13SOC2 A1.2
fix_az_sc_006.sh →
HighAZ-SC-007

Pipeline Service Connection Scoped to Subscription

supply chainCIS N/A-SC-007NIST PR.AC-4
Details +

An Azure DevOps service connection is scoped to the entire subscription rather than a single resource group. A service principal deploying a single App Service does not need Contributor on the whole subscription; every pipeline that uses this connection inherits subscription-wide access, including pipelines that only need to touch one resource group.

Fix: Re-create the service connection scoped to the resource group each pipeline actually needs instead of the whole subscription. See Azure DevOps: Project Settings > Service connections > New service connection > Azure Resource Manager > Resource Group.

CIS N/A-SC-007NIST PR.AC-4ISO27001 A.8.2SOC2 CC6.1
fix_az_sc_007.sh →
MediumAZ-SC-008

Pipeline Service Connection Uses Password Instead of Federated Credential

supply chainCIS N/A-SC-008NIST PR.AC-1
Details +

An Azure DevOps service connection authenticates with a stored service principal secret instead of a secretless authentication scheme (workload identity federation or a managed identity). A secretless scheme has nothing to rotate or leak. A stored secret expires after a fixed period, must be rotated manually, and can be exposed through pipeline logs or variable misconfiguration in the meantime.

Fix: Re-create the service connection using workload identity federation or a managed identity instead of a service principal secret. See: az devops service-endpoint azurerm create with --service-principal-type federated, or the equivalent option in the Azure DevOps UI.

CIS N/A-SC-008NIST PR.AC-1ISO27001 A.5.17SOC2 CC6.1
fix_az_sc_008.sh →
HighAZ-SECOPS-001

Subscription Activity Log Not Exported to an Approved Central Destination

security operationsCIS 5.1.1NIST PR.PT-1
Details +

The subscription's Azure Activity Log has no diagnostic setting exporting it to an organisation-approved central destination (Log Analytics workspace, Storage Account, or Event Hub). Without a central export, subscription-level administrative, security, and policy events are only retained for the Activity Log's fixed default window and are not available to the SIEM/central security tooling used for detection and investigation.

Fix: Create a diagnostic setting on the subscription's Activity Log that sends all required log categories to an approved central destination, e.g.:\n az monitor diagnostic-settings subscription create \\\n --name central-security-export \\\n --location <region> \\\n --workspace <approved-log-analytics-workspace-resource-id>

CIS 5.1.1NIST PR.PT-1ISO27001 A.8.15SOC2 CC7.2
fix_az_secops_001.sh →
HighAZ-SECOPS-002

Required Activity Log Categories Missing From Central Export

security operationsCIS 5.1.2NIST PR.PT-1
Details +

The subscription's Activity Log diagnostic setting(s) exporting to an approved destination do not enable every organisation-required log category (e.g. Administrative, Security, Policy, ServiceHealth). A partial category export leaves gaps in the events available for detection and investigation even though an export destination exists.

Fix: Update the Activity Log diagnostic setting to enable every required category, e.g.:\n az monitor diagnostic-settings subscription update \\\n --name <setting-name> \\\ncategoryAdministrativeenabledcategorySecurityenabledcategoryPolicyenabledcategoryServiceHealthenabled

CIS 5.1.2NIST PR.PT-1ISO27001 A.8.15SOC2 CC7.2
fix_az_secops_002.sh →
HighAZ-SECOPS-003

Critical Resource Missing Required Diagnostic Settings

security operationsCIS 5.4NIST DE.AE-3
Details +

A resource of an organisation-defined critical type has no diagnostic setting exporting to an approved central destination. Critical resources (e.g. Key Vaults, SQL servers, Storage accounts) without diagnostic export are invisible to central detection even when subscription activity logging is otherwise correctly configured.

Fix: Create a diagnostic setting on the resource that sends logs to an approved destination, e.g.:\n az monitor diagnostic-settings create \\\n --name central-security-export \\\n --resource <resource-id> \\\n --workspace <approved-log-analytics-workspace-resource-id> \\\ncategoryGroupallLogsenabled

CIS 5.4NIST DE.AE-3ISO27001 A.8.15SOC2 CC7.2
fix_az_secops_003.sh →
MediumAZ-SECOPS-004

Security Logs Have Insufficient Retention

security operationsCIS N/A-SECOPS-004NIST PR.PT-1
Details +

A diagnostic setting exporting security-relevant logs to a Storage Account has a retention policy configured below the organisation's minimum retention requirement (or retention is disabled entirely). Insufficient retention limits how far back an investigation can look once an incident is detected. Log Analytics workspace retention is governed by the workspace's own retention setting rather than the diagnostic setting's retention_policy field and is evaluated separately; this rule covers the Storage Account destination retention_policy field only. CIS Azure Foundations Benchmark control 5.1.1 covers the existence of a diagnostic setting (AZ-SECOPS-001) and does not assign a distinct numbered control ID to the retention duration itself, so no single-control CIS mapping applies here.

Fix: Increase the diagnostic setting's Storage Account retention to at least the organisation's minimum, e.g.:\n az monitor diagnostic-settings update \\\n --name <setting-name> \\\n --resource <resource-id> \\\ncategoryGroupallLogsenabledretentionPolicyenableddays

CIS N/A-SECOPS-004NIST PR.PT-1ISO27001 A.8.15SOC2 CC7.2
fix_az_secops_004.sh →
HighAZ-SECOPS-005

Security Logs Stored Only in a Destination the Workload Administrator Can Modify

security operationsCIS N/A-SECOPS-005NIST PR.DS-6
Details +

A critical resource's diagnostic setting exports logs only to a destination that lives in the same resource group (and therefore the same administrative scope) as the workload itself, and no copy reaches an organisation-approved, centrally-owned destination. An administrator with Contributor/Owner on the workload's own resource group can delete or alter that destination's contents, defeating tamper-evidence for security-relevant logs. This is a resource-group/ownership comparison, not a live Storage immutability-policy read: the Monitor diagnostic-settings API does not expose the destination's own access-control or immutability configuration. The CIS Azure Foundations Benchmark does not assign a distinct numbered control to log-destination ownership/tamper-protection, so no single-control CIS mapping applies here; ISO 27001:2022 A.8.15 (Logging, which also covers protection of log information) is the closest direct match.

Fix: Add a second export from the resource's diagnostic setting to an organisation-approved, centrally-owned destination that the workload's administrators do not control, e.g.:\n az monitor diagnostic-settings update \\\n --name <setting-name> \\\n --resource <resource-id> \\\n --workspace <approved-log-analytics-workspace-resource-id>\nConsider enabling an immutability policy on any Storage Account destination as defence in depth.

CIS N/A-SECOPS-005NIST PR.DS-6ISO27001 A.8.15SOC2 CC7.2
fix_az_secops_005.sh →
HighAZ-SECOPS-006

Required Microsoft Defender for Cloud Plan Not Enabled

security operationsCIS N/A-SECOPS-006NIST DE.CM-8
Details +

A Microsoft Defender for Cloud plan the organisation requires for critical workloads (e.g. VirtualMachines, StorageAccounts, SqlServers) is not enabled (pricing tier is not 'Standard') at the subscription scope. Without the plan enabled, the corresponding workload type receives no Defender threat detection, and no recommendations or alerts are generated for it.

Fix: Enable the required Defender plan at subscription scope, e.g.:\n az security pricing create --name <PlanName> --tier Standard

CIS N/A-SECOPS-006NIST DE.CM-8ISO27001 A.8.8SOC2 CC7.1
fix_az_secops_006.sh →
HighAZ-SECOPS-007

High-Risk Defender Recommendation Unresolved Beyond SLA

security operationsCIS 2.1.13NIST RS.MI-3
Details +

A Microsoft Defender for Cloud security assessment with High severity is Unhealthy and has remained unresolved longer than the organisation's remediation SLA. The Defender assessment API does not return a typed first-observed timestamp; the age used here is read from the assessment's non-secret additional_data map when the resource provider populates a recognised timestamp key. When no such timestamp is available the assessment's age cannot be determined and it is excluded from this rule's findings (never assumed to be either compliant or overdue).

Fix: Review and remediate the Defender recommendation before its SLA expires:\n az security assessment show --name <assessment-name>\nAddress the underlying resource misconfiguration described by the recommendation, or record an approved risk-acceptance exception with the security team if remediation is not currently possible.

CIS 2.1.13NIST RS.MI-3ISO27001 A.8.8SOC2 CC7.1
fix_az_secops_007.sh →
HighAZ-SECOPS-008

Required Microsoft Sentinel Data Connector Disconnected or Unhealthy

security operationsCIS N/A-SECOPS-008NIST DE.AE-3
Details +

An organisation-required Microsoft Sentinel data connector is either missing from a Sentinel-onboarded workspace or present with every one of its log data types disabled, which Azure surfaces as the connector showing 'Not connected' in the Sentinel portal. Sentinel workspace scope is auto-discovered: every Log Analytics workspace in the subscription is checked for Sentinel onboarding, and only confirmed-onboarded workspaces are evaluated here. There is no CIS Azure Foundations Benchmark control covering Sentinel connector health; CIS is an infrastructure-configuration benchmark and does not include SIEM/XDR operational controls.

Fix: Open Microsoft Sentinel > Data connectors for the affected workspace, select the required connector, and complete or repair its connection so at least one of its log data types is Enabled and actively ingesting.

CIS N/A-SECOPS-008NIST DE.AE-3ISO27001 A.8.16SOC2 CC7.2
fix_az_secops_008.sh →
HighAZ-SECOPS-009

Sentinel Missing Required High-Severity Analytics Coverage

security operationsCIS N/A-SECOPS-009NIST DE.CM-1
Details +

A Sentinel-onboarded workspace has no enabled analytics (alert) rule with High severity covering an organisation-required detection use case (e.g. privileged-role-change, credential-abuse). Detection use cases are matched against each enabled rule's name and tactics; a use case present only as a disabled rule, or not present at all, provides no actual detection coverage. There is no CIS Azure Foundations Benchmark control for Sentinel analytics coverage; CIS is an infrastructure-configuration benchmark and does not evaluate SIEM detection content.

Fix: Create or enable a Sentinel scheduled analytics rule with High severity covering the missing detection use case:\n az sentinel alert-rule create --resource-group <rg> --workspace-name <workspace> \\\n --kind Scheduled --severity High --display-name <use-case-name> ...

CIS N/A-SECOPS-009NIST DE.CM-1ISO27001 A.8.16SOC2 CC7.2
fix_az_secops_009.sh →
HighAZ-SECOPS-010

Security Alerts Have No Monitored Incident-Response Destination

security operationsCIS 2.1.20NIST RS.CO-2
Details +

No enabled Azure Monitor action group with at least one notification receiver (email, SMS, voice, webhook, ITSM, Logic App, Automation runbook, Azure Function, or Event Hub) exists at subscription scope, and no Sentinel-onboarded workspace has an automation rule configured to route incidents onward (e.g. to a playbook). Without either mechanism, a security alert or Sentinel incident can be generated with nobody and nothing notified to respond to it.

Fix: Create an enabled Azure Monitor action group with at least one receiver, e.g.:\n az monitor action-group create --name soc-notify --resource-group <rg> \\\n --action email soc-oncall ops@example.com\nOr configure a Sentinel automation rule that runs a playbook when an incident is created:\n az sentinel automation-rule create --resource-group <rg> --workspace-name <workspace> ...

CIS 2.1.20NIST RS.CO-2ISO27001 A.6.8SOC2 CC7.4
fix_az_secops_010.sh →
HighAZ-STOR-001

Public Blob Access Enabled on Storage Account

storageCIS 3.5NIST PR.AC-3
Details +

Storage accounts with public blob access enabled allow unauthenticated read access to blob data over the internet. This setting can expose sensitive files, backups, or configuration data to any external actor.

Fix: Disable public blob access on the storage account. Navigate to Storage Account > Configuration > Blob public access and set it to Disabled.

CIS 3.5NIST PR.AC-3ISO27001 A.8.3
fix_az_stor_001.sh →
HighAZ-STOR-002

Storage Account Allows HTTP Traffic (Not HTTPS-Only)

storageCIS 3.1NIST PR.DS-2
Details +

Storage accounts that do not enforce HTTPS-only traffic allow data to be transmitted in plaintext over HTTP. This exposes credentials and data to man-in-the-middle attacks and interception.

Fix: Enable the 'Secure transfer required' setting on the storage account. Navigate to Storage Account > Configuration > Secure transfer required and enable it.

CIS 3.1NIST PR.DS-2ISO27001 A.8.24
fix_az_stor_002.sh →
MediumAZ-STOR-003

Storage Account Has No Lifecycle Management Policy

storageCIS 3.7NIST PR.DS-3
Details +

The storage account has no lifecycle management policy configured. Without a lifecycle policy, blobs accumulate indefinitely, old data that is no longer needed remains accessible, increasing storage costs and the attack surface. A compromised account exposes all historical data with no automatic expiry or tiering in place.

Fix: Create a lifecycle management policy on the storage account that transitions blobs to cooler tiers (Cool, Archive) after a defined number of days, and deletes blobs that exceed the organisation's maximum retention period. Navigate to: Storage Account > Data management > Lifecycle management > Add a rule.

CIS 3.7NIST PR.DS-3ISO27001 A.7.10
fix_az_stor_003.sh →
MediumAZ-STOR-004

Storage Account Diagnostic Logging Disabled

storageCIS 3.3NIST DE.CM-7
Details +

Azure Monitor diagnostic logging is not fully enabled for the {service} service on this storage account. StorageRead, StorageWrite, and StorageDelete must all be enabled. Without logging, operations on this service cannot be detected or investigated, making it impossible to identify data exfiltration or unauthorised access. CIS Azure Benchmark 3.3 requires logging for blob, queue, and table services for read, write, and delete requests.

Fix: Enable Azure Monitor diagnostic settings on the storage account's {service} service with StorageRead, StorageWrite, and StorageDelete all set to enabled. Navigate to: Storage Account > Monitoring > Diagnostic settings > {service} > Add diagnostic setting, then check StorageRead, StorageWrite, and StorageDelete.

CIS 3.3NIST DE.CM-7ISO27001 A.8.15SOC2 CC7.2
fix_az_stor_004.sh →
MediumAZ-STOR-005

Storage Account Not Using Geo-Redundant Replication

storageCIS 3.8NIST PR.IP-4
Details +

This storage account is configured with a non-geo-redundant replication SKU ({sku_name}). Locally redundant (LRS) and zone-redundant (ZRS) storage replicate data only within a single region. A regional outage or disaster could result in data unavailability or data loss. Geo-redundant storage (GRS or GZRS) replicates data asynchronously to a secondary Azure region, protecting against region-wide failures.

Fix: Change the storage account replication to a geo-redundant SKU such as Standard_GRS or Standard_GZRS. Navigate to Storage Account > Configuration > Replication and select Geo-redundant storage (GRS) or Geo-zone-redundant storage (GZRS). Alternatively, run the remediation playbook.

CIS 3.8NIST PR.IP-4ISO27001 A.8.14SOC2 A1.2
fix_az_stor_005.sh →
HighAZ-STOR-006

Storage Account Shared-Key Authorization Enabled

storageCIS N/A-STOR-006NIST N/A-STOR-006
Details +

Shared-key authorization is enabled on this storage account. Shared keys are long-lived account-wide credentials and bypass identity-based access controls when disclosed.

Fix: Disable shared-key authorization after confirming that all clients use Microsoft Entra ID or an approved alternative. Navigate to Storage Account > Configuration > Allow storage account key access and set it to Disabled.

CIS N/A-STOR-006NIST N/A-STOR-006ISO27001 N/A-STOR-006SOC2 N/A-STOR-006
fix_az_stor_006.sh →
HighAZ-STOR-007

Storage Account Allows TLS Below 1.2

storageCIS N/A-STOR-007NIST N/A-STOR-007
Details +

The storage account permits a minimum TLS version below TLS 1.2. Older protocols no longer provide an approved transport-security baseline.

Fix: Set the storage account minimum TLS version to TLS 1.2 or later. Navigate to Storage Account > Configuration > Minimum TLS version.

CIS N/A-STOR-007NIST N/A-STOR-007ISO27001 N/A-STOR-007SOC2 N/A-STOR-007
fix_az_stor_007.sh →
HighAZ-STOR-008

Required Storage Customer-Managed Key Protection Missing

storageCIS N/A-STOR-008NIST N/A-STOR-008
Details +

This explicitly protected storage account is not using a customer-managed encryption key.

Fix: Configure storage encryption with an approved Key Vault customer-managed key after validating key access and rotation ownership.

CIS N/A-STOR-008NIST N/A-STOR-008ISO27001 N/A-STOR-008SOC2 N/A-STOR-008
fix_az_stor_008.sh →
HighAZ-STOR-009

Required Blob Container Immutability Missing

storageCIS N/A-STOR-009NIST N/A-STOR-009
Details +

This explicitly protected blob container has no effective immutability policy.

Fix: Configure and, where required, lock a time-based immutability policy for the container after confirming retention requirements.

CIS N/A-STOR-009NIST N/A-STOR-009ISO27001 N/A-STOR-009SOC2 N/A-STOR-009
fix_az_stor_009.sh →
HighAZ-STOR-010

Storage Account Missing Private Endpoint

storageCIS N/A-STOR-010NIST PR.AC-5
Details +

A storage account reachable over the public network has no approved Private Endpoint connection, so its blob/file/queue/table endpoints stay reachable from the internet. Traffic does not remain inside a private VNet, widening the attack surface for unauthorized access and data exfiltration.

Fix: Create a Private Endpoint for the storage account and approve the connection (`az network private-endpoint create ...`), then set the account's public network access to Disabled (or Selected networks) so traffic flows only over the private IP inside the VNet.

CIS N/A-STOR-010NIST PR.AC-5ISO27001 A.8.22SOC2 CC6.6
fix_az_stor_010.sh →
Get started

Open source security posture for Azure.