Hub rules-azure

rules-azure

v3 public Verified

Azure

Microsoft Azure is a cloud computing service for building, testing, deploying, and managing applications. These rules govern resource management, security compliance, and best practices for AI-assisted Azure administration.

@sigmashakeinc 3 pulls 22 rules published Apr 8, 2026 synced Oct 11, 2026 sigmashakeinc/rules/rulesets/rules-azure →
Severity
13 error 9 warn 0 info
demo.cast
Microsoft Azure is a cloud computing service for building, testing, deploying, and managing applications. These rules govern resource management, security compliance, and best practices for AI-assisted Azure administration.

Rules index

22 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

azure

azure-aks-local-accounts-enabled warning log

RISK: AKS local (static) kubeconfig accounts survive user offboarding and bypass Entra Conditional Access. FIX: set local_account_disabled=true, enable azure_active_directory_role_based_access_control, and restrict api_server_authorized_ip_ranges.

Rule source requires an active Pro or Enterprise subscription.
azure-appservice-ftp-allowed warning log

RISK: ftps_state='AllAllowed' permits plaintext FTP for deployment credentials, trivially sniffed. FIX: set ftps_state='FtpsOnly' or 'Disabled' and deploy via managed identity / Run-From-Package.

Rule source requires an active Pro or Enterprise subscription.
azure-appservice-tls-old error block

RISK: App Service / Function App with TLS <1.2 allows downgrade attacks on session cookies and API keys. FIX: set minimum_tls_version='1.2'.

Rule source requires an active Pro or Enterprise subscription.
azure-basic-sku-retired warning log

RISK: Basic SKU Public IP and Basic Load Balancer were retired on 30 Sept 2025 and lack DDoS/zone-redundancy defaults. FIX: set sku='Standard' and review dependent resources.

Rule source requires an active Pro or Enterprise subscription.
azure-cosmos-local-auth-enabled warning log

RISK: Cosmos DB key-based auth bypasses Entra RBAC and cannot be revoked per-user — a recurring theme in 2024 ChaosDB-class audits. FIX: set local_authentication_disabled=true and use aad_authentication / managed identity.

Rule source requires an active Pro or Enterprise subscription.
azure-entra-multitenant-personal-accounts warning ask

RISK: Allowing personal Microsoft accounts on an enterprise app was the pivot vector in the Jan 2024 Midnight Blizzard intrusion. FIX: set sign_in_audience='AzureADMyOrg' or validate the tenant_id claim before issuing tokens.

Rule source requires an active Pro or Enterprise subscription.
azure-hardcoded-account-key error block

RISK: Hardcoded Azure Storage connection strings / account keys are the #1 Azure breach vector per the 2024 Microsoft DART report; once in git history they are assumed compromised. FIX: store in Key Vault and reference via managed identity, or use environment variables fed by a secret manager.

Rule source requires an active Pro or Enterprise subscription.
azure-hardcoded-client-secret error block

RISK: Hardcoded service-principal client_secret in Terraform source is recoverable from state files and VCS history. FIX: source from env (ARM_CLIENT_SECRET), a Key Vault data source, or migrate to OIDC / workload identity federation.

Rule source requires an active Pro or Enterprise subscription.
azure-identity-js-vulnerable error block

RISK: @azure/identity <4.2.1 is affected by the CVE-2024-35255 cross-SDK managed-identity EoP. FIX: bump @azure/identity to >=4.2.1 and re-run npm install.

Rule source requires an active Pro or Enterprise subscription.
azure-identity-python-vulnerable error block

RISK: azure-identity Python <1.16.1 is affected by CVE-2024-35255 (elevation of privilege via managed identity token validation). FIX: pin azure-identity>=1.16.1.

Rule source requires an active Pro or Enterprise subscription.
azure-keyvault-network-default-allow warning ask

RISK: Key Vault network_acls with default_action='Allow' exposes secrets to any network caller, amplifying Storm-0558-class token-theft blast radius. FIX: set default_action='Deny' and add a private endpoint or specific ip_rules/virtual_network_subnet_ids.

Rule source requires an active Pro or Enterprise subscription.
azure-keyvault-purge-protection-disabled error block

RISK: Without purge protection, a compromised identity can irreversibly destroy secrets/keys/certs (ransom or sabotage). Microsoft mandates soft-delete on all new vaults since Feb 2025. FIX: enable purge_protection_enabled=true and soft-delete with >=90 day retention.

Rule source requires an active Pro or Enterprise subscription.
azure-missing-https warning log

RISK: Disabling HTTPS-only allows cleartext HTTP to Storage accounts, exposing data and SAS tokens in transit. FIX: remove the setting (default true) or set enable_https_traffic_only=true.

Rule source requires an active Pro or Enterprise subscription.
azure-open-nsg-rdp-ssh error block

RISK: NSGs allowing RDP (3389) or SSH (22) from the internet ('*'/'0.0.0.0/0') are brute-forced within hours. FIX: front with Azure Bastion or restrict source_address_prefix to a corporate CIDR.

Rule source requires an active Pro or Enterprise subscription.
azure-overly-permissive-rbac error block

RISK: Assigning 'Owner' or 'Contributor' at broad scope violates least privilege and enables lateral movement. FIX: use a narrowly-scoped built-in role (e.g. 'Reader', 'Storage Blob Data Reader') or a custom role.

Rule source requires an active Pro or Enterprise subscription.
azure-resource-public-network-enabled warning ask

RISK: Exposing SQL/Cosmos/Key Vault/Storage to the public internet widens the attack surface and bypasses VNet controls. FIX: set public_network_access_enabled=false and use a private endpoint or service endpoint.

Rule source requires an active Pro or Enterprise subscription.
azure-sql-firewall-open-world error block

RISK: A SQL/Postgres/MySQL firewall rule 0.0.0.0-255.255.255.255 exposes the database to the entire internet and invites credential-stuffing. FIX: narrow to specific CIDRs or delete the rule and use a private endpoint.

Rule source requires an active Pro or Enterprise subscription.
azure-sql-tls-old error block

RISK: TLS 1.0/1.1 or disabled SSL enforcement on Azure SQL/MySQL/Postgres allows cleartext or downgraded connections leaking credentials. FIX: set minimal_tls_version='1.2' and ssl_enforcement_enabled=true.

Rule source requires an active Pro or Enterprise subscription.
azure-storage-public-access error block

RISK: Public blob/container access was the root cause of multiple 2024 Azure data-exfil incidents. FIX: set allow_nested_items_to_be_public=false and container_access_type='private'; front with SAS tokens or Entra RBAC.

Rule source requires an active Pro or Enterprise subscription.
azure-storage-shared-key-enabled error block

RISK: Shared Key auth bypasses Entra RBAC and conditional access; MSRC 2024 guidance sets the API default to false after it was abused in ransomware-via-blob incidents. FIX: set shared_access_key_enabled=false and use managed identity / Entra RBAC.

Rule source requires an active Pro or Enterprise subscription.
azure-storage-tls-old error block

RISK: TLS 1.0/1.1 was retired across Azure in Nov 2024 and is trivially downgraded. FIX: set min_tls_version='TLS1_2' (prefer 'TLS1_3' where supported).

Rule source requires an active Pro or Enterprise subscription.
azurerm-provider-outdated warning log

RISK: hashicorp/azurerm <3.110 / any v2.x is unsupported and missed fixes for state-file secret exposure advisories. FIX: pin azurerm to '>= 4.0' (or latest 3.x LTS) in required_providers and run 'terraform init -upgrade'.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Oct 11, 2026
Hash
0c471265da01cb095dfc89b04d47e4b56d30b944233c43db54e830cf3a4dd506
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-azure/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-azure. The published version only bumps when a maintainer resyncs.

No commit history available.