[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7A66DKY5PX4WZSDFJKQ67B6":3,"skill-same:01M7A66DKY5PX4WZSDFJKQ67B6":91},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":54,"commitSha":55,"skillDirectory":56,"forksCount":14,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M7A66DKY5PX4WZSDFJKQ67B6","detecting-misconfigured-azure-storage",null,"Audit Azure Storage accounts for public blob containers, missing encryption, overly permissive SAS tokens, disabled logging, and network access violations using Azure CLI, PowerShell, and Microsoft Defender for Storage. Use for storage security audits across subscriptions, responding to Defender for Storage anonymous-access alerts, verifying compliance controls, or setting security baselines when onboarding a subscription.","NeelakshSaxena\u002FVayu","NeelakshSaxena","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F87892838?v=4","01M7A3B9YFS6F6N9DD1787DT86","Neelaksh Saxena","01M7A3B9ZKBT09MNMPX2XN69BY",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-misconfigured-azure-storage\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-misconfigured-azure-storage\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: detecting-misconfigured-azure-storage\ndescription: Audit Azure Storage accounts for public blob containers, missing encryption, overly permissive SAS tokens, disabled logging, and network access violations using Azure CLI, PowerShell, and Microsoft Defender for Storage. Use for storage security audits across subscriptions, responding to Defender for Storage anonymous-access alerts, verifying compliance controls, or setting security baselines when onboarding a subscription.\ndomain: cybersecurity\nsubdomain: cloud-security\ntags:\n- cloud-security\n- azure\n- storage-security\n- blob-storage\n- sas-tokens\n- data-protection\nversion: '1.0'\nauthor: mahipal\nlicense: Apache-2.0\nnist_ai_rmf:\n- MEASURE-2.7\n- MAP-5.1\n- MANAGE-2.4\natlas_techniques:\n- AML.T0070\n- AML.T0066\n- AML.T0082\nnist_csf:\n- PR.IR-01\n- ID.AM-08\n- GV.SC-06\n- DE.CM-01\nmitre_attack:\n- T1078.004\n- T1530\n- T1537\n- T1580\n- T1610\n---\n\n# Detecting Misconfigured Azure Storage\n\n## When to Use\n\n- When performing a security audit of Azure Storage accounts across subscriptions\n- When responding to Microsoft Defender for Storage alerts about anonymous access or data exfiltration\n- When compliance requires verification of encryption, network restrictions, and access logging\n- When investigating potential data exposure through publicly accessible blob containers\n- When onboarding Azure subscriptions and establishing storage security baselines\n\n**Do not use** for Azure SQL or Cosmos DB security auditing (use dedicated database security tools), for real-time threat detection on storage operations (use Defender for Storage), or for Azure Files or Data Lake Gen2 specific auditing without adapting the checks.\n\n## Prerequisites\n\n- Azure CLI installed and authenticated (`az login`) with Reader and Storage Account Contributor roles\n- Az PowerShell module installed for advanced queries (`Install-Module Az.Storage`)\n- Microsoft Defender for Storage enabled for threat detection\n- Access to Azure Resource Graph for cross-subscription queries\n- ScoutSuite or Prowler Azure provider for automated assessment\n\n## Workflow\n\n### Step 1: Enumerate All Storage Accounts and Basic Configuration\n\nList all storage accounts across subscriptions and assess their baseline security settings.\n\n```bash\n# List all storage accounts across all subscriptions\naz storage account list \\\n  --query \"[].{Name:name, ResourceGroup:resourceGroup, Location:location, Kind:kind, Sku:sku.name, HttpsOnly:enableHttpsTrafficOnly, MinTLS:minimumTlsVersion, PublicAccess:allowBlobPublicAccess}\" \\\n  -o table\n\n# Use Resource Graph for cross-subscription enumeration\naz graph query -q \"\n  Resources\n  | where type == 'microsoft.storage\u002Fstorageaccounts'\n  | project name, resourceGroup, subscriptionId, location,\n    properties.allowBlobPublicAccess,\n    properties.enableHttpsTrafficOnly,\n    properties.minimumTlsVersion,\n    properties.networkAcls.defaultAction\n\" -o table\n```\n\n### Step 2: Detect Publicly Accessible Blob Containers\n\nIdentify storage accounts and containers allowing anonymous public access to blob data.\n\n```bash\n# Check each storage account for public blob access setting\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  public=$(az storage account show --name \"$account\" --query \"allowBlobPublicAccess\" -o tsv)\n  echo \"$account: allowBlobPublicAccess=$public\"\ndone\n\n# List containers with public access level set\nfor account in $(az storage account list --query \"[?allowBlobPublicAccess==true].name\" -o tsv); do\n  key=$(az storage account keys list --account-name \"$account\" --query \"[0].value\" -o tsv)\n  echo \"=== $account ===\"\n  az storage container list \\\n    --account-name \"$account\" \\\n    --account-key \"$key\" \\\n    --query \"[?properties.publicAccess!='off' && properties.publicAccess!=null].{Container:name, PublicAccess:properties.publicAccess}\" \\\n    -o table 2>\u002Fdev\u002Fnull\ndone\n\n# Test anonymous access to discovered public containers\ncurl -s \"https:\u002F\u002FACCOUNT.blob.core.windows.net\u002FCONTAINER?restype=container&comp=list\" | head -50\n```\n\n### Step 3: Audit Network Access and Firewall Rules\n\nCheck for storage accounts accessible from all networks versus those restricted to specific VNets or IP ranges.\n\n```bash\n# Find storage accounts with default network action set to Allow (open to all networks)\naz storage account list \\\n  --query \"[?networkRuleSet.defaultAction=='Allow'].{Name:name, DefaultAction:networkRuleSet.defaultAction, VNetRules:networkRuleSet.virtualNetworkRules}\" \\\n  -o table\n\n# Detailed network rule audit\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  echo \"=== $account ===\"\n  az storage account show --name \"$account\" \\\n    --query \"{DefaultAction:networkRuleSet.defaultAction, IPRules:networkRuleSet.ipRules[*].ipAddressOrRange, VNetRules:networkRuleSet.virtualNetworkRules[*].virtualNetworkResourceId, Bypass:networkRuleSet.bypass}\" \\\n    -o json\ndone\n\n# Find storage accounts with private endpoints\naz network private-endpoint list \\\n  --query \"[?privateLinkServiceConnections[0].groupIds[0]=='blob'].{Name:name, Storage:privateLinkServiceConnections[0].privateLinkServiceId}\" \\\n  -o table\n```\n\n### Step 4: Verify Encryption Settings and Key Management\n\nEnsure all storage accounts use encryption at rest with appropriate key management (Microsoft-managed or customer-managed keys).\n\n```bash\n# Check encryption configuration for all storage accounts\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  echo \"=== $account ===\"\n  az storage account show --name \"$account\" \\\n    --query \"{Encryption:encryption.services, KeySource:encryption.keySource, KeyVaultUri:encryption.keyVaultProperties.keyVaultUri, InfraEncryption:encryption.requireInfrastructureEncryption}\" \\\n    -o json\ndone\n\n# Find accounts without infrastructure encryption (double encryption)\naz storage account list \\\n  --query \"[?encryption.requireInfrastructureEncryption!=true].{Name:name, KeySource:encryption.keySource}\" \\\n  -o table\n\n# Check for accounts using TLS version below 1.2\naz storage account list \\\n  --query \"[?minimumTlsVersion!='TLS1_2'].{Name:name, TLS:minimumTlsVersion}\" \\\n  -o table\n```\n\n### Step 5: Audit Shared Access Signatures and Access Keys\n\nIdentify overly permissive SAS tokens and check for access key usage patterns.\n\n```bash\n# Check when storage account keys were last rotated\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  echo \"=== $account ===\"\n  az storage account keys list \\\n    --account-name \"$account\" \\\n    --query \"[].{KeyName:keyName, CreationTime:creationTime}\" \\\n    -o table\ndone\n\n# Check if storage account allows shared key access (should be disabled for AAD-only)\naz storage account list \\\n  --query \"[].{Name:name, AllowSharedKeyAccess:allowSharedKeyAccess}\" \\\n  -o table\n\n# Review stored access policies on containers (SAS governance)\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  key=$(az storage account keys list --account-name \"$account\" --query \"[0].value\" -o tsv 2>\u002Fdev\u002Fnull)\n  for container in $(az storage container list --account-name \"$account\" --account-key \"$key\" --query \"[].name\" -o tsv 2>\u002Fdev\u002Fnull); do\n    policies=$(az storage container policy list --container-name \"$container\" --account-name \"$account\" --account-key \"$key\" 2>\u002Fdev\u002Fnull)\n    [ -n \"$policies\" ] && echo \"$account\u002F$container: $policies\"\n  done\ndone\n```\n\n### Step 6: Check Diagnostic Logging and Monitoring\n\nVerify that storage analytics logging and Azure Monitor diagnostic settings are enabled.\n\n```bash\n# Check diagnostic settings for storage accounts\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  rg=$(az storage account show --name \"$account\" --query \"resourceGroup\" -o tsv)\n  echo \"=== $account ===\"\n  az monitor diagnostic-settings list \\\n    --resource \"\u002Fsubscriptions\u002F$(az account show --query id -o tsv)\u002FresourceGroups\u002F$rg\u002Fproviders\u002FMicrosoft.Storage\u002FstorageAccounts\u002F$account\" \\\n    --query \"[].{Name:name, Logs:logs[*].category, Metrics:metrics[*].category}\" \\\n    -o json 2>\u002Fdev\u002Fnull || echo \"  No diagnostic settings configured\"\ndone\n\n# Check blob service logging properties\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  key=$(az storage account keys list --account-name \"$account\" --query \"[0].value\" -o tsv 2>\u002Fdev\u002Fnull)\n  az storage logging show \\\n    --account-name \"$account\" \\\n    --account-key \"$key\" \\\n    --services b 2>\u002Fdev\u002Fnull\ndone\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Blob Public Access | Storage account setting that allows anonymous read access to blob containers and their contents without authentication |\n| Shared Access Signature | Time-limited URI with embedded authentication tokens granting delegated access to Azure Storage resources with specific permissions |\n| Network ACL Default Action | Storage firewall setting that determines whether traffic is allowed or denied by default, with exceptions for specified IPs and VNets |\n| Customer-Managed Key | Encryption key stored in Azure Key Vault that the customer controls for storage encryption instead of Microsoft-managed keys |\n| Stored Access Policy | Named policy on a container that defines SAS permissions, start\u002Fexpiry times, and can be revoked independently of individual SAS tokens |\n| Defender for Storage | Microsoft Defender plan providing threat detection for anomalous storage access patterns, malware uploads, and data exfiltration |\n\n## Tools & Systems\n\n- **Azure CLI**: Primary tool for querying storage account configuration, containers, and access policies\n- **Azure Resource Graph**: Cross-subscription query engine for efficient enumeration of storage security settings at scale\n- **Microsoft Defender for Storage**: Threat detection service identifying anomalous access patterns and potential data exfiltration\n- **Prowler Azure**: Open-source tool with automated storage security checks aligned to CIS Azure Foundations\n- **ScoutSuite**: Multi-cloud auditing tool with Azure storage-specific checks for public access, encryption, and networking\n\n## Common Scenarios\n\n### Scenario: Detecting a Storage Account Exposed by a Developer Misconfiguration\n\n**Context**: A developer creates a storage account for a web application and enables blob public access to serve static files. They accidentally store API keys and database connection strings in a publicly accessible container.\n\n**Approach**:\n1. Run `az storage account list` filtering for `allowBlobPublicAccess=true`\n2. Enumerate containers with public access level set to `blob` or `container`\n3. List contents of public containers to identify sensitive files\n4. Check Defender for Storage alerts for anomalous access from unexpected IPs\n5. Immediately set `allowBlobPublicAccess` to `false` on the storage account\n6. Rotate any exposed credentials found in public containers\n7. Enable network ACLs restricting access to the application VNet\n8. Configure Azure CDN or Front Door for legitimate public content delivery\n\n**Pitfalls**: Disabling blob public access immediately breaks applications serving content publicly. Coordinate with the development team and implement Azure CDN before disabling public access. SAS tokens generated before a key rotation remain valid until expiry unless the underlying storage key is regenerated.\n\n## Output Format\n\n```\nAzure Storage Security Audit Report\n======================================\nSubscription: Production (SUB-ID)\nAssessment Date: 2026-02-23\nStorage Accounts Audited: 24\n\nCRITICAL FINDINGS:\n[STOR-001] Public Blob Access Enabled\n  Account: webapp-static-prod\n  Container: uploads (PublicAccess: blob)\n  Risk: Anonymous users can read all blobs in the container\n  Contents: 1,247 files including .env and config.json\n  Remediation: Disable allowBlobPublicAccess, use Azure CDN with SAS\n\n[STOR-002] Storage Account Open to All Networks\n  Account: data-lake-analytics\n  Default Action: Allow (no network restrictions)\n  Risk: Accessible from any network including the internet\n  Remediation: Set default action to Deny, add VNet rules\n\nSUMMARY:\n  Public blob access enabled:           3 \u002F 24\n  Open to all networks:                 8 \u002F 24\n  Missing infrastructure encryption:   12 \u002F 24\n  TLS version below 1.2:                2 \u002F 24\n  No diagnostic logging:               10 \u002F 24\n  Shared key access enabled:           18 \u002F 24\n  Keys not rotated in 90+ days:        14 \u002F 24\n```\n","# Detecting Misconfigured Azure Storage\n\n## When to Use\n\n- When performing a security audit of Azure Storage accounts across subscriptions\n- When responding to Microsoft Defender for Storage alerts about anonymous access or data exfiltration\n- When compliance requires verification of encryption, network restrictions, and access logging\n- When investigating potential data exposure through publicly accessible blob containers\n- When onboarding Azure subscriptions and establishing storage security baselines\n\n**Do not use** for Azure SQL or Cosmos DB security auditing (use dedicated database security tools), for real-time threat detection on storage operations (use Defender for Storage), or for Azure Files or Data Lake Gen2 specific auditing without adapting the checks.\n\n## Prerequisites\n\n- Azure CLI installed and authenticated (`az login`) with Reader and Storage Account Contributor roles\n- Az PowerShell module installed for advanced queries (`Install-Module Az.Storage`)\n- Microsoft Defender for Storage enabled for threat detection\n- Access to Azure Resource Graph for cross-subscription queries\n- ScoutSuite or Prowler Azure provider for automated assessment\n\n## Workflow\n\n### Step 1: Enumerate All Storage Accounts and Basic Configuration\n\nList all storage accounts across subscriptions and assess their baseline security settings.\n\n```bash\n# List all storage accounts across all subscriptions\naz storage account list \\\n  --query \"[].{Name:name, ResourceGroup:resourceGroup, Location:location, Kind:kind, Sku:sku.name, HttpsOnly:enableHttpsTrafficOnly, MinTLS:minimumTlsVersion, PublicAccess:allowBlobPublicAccess}\" \\\n  -o table\n\n# Use Resource Graph for cross-subscription enumeration\naz graph query -q \"\n  Resources\n  | where type == 'microsoft.storage\u002Fstorageaccounts'\n  | project name, resourceGroup, subscriptionId, location,\n    properties.allowBlobPublicAccess,\n    properties.enableHttpsTrafficOnly,\n    properties.minimumTlsVersion,\n    properties.networkAcls.defaultAction\n\" -o table\n```\n\n### Step 2: Detect Publicly Accessible Blob Containers\n\nIdentify storage accounts and containers allowing anonymous public access to blob data.\n\n```bash\n# Check each storage account for public blob access setting\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  public=$(az storage account show --name \"$account\" --query \"allowBlobPublicAccess\" -o tsv)\n  echo \"$account: allowBlobPublicAccess=$public\"\ndone\n\n# List containers with public access level set\nfor account in $(az storage account list --query \"[?allowBlobPublicAccess==true].name\" -o tsv); do\n  key=$(az storage account keys list --account-name \"$account\" --query \"[0].value\" -o tsv)\n  echo \"=== $account ===\"\n  az storage container list \\\n    --account-name \"$account\" \\\n    --account-key \"$key\" \\\n    --query \"[?properties.publicAccess!='off' && properties.publicAccess!=null].{Container:name, PublicAccess:properties.publicAccess}\" \\\n    -o table 2>\u002Fdev\u002Fnull\ndone\n\n# Test anonymous access to discovered public containers\ncurl -s \"https:\u002F\u002FACCOUNT.blob.core.windows.net\u002FCONTAINER?restype=container&comp=list\" | head -50\n```\n\n### Step 3: Audit Network Access and Firewall Rules\n\nCheck for storage accounts accessible from all networks versus those restricted to specific VNets or IP ranges.\n\n```bash\n# Find storage accounts with default network action set to Allow (open to all networks)\naz storage account list \\\n  --query \"[?networkRuleSet.defaultAction=='Allow'].{Name:name, DefaultAction:networkRuleSet.defaultAction, VNetRules:networkRuleSet.virtualNetworkRules}\" \\\n  -o table\n\n# Detailed network rule audit\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  echo \"=== $account ===\"\n  az storage account show --name \"$account\" \\\n    --query \"{DefaultAction:networkRuleSet.defaultAction, IPRules:networkRuleSet.ipRules[*].ipAddressOrRange, VNetRules:networkRuleSet.virtualNetworkRules[*].virtualNetworkResourceId, Bypass:networkRuleSet.bypass}\" \\\n    -o json\ndone\n\n# Find storage accounts with private endpoints\naz network private-endpoint list \\\n  --query \"[?privateLinkServiceConnections[0].groupIds[0]=='blob'].{Name:name, Storage:privateLinkServiceConnections[0].privateLinkServiceId}\" \\\n  -o table\n```\n\n### Step 4: Verify Encryption Settings and Key Management\n\nEnsure all storage accounts use encryption at rest with appropriate key management (Microsoft-managed or customer-managed keys).\n\n```bash\n# Check encryption configuration for all storage accounts\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  echo \"=== $account ===\"\n  az storage account show --name \"$account\" \\\n    --query \"{Encryption:encryption.services, KeySource:encryption.keySource, KeyVaultUri:encryption.keyVaultProperties.keyVaultUri, InfraEncryption:encryption.requireInfrastructureEncryption}\" \\\n    -o json\ndone\n\n# Find accounts without infrastructure encryption (double encryption)\naz storage account list \\\n  --query \"[?encryption.requireInfrastructureEncryption!=true].{Name:name, KeySource:encryption.keySource}\" \\\n  -o table\n\n# Check for accounts using TLS version below 1.2\naz storage account list \\\n  --query \"[?minimumTlsVersion!='TLS1_2'].{Name:name, TLS:minimumTlsVersion}\" \\\n  -o table\n```\n\n### Step 5: Audit Shared Access Signatures and Access Keys\n\nIdentify overly permissive SAS tokens and check for access key usage patterns.\n\n```bash\n# Check when storage account keys were last rotated\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  echo \"=== $account ===\"\n  az storage account keys list \\\n    --account-name \"$account\" \\\n    --query \"[].{KeyName:keyName, CreationTime:creationTime}\" \\\n    -o table\ndone\n\n# Check if storage account allows shared key access (should be disabled for AAD-only)\naz storage account list \\\n  --query \"[].{Name:name, AllowSharedKeyAccess:allowSharedKeyAccess}\" \\\n  -o table\n\n# Review stored access policies on containers (SAS governance)\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  key=$(az storage account keys list --account-name \"$account\" --query \"[0].value\" -o tsv 2>\u002Fdev\u002Fnull)\n  for container in $(az storage container list --account-name \"$account\" --account-key \"$key\" --query \"[].name\" -o tsv 2>\u002Fdev\u002Fnull); do\n    policies=$(az storage container policy list --container-name \"$container\" --account-name \"$account\" --account-key \"$key\" 2>\u002Fdev\u002Fnull)\n    [ -n \"$policies\" ] && echo \"$account\u002F$container: $policies\"\n  done\ndone\n```\n\n### Step 6: Check Diagnostic Logging and Monitoring\n\nVerify that storage analytics logging and Azure Monitor diagnostic settings are enabled.\n\n```bash\n# Check diagnostic settings for storage accounts\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  rg=$(az storage account show --name \"$account\" --query \"resourceGroup\" -o tsv)\n  echo \"=== $account ===\"\n  az monitor diagnostic-settings list \\\n    --resource \"\u002Fsubscriptions\u002F$(az account show --query id -o tsv)\u002FresourceGroups\u002F$rg\u002Fproviders\u002FMicrosoft.Storage\u002FstorageAccounts\u002F$account\" \\\n    --query \"[].{Name:name, Logs:logs[*].category, Metrics:metrics[*].category}\" \\\n    -o json 2>\u002Fdev\u002Fnull || echo \"  No diagnostic settings configured\"\ndone\n\n# Check blob service logging properties\nfor account in $(az storage account list --query \"[].name\" -o tsv); do\n  key=$(az storage account keys list --account-name \"$account\" --query \"[0].value\" -o tsv 2>\u002Fdev\u002Fnull)\n  az storage logging show \\\n    --account-name \"$account\" \\\n    --account-key \"$key\" \\\n    --services b 2>\u002Fdev\u002Fnull\ndone\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| Blob Public Access | Storage account setting that allows anonymous read access to blob containers and their contents without authentication |\n| Shared Access Signature | Time-limited URI with embedded authentication tokens granting delegated access to Azure Storage resources with specific permissions |\n| Network ACL Default Action | Storage firewall setting that determines whether traffic is allowed or denied by default, with exceptions for specified IPs and VNets |\n| Customer-Managed Key | Encryption key stored in Azure Key Vault that the customer controls for storage encryption instead of Microsoft-managed keys |\n| Stored Access Policy | Named policy on a container that defines SAS permissions, start\u002Fexpiry times, and can be revoked independently of individual SAS tokens |\n| Defender for Storage | Microsoft Defender plan providing threat detection for anomalous storage access patterns, malware uploads, and data exfiltration |\n\n## Tools & Systems\n\n- **Azure CLI**: Primary tool for querying storage account configuration, containers, and access policies\n- **Azure Resource Graph**: Cross-subscription query engine for efficient enumeration of storage security settings at scale\n- **Microsoft Defender for Storage**: Threat detection service identifying anomalous access patterns and potential data exfiltration\n- **Prowler Azure**: Open-source tool with automated storage security checks aligned to CIS Azure Foundations\n- **ScoutSuite**: Multi-cloud auditing tool with Azure storage-specific checks for public access, encryption, and networking\n\n## Common Scenarios\n\n### Scenario: Detecting a Storage Account Exposed by a Developer Misconfiguration\n\n**Context**: A developer creates a storage account for a web application and enables blob public access to serve static files. They accidentally store API keys and database connection strings in a publicly accessible container.\n\n**Approach**:\n1. Run `az storage account list` filtering for `allowBlobPublicAccess=true`\n2. Enumerate containers with public access level set to `blob` or `container`\n3. List contents of public containers to identify sensitive files\n4. Check Defender for Storage alerts for anomalous access from unexpected IPs\n5. Immediately set `allowBlobPublicAccess` to `false` on the storage account\n6. Rotate any exposed credentials found in public containers\n7. Enable network ACLs restricting access to the application VNet\n8. Configure Azure CDN or Front Door for legitimate public content delivery\n\n**Pitfalls**: Disabling blob public access immediately breaks applications serving content publicly. Coordinate with the development team and implement Azure CDN before disabling public access. SAS tokens generated before a key rotation remain valid until expiry unless the underlying storage key is regenerated.\n\n## Output Format\n\n```\nAzure Storage Security Audit Report\n======================================\nSubscription: Production (SUB-ID)\nAssessment Date: 2026-02-23\nStorage Accounts Audited: 24\n\nCRITICAL FINDINGS:\n[STOR-001] Public Blob Access Enabled\n  Account: webapp-static-prod\n  Container: uploads (PublicAccess: blob)\n  Risk: Anonymous users can read all blobs in the container\n  Contents: 1,247 files including .env and config.json\n  Remediation: Disable allowBlobPublicAccess, use Azure CDN with SAS\n\n[STOR-002] Storage Account Open to All Networks\n  Account: data-lake-analytics\n  Default Action: Allow (no network restrictions)\n  Risk: Accessible from any network including the internet\n  Remediation: Set default action to Deny, add VNet rules\n\nSUMMARY:\n  Public blob access enabled:           3 \u002F 24\n  Open to all networks:                 8 \u002F 24\n  Missing infrastructure encryption:   12 \u002F 24\n  TLS version below 1.2:                2 \u002F 24\n  No diagnostic logging:               10 \u002F 24\n  Shared key access enabled:           18 \u002F 24\n  Keys not rotated in 90+ days:        14 \u002F 24\n```\n",{"name":5,"tags":25,"author":32,"domain":33,"license":15,"version":34,"nist_csf":35,"subdomain":26,"description":7,"nist_ai_rmf":40,"mitre_attack":44,"atlas_techniques":50},[26,27,28,29,30,31],"cloud-security","azure","storage-security","blob-storage","sas-tokens","data-protection","mahipal","cybersecurity","1.0",[36,37,38,39],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01",[41,42,43],"MEASURE-2.7","MAP-5.1","MANAGE-2.4",[45,46,47,48,49],"T1078.004","T1530","T1537","T1580","T1610",[51,52,53],"AML.T0070","AML.T0066","AML.T0082","main","7540bbccf0c1ded6156a467b02c95b61ad62413f",".agents\u002Fskills\u002Fdetecting-misconfigured-azure-storage","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena","Currently exploring the intersection of tech","2026-09-11 03:02:31",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add NeelakshSaxena\u002FVayu --skill detecting-misconfigured-azure-storage",{"tool":67,"command":68},"bunx","bunx skills add NeelakshSaxena\u002FVayu --skill detecting-misconfigured-azure-storage",{"tool":70,"command":71},"pnpm","pnpm dlx skills add NeelakshSaxena\u002FVayu --skill detecting-misconfigured-azure-storage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-misconfigured-azure-storage\u002FSKILL.md",true,[75,79,85],{"path":76,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":80,"resourceType":81,"resourceTypeDesc":82,"sizeBytes":83,"sourceHtmlUrl":84},"references\u002Fapi-reference.md","REFERENCE","参考文档",2662,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-misconfigured-azure-storage\u002Freferences\u002Fapi-reference.md",{"path":86,"resourceType":87,"resourceTypeDesc":88,"sizeBytes":89,"sourceHtmlUrl":90},"scripts\u002Fagent.py","SCRIPT","脚本",6899,"https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fdetecting-misconfigured-azure-storage\u002Fscripts\u002Fagent.py",[92,99,106,113,120,127],{"skillNo":93,"name":94,"nameZh":6,"description":95,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":96,"categories":97,"keywords":98,"publishedAt":20},"01M7ACCCVNCFKMA9X6D15X6G98","runpodctl","Runpod CLI for managing GPU\u002FCPU workloads from the terminal — pods, serverless endpoints, templates, network volumes, Hub deploys, models, SSH, and file transfer (send\u002Freceive). Use for terminal\u002FCI\u002Fscripting, Hub browse\u002Fdeploy, SSH setup, `doctor`, or when the Runpod MCP tools are not connected. For structured tool calls in an MCP-enabled session, prefer runpod-mcp.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpodctl\u002FSKILL.md",[],[],{"skillNo":100,"name":101,"nameZh":6,"description":102,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":20},"01M7ACC63SRHEA5KMCHSMZK2TC","runpod","Start here for any Runpod task — running GPU\u002FCPU pods, deploying serverless endpoints, templates, network volumes, building images, or understanding how Runpod works. Routes to the right skill (runpod-mcp, runpodctl, flash, companion-clis, runpod-usage, runpod-templates, runpod-migrate) and indexes two dozen live-verified end-to-end examples (golden paths) — use it when the lane is unclear, and for any multi-step or provisioning task even when it is not.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":20},"01M7ACC0Q1C89N9BZBV91CTQTF","runpod-usage","How Runpod works and how to work it — pods vs serverless, GPU\u002FVRAM selection, storage, building a container, networking, plus the agentic pod development loop (provision → ssh-exec → set up → poll readiness) and on-pod install hygiene (uv\u002Fapt). Use to answer \"how does X work\", \"which GPU\", \"how do I build a container\", or \"how do I stand up a workload on a pod\". Guidance, not a tool — execute with runpodctl, runpod-mcp, or flash.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-usage\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":20},"01M7ACBRPE345GF5GM5B8P8RRC","runpod-templates","Runpod's official prebuilt pod templates (ComfyUI, PyTorch, and others): what each image ships, which ports and paths it uses, how to pick one, how to pin a version, and what is missing on first boot. Use when a task says \"run \u003CX> on a pod\" and an official template already covers it, instead of building an image — and when a user needs help with or wants to fix something about a Runpod template they are already running (won't boot, can't reach the UI, missing models, wrong CUDA line, broken ComfyUI workflow metadata on imported workflows): start here and route onward. Deploy with runpodctl or runpod-mcp; end-to-end walkthroughs live in the runpod router's golden paths.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-templates\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":20},"01M7ACBJATHKVX1TWES2F44GY8","runpod-migrate","Migrate a codebase from the Runpod GraphQL API or REST v1 to REST v2 — inventory which parts use which API version, rewrite the call sites, flag breaking changes, and verify. Use when someone asks to move to v2, asks what v2 would change, or asks which Runpod API their code is on. For managing infrastructure rather than migrating code, use runpod-mcp or runpodctl.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-migrate\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":20},"01M7ACBC7GHVH6T9YEAPCG2AP8","runpod-mcp","Manage Runpod infrastructure — pods, serverless endpoints, jobs, templates, network volumes, container-registry auth, GPU\u002FCPU catalog, and billing — via the Runpod MCP server's structured tool calls. Use when the Runpod MCP tools (create-pod, list-endpoints, …) are connected in this session, or to connect them (hosted OAuth or local npx). Prefer this over runpodctl for plain infra CRUD when MCP is available; use runpodctl for the terminal, file transfer, or SSH setup.","https:\u002F\u002Fgithub.com\u002FNeelakshSaxena\u002FVayu\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Frunpod-mcp\u002FSKILL.md",[],[]]