Skip to content

Latest commit

 

History

History
136 lines (132 loc) · 14.4 KB

rules-reference.md

File metadata and controls

136 lines (132 loc) · 14.4 KB

Rules Reference

OpenShield currently ships 95 Azure scan rules. This table is generated from the module-level constants in scanner/rules/.

Rule ID Name Severity Category CIS NIST ISO 27001
AZ-CMP-001 VM with Public IP and No Associated NSG on Network Interface HIGH Compute 7.1 PR.AC-3 A.8.20
AZ-CMP-002 Virtual machine disk not protected by customer-managed key or ADE HIGH Compute 7.2 PR.DS-1 A.8.24
AZ-CMP-003 VM Without Endpoint Protection Installed HIGH Compute 8.2 DE.CM-4 A.8.7
AZ-CMP-004 VM Without Automatic OS Patching Enabled HIGH Compute 8.3 PR.IP-12 A.8.8
AZ-DB-001 PostgreSQL Server Allows Public Network Access HIGH Database 4.3.1 PR.AC-3 A.8.20
AZ-DB-002 Azure SQL Server Has No Auditing Configured MEDIUM Database 4.1.3 DE.CM-7 A.8.15
AZ-DB-003 PostgreSQL Flexible Server SSL Enforcement Disabled HIGH Database 4.3.6 PR.DS-2 A.8.24
AZ-DB-004 SQL Server Firewall Allows All Azure Services HIGH Database 4.1.2 PR.AC-3 A.8.20
AZ-IDN-001 Service Principal Assigned Owner Role at Subscription Scope HIGH Identity 1.24 PR.AC-4 A.8.2
AZ-IDN-002 No MFA Enforced on Admin Accounts via Conditional Access HIGH Identity 1.2.4 PR.AC-1 A.8.5
AZ-IDN-003 Guest user invitations not restricted to admins in Entra ID MEDIUM Identity 1.15 PR.AC-1 A.5.16
AZ-IDN-004 No Privileged Identity Management for Admin Roles HIGH Identity 1.16 PR.AC-4 A.8.2
AZ-IDN-005 Guest User with High Privilege Role in Entra ID HIGH Identity 1.3 PR.AC-4 A.8.2
AZ-IDN-006 Service Principal Client Secret Older Than 90 Days HIGH Identity 1.14 PR.AC-1 A.5.17
AZ-IDN-007 Active User with No MFA Registered in Entra ID HIGH Identity 1.1 PR.AC-7 A.8.5
AZ-IDN-008 Custom RBAC Role with Wildcard Permissions at Subscription Scope HIGH Identity 1.23 PR.AC-4 A.8.2
AZ-IDN-009 No Activity Log Alert for Role Assignment Changes MEDIUM Identity 5.2.1 DE.CM-3 A.8.16
AZ-IDN-010 App Registration Has No Owner MEDIUM Identity N/A-IDN-010 PR.AC-4 A.5.16
AZ-IDN-011 App Registration Uses Insecure Redirect URI HIGH Identity N/A-IDN-011 PR.DS-2 A.8.26
AZ-IDN-012 App Registration Enables OAuth Implicit Grant MEDIUM Identity N/A-IDN-012 PR.AC-3 A.8.5
AZ-IDN-013 App Registration Uses Password Credentials MEDIUM Identity N/A-IDN-013 PR.AC-1 A.5.17
AZ-IDN-014 Multi-Tenant App Registration Lacks Property Lock HIGH Identity N/A-IDN-014 PR.IP-1 A.8.32
AZ-IDN-015 Managed Identity Has Privileged Subscription Role HIGH Identity N/A-IDN-015 PR.AC-4 A.8.2
AZ-IDN-016 Privileged User Missing Phishing-Resistant MFA CRITICAL Identity N/A-IDN-016 PR.AC-7 A.8.5
AZ-IDN-017 Global Administrator Permanently Assigned Outside PIM HIGH Identity N/A-IDN-017 PR.AC-4 A.8.2
AZ-IDN-018 Privileged Role Assigned Outside Privileged Identity Management HIGH Identity N/A-IDN-018 PR.AC-4 A.8.2
AZ-IDN-019 Stale Privileged Account Retains Active Access HIGH Identity N/A-IDN-019 PR.AC-1 A.5.18
AZ-IDN-020 Emergency Access Accounts Missing or Incorrectly Configured HIGH Identity N/A-IDN-020 PR.AC-4 A.5.15
AZ-IDN-021 Legacy Authentication Not Blocked by Conditional Access HIGH Identity N/A-IDN-021 PR.AC-7 A.8.5
AZ-IDN-022 Azure Management Not Protected by Conditional Access HIGH Identity N/A-IDN-022 PR.AC-4 A.8.3
AZ-IDN-023 Identity Protection Risk Policies Not Enabled MEDIUM Identity N/A-IDN-023 DE.CM-3 A.8.16
AZ-IDN-024 Workload Identities Excluded From Conditional Access Policies MEDIUM Identity N/A-IDN-024 PR.AC-4 A.8.2
AZ-IDN-025 Privileged Role-Assignable Group Has No Owner MEDIUM Identity N/A-IDN-025 PR.AC-4 A.5.18
AZ-KV-001 Key Vault with Soft Delete Disabled MEDIUM KeyVault N/A-KV-001 PR.IP-4 A.8.14
AZ-KV-002 Key Vault Allows Public Network Access Without Private Endpoint HIGH Key Vault 8.7 AC-17 A.8.20
AZ-KV-003 Key Vault Without Diagnostic Logging Enabled MEDIUM Key Vault 8.4 DE.CM-7 A.8.15
AZ-KV-004 Key Vault Purge Protection Disabled MEDIUM Key Vault 8.5 PR.IP-4 A.8.14
AZ-KV-005 Key Vault Certificate Expiring Within 30 Days MEDIUM Key Vault N/A-KV-005 PR.MA-1 A.8.24
AZ-NET-001 NSG Allows Unrestricted Inbound SSH from Any Source HIGH Network 6.2 PR.AC-3 A.8.20
AZ-NET-002 NSG Allows Unrestricted Inbound RDP from Any Source HIGH Network 6.3 PR.AC-3 A.8.20
AZ-NET-003 NSG allows unrestricted inbound on port 443 HIGH Network 9.3 SC-7 A.8.20
AZ-NET-004 NSG with no rules configured MEDIUM Network 9.2 SC-7 A.8.20
AZ-NET-005 Virtual network with no DDoS protection enabled LOW Network 9.4 SC-5 A.8.20
AZ-NET-006 Public IP address unassociated with any resource LOW Network 9.1 CM-7 A.8.20
AZ-NET-007 Application Gateway without WAF enabled HIGH Network 9.6 SI-3 A.8.20
AZ-NET-008 Load balancer with no backend pool configured LOW Network 9.7 CM-7 A.8.20
AZ-NET-009 VPN gateway using outdated IKE version HIGH Network 9.5 SC-8 A.5.14
AZ-NET-010 Subnet with no network security group attached HIGH Network 9.10 SC-7 A.8.20
AZ-NET-011 Network Watcher Not Enabled in All Regions LOW Network 6.5 DE.CM-7 A.8.15
AZ-NET-012 VNet Flow Logs Not Enabled MEDIUM Network 6.7 DE.CM-1 A.8.15
AZ-NET-013 Azure Firewall Not Enabled on Virtual Network HIGH Network 6.4 PR.AC-5 A.8.20
AZ-NET-014 VNet Peering Configured Without Gateway Transit Restrictions MEDIUM Network 6.6 PR.AC-5 A.8.20
AZ-NET-015 Public DNS Zone Exposes Internal Infrastructure Details MEDIUM Network 9.8 PR.AC-5 A.8.20
AZ-NET-018 Private Endpoint Target Retains Public Network Access HIGH Network N/A-NET-018 PR.AC-3 A.8.20
AZ-NET-019 Private Endpoint Connection Is Not Approved HIGH Network N/A-NET-019 PR.AC-5 A.8.20
AZ-NET-020 Private Endpoint Lacks Private DNS Zone Association HIGH Network N/A-NET-020 PR.AC-5 A.8.20
AZ-NET-021 Private Endpoint DNS Configuration Reports Only Public Addresses HIGH Network N/A-NET-021 PR.AC-5 A.8.20
AZ-NET-022 Critical PaaS Resource Is Publicly Accessible Without Approved Exception HIGH Network N/A-NET-022 PR.AC-3 A.8.20
AZ-NET-023 Azure Firewall Threat Intelligence Is Not in Deny Mode HIGH Network N/A-NET-023 DE.CM-1 A.8.20
AZ-NET-024 Application Gateway WAF Is Not in Prevention Mode HIGH Network N/A-NET-024 PR.PT-4 A.8.20
AZ-NET-025 Application Gateway WAF Diagnostic Logging Is Not Enabled MEDIUM Network N/A-NET-025 DE.CM-1 A.8.15
AZ-NET-026 WAF Lacks Current Managed Rules or Bot Protection HIGH Network N/A-NET-026 PR.PT-4 A.8.27
AZ-NET-027 Internet-Facing Application Gateway Lacks Approved Rate Limiting HIGH Network N/A-NET-027 PR.PT-4 A.8.20
AZ-PQC-001 TLS Using Classical Key Exchange Algorithm HIGH PostQuantum 9.9 PR.DS-2 A.8.24
AZ-PQC-002 Key Vault Key Using Non-Quantum-Safe Algorithm HIGH PostQuantum 8.1 PR.DS-2 A.8.24
AZ-PQC-003 Key Vault Certificate Using Non-Quantum-Safe Signature Algorithm MEDIUM PostQuantum 8.9 PR.DS-2 A.8.24
AZ-STOR-001 Public Blob Access Enabled on Storage Account HIGH Storage 3.5 PR.AC-3 A.8.3
AZ-STOR-002 Storage Account Allows HTTP Traffic (Not HTTPS-Only) HIGH Storage 3.1 PR.DS-2 A.8.24
AZ-STOR-003 Storage Account Has No Lifecycle Management Policy MEDIUM Storage 3.7 PR.DS-3 A.7.10
AZ-STOR-004 Storage Account Diagnostic Logging Disabled MEDIUM Storage 3.3 DE.CM-7 A.8.15
AZ-STOR-005 Storage Account Not Using Geo-Redundant Replication MEDIUM Storage 3.8 PR.IP-4 A.8.14
AZ-STOR-006 Storage Account Shared-Key Authorization Enabled HIGH Storage N/A-STOR-006 N/A-STOR-006 N/A-STOR-006
AZ-STOR-007 Storage Account Allows TLS Below 1.2 HIGH Storage N/A-STOR-007 N/A-STOR-007 N/A-STOR-007
AZ-STOR-008 Required Storage Customer-Managed Key Protection Missing HIGH Storage N/A-STOR-008 N/A-STOR-008 N/A-STOR-008
AZ-STOR-009 Required Blob Container Immutability Missing HIGH Storage N/A-STOR-009 N/A-STOR-009 N/A-STOR-009
AZ-STOR-010 Storage Account Missing Private Endpoint HIGH Storage N/A-STOR-010 PR.AC-5 A.8.22
AZ-DB-005 SQL Server Microsoft Entra-Only Authentication Not Enforced HIGH Database N/A-DB-005 PR.AC-6 A.8.5
AZ-DB-006 SQL Vulnerability Assessment Not Configured HIGH Database N/A-DB-006 DE.CM-8 A.8.8
AZ-DB-007 SQL Auditing Retention Below Minimum MEDIUM Database N/A-DB-007 PR.PT-1 A.8.15
AZ-COSMOS-001 Cosmos DB Local Authentication Enabled HIGH Database N/A-COSMOS-001 PR.AC-6 A.8.5
AZ-COSMOS-002 Cosmos DB Public Network Access Enabled HIGH Network N/A-COSMOS-002 PR.AC-5 A.8.20
AZ-CACHE-001 Managed Cache Public or Non-TLS Access HIGH Network N/A-CACHE-001 PR.AC-5 A.8.20
AZ-AKS-001 AKS Private Cluster Not Enabled HIGH Kubernetes N/A-AKS-001 PR.AC-3 A.8.20
AZ-AKS-002 AKS Local Accounts Enabled HIGH Kubernetes N/A-AKS-002 PR.AC-1 A.5.16
AZ-AKS-003 AKS Cluster Not Using Managed Identity HIGH Kubernetes N/A-AKS-003 PR.AC-1 A.5.16
AZ-AKS-004 AKS Workload Identity Not Fully Enabled MEDIUM Kubernetes N/A-AKS-004 PR.AC-4 A.8.2
AZ-AKS-005 AKS Azure Policy Add-on Not Enabled MEDIUM Kubernetes N/A-AKS-005 PR.IP-1 A.8.9
AZ-AKS-006 AKS Node OS Automatic Upgrades Disabled HIGH Kubernetes N/A-AKS-006 PR.IP-12 A.8.8
AZ-AKS-007 AKS API Server Lacks Approved IP Restrictions HIGH Kubernetes N/A-AKS-007 PR.AC-3 A.8.20
AZ-AKS-008 AKS Cluster Has No Kubernetes Network Policy HIGH Kubernetes N/A-AKS-008 PR.AC-5 A.8.22
AZ-AKS-009 Kubernetes Namespace Has No NetworkPolicy HIGH Kubernetes N/A-AKS-009 PR.AC-5 A.8.22
AZ-AKS-010 Defender for Containers Protection Disabled HIGH Kubernetes 2.1.8 DE.CM-8 A.8.8
AZ-AKS-011 AKS Secrets Lack Key Vault or KMS-Backed Protection HIGH Kubernetes N/A-AKS-011 PR.DS-1 A.8.24
AZ-AKS-012 Secrets Store CSI Secret Rotation Disabled MEDIUM Kubernetes N/A-AKS-012 PR.AC-1 A.5.17
AZ-AKS-013 Kubernetes Workload Permits Privileged Containers CRITICAL Kubernetes N/A-AKS-013 PR.AC-4 A.8.3
AZ-AKS-014 Kubernetes Workload Uses Host Network HIGH Kubernetes N/A-AKS-014 PR.AC-5 A.8.22
AZ-AKS-015 Kubernetes Workload Uses Host PID Namespace HIGH Kubernetes N/A-AKS-015 PR.AC-4 A.8.3
AZ-AKS-016 Kubernetes Workload Uses Host IPC Namespace HIGH Kubernetes N/A-AKS-016 PR.AC-4 A.8.3
AZ-AKS-017 Kubernetes Workload Uses Unrestricted HostPath Volumes HIGH Kubernetes N/A-AKS-017 PR.AC-4 A.8.3
AZ-AKS-018 Kubernetes Cluster Admin Access Assigned Too Broadly CRITICAL Kubernetes N/A-AKS-018 PR.AC-4 A.8.2
AZ-AKS-019 Kubernetes Workload Uses Untrusted Registry HIGH Kubernetes N/A-AKS-019 PR.DS-6 A.8.27
AZ-AKS-020 Kubernetes Workload Uses Latest Image Tag HIGH Kubernetes N/A-AKS-020 PR.IP-1 A.8.32
AZ-AKS-021 Kubernetes Workload Image Is Not Digest Pinned MEDIUM Kubernetes N/A-AKS-021 PR.DS-6 A.8.27
AZ-BAK-001 Backup Soft Delete Disabled or Below 35 Days CRITICAL Backup N/A-BAK-001 PR.IP-4 A.8.13
AZ-BAK-002 Backup Vault Immutability Disabled HIGH Backup N/A-BAK-002 PR.IP-4 A.8.13
AZ-BAK-004 Backup Multiuser Authorization Missing HIGH Backup N/A-BAK-004 PR.AC-4 A.8.2
AZ-BAK-006 Backup Security Monitoring Disabled MEDIUM Backup N/A-BAK-006 DE.CM-1 A.8.16
AZ-FUNC-001 Function App HTTPS Only Disabled HIGH Serverless N/A-FUNC-001 PR.DS-2 A.5.14
AZ-FUNC-002 Function App Minimum TLS Below 1.2 HIGH Serverless N/A-FUNC-002 PR.DS-2 A.5.14
AZ-FUNC-003 Function App FTP Publishing Enabled MEDIUM Serverless N/A-FUNC-003 PR.AC-5 A.8.20
AZ-FUNC-004 Function App Remote Debugging Enabled HIGH Serverless N/A-FUNC-004 PR.AC-5 A.8.20
AZ-FUNC-005 Function App Managed Identity Missing MEDIUM Serverless N/A-FUNC-005 PR.AC-5 A.8.20
AZ-PE-001 Storage Public Network Access Enabled HIGH Network N/A-PE-001 PR.AC-5 A.8.20
AZ-PE-002 Azure SQL Public Network Access Enabled HIGH Network N/A-PE-002 PR.AC-5 A.8.20
AZ-PE-003 PostgreSQL Public Network Access Enabled HIGH Network N/A-PE-003 PR.AC-5 A.8.20
AZ-PE-004 Web or Function App Public Network Access Enabled HIGH Network N/A-PE-004 PR.AC-5 A.8.20
AZ-PE-005 Recovery Vault Public Network Access Enabled HIGH Network N/A-PE-005 PR.AC-5 A.8.20
AZ-PE-006 Private Endpoint Connection Not Approved MEDIUM Network N/A-PE-006 PR.AC-5 A.8.20
AZ-SC-001 Container Registry Admin User Enabled HIGH Supply Chain N/A-SC-001 PR.AC-1 A.5.16
AZ-SC-002 Container Registry Public Network Access Enabled HIGH Supply Chain N/A-SC-002 PR.AC-5 A.8.20
AZ-SC-003 Container Registry Allows Anonymous Pull HIGH Supply Chain N/A-SC-003 PR.AC-1 A.5.16
AZ-SC-004 Container Registry Missing Retention or Quarantine Policy MEDIUM Supply Chain N/A-SC-004 PR.IP-1 A.8.32
AZ-SC-005 Terraform State Storage Container Publicly Readable CRITICAL Supply Chain N/A-SC-005 PR.AC-5 A.8.20
AZ-SC-006 Terraform State Storage Account Missing Versioning or Soft Delete HIGH Supply Chain N/A-SC-006 PR.IP-4 A.8.13
AZ-SC-007 Pipeline Service Connection Scoped to Subscription HIGH Supply Chain N/A-SC-007 PR.AC-4 A.8.2
AZ-SC-008 Pipeline Service Connection Uses Password Instead of Federated Credential MEDIUM Supply Chain N/A-SC-008 PR.AC-1 A.5.17

SOC 2 mappings are maintained in compliance/frameworks/soc2.json.

Every rule has a matching remediation playbook in playbooks/cli/fix_<rule_id_lowercase>.sh.