[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7EHDGHME6502DJ285C62VBD":3,"skill-same:01M7EHDGHME6502DJ285C62VBD":81},{"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":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":53,"commitSha":54,"skillDirectory":55,"forksCount":56,"repositoryHtmlUrl":57,"repositoryHomepageUrl":6,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M7EHDGHME6502DJ285C62VBD","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.","lza6\u002FArmor-piercing-system-prompts","lza6","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F128880206?v=4","01M7EB3K7WPX5T28EJ2NVHE6EG","Chinese-tingfeng","01M7EB3K97E1KQ16QWKJMFNGX8",11,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\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":24,"author":31,"domain":32,"license":15,"version":33,"nist_csf":34,"subdomain":25,"description":7,"nist_ai_rmf":39,"mitre_attack":43,"atlas_techniques":49},[25,26,27,28,29,30],"cloud-security","azure","storage-security","blob-storage","sas-tokens","data-protection","mahipal","cybersecurity","1.0",[35,36,37,38],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01",[40,41,42],"MEASURE-2.7","MAP-5.1","MANAGE-2.4",[44,45,46,47,48],"T1078.004","T1530","T1537","T1580","T1610",[50,51,52],"AML.T0070","AML.T0066","AML.T0082","main","d69096e239f2a89aabc2cd078c47664a9d3b1e11","04-安全渗透\u002Fdetecting-misconfigured-azure-storage",3,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts","https:\u002F\u002Fgithub.com\u002Flza6","个人vx：Tf00798\r\n个人✈：@TFGY999","2026-10-08 14:29:22",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add lza6\u002FArmor-piercing-system-prompts --skill detecting-misconfigured-azure-storage",{"tool":67,"command":68},"bunx","bunx skills add lza6\u002FArmor-piercing-system-prompts --skill detecting-misconfigured-azure-storage",{"tool":70,"command":71},"pnpm","pnpm dlx skills add lza6\u002FArmor-piercing-system-prompts --skill detecting-misconfigured-azure-storage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fdetecting-misconfigured-azure-storage\u002FSKILL.md",true,[75],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Fapi-reference.md","REFERENCE","参考文档",2662,"https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F04-安全渗透\u002Fdetecting-misconfigured-azure-storage\u002Freferences\u002Fapi-reference.md",[82,91,96,103,110,117],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":87,"categories":88,"keywords":89,"publishedAt":90},"01M7FFG485KY83TD6HSC4YPCMC","obsidian-clipper-template-creator","Guide for creating templates for the Obsidian Web Clipper. Use when you want to create a new clipping template, understand available variables, or format clipped content.","MIT","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator\u002FSKILL.md",[],[],"2026-11-16 10:05:34",{"skillNo":92,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":90},"01M7FFG0T6AZ0STEJPSB3CX84K","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobsidian-clipper-template-creator-antigravity-awesome-skills-main\u002FSKILL.md",[],[],{"skillNo":97,"name":98,"nameZh":6,"description":99,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":100,"categories":101,"keywords":102,"publishedAt":90},"01M7FFFY0QEM14SKWPDYGMXM2P","python-api","Programmatic Object-Detection-Metrics API guidance for BoundingBox, BoundingBoxes, Evaluator, enums, coordinate conversion, AP\u002FmAP semantics, and source-style import diagnostics.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Fpython-api\u002FSKILL.md",[],[],{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":109,"publishedAt":90},"01M7FFFVZQZ2GJ0C0TGP7JHD20","file-evaluation","Folder-based PASCAL VOC AP\u002FmAP evaluation from ground-truth and detection text files.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002Fsub-skills\u002Ffile-evaluation\u002FSKILL.md",[],[],{"skillNo":111,"name":112,"nameZh":6,"description":113,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":114,"categories":115,"keywords":116,"publishedAt":90},"01M7FFFSFNYSE77SJ6PE1CK2DA","object-detection-metrics","Guides legacy Object-Detection-Metrics PASCAL VOC AP\u002FmAP evaluation from detection text folders and direct Python API classes.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fobject-detection-metrics\u002FSKILL.md",[],[],{"skillNo":118,"name":119,"nameZh":6,"description":120,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":86,"licenseFileUrl":6,"sourceHtmlUrl":121,"categories":122,"keywords":123,"publishedAt":90},"01M7FFFP0GCK1RVXBCPQ8APBMT","nx-workspace-patterns","Configure and optimize Nx monorepo workspaces. Use when setting up Nx, configuring project boundaries, optimizing build caching, or implementing affected commands.","https:\u002F\u002Fgithub.com\u002Flza6\u002FArmor-piercing-system-prompts\u002Fblob\u002Fmain\u002F07-后端与架构\u002Fnx-workspace-patterns\u002FSKILL.md",[],[]]