[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6AEEWKNKRVQ2ZNVKWXQP6N9":3,"skill-same:01M6AEEWKNKRVQ2ZNVKWXQP6N9":121},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":8,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":18,"categories":19,"keywords":30,"publishedAt":51,"linkOnly":52,"markdownContent":53,"markdownBody":54,"frontMatter":55,"refName":80,"commitSha":81,"skillDirectory":82,"forksCount":83,"repositoryHtmlUrl":84,"repositoryHomepageUrl":85,"ownerHtmlUrl":86,"ownerBlogUrl":87,"ownerDescription":88,"updatedAt":89,"install":90,"resources":103},"01M6AEEWKNKRVQ2ZNVKWXQP6N9","detecting-misconfigured-azure-storage","Azure存储安全配置审计","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.","使用 Azure CLI、PowerShell 和 Microsoft Defender for Storage 审计 Azure 存储账户中公开访问的 blob 容器、缺失的加密、过于宽松的 SAS 令牌、禁用的日志记录以及网络访问违规行为。适用于跨订阅的存储安全审计、响应 Defender for Storage 匿名访问告警、验证合规控制，或在接入订阅时设置安全基线。","mukul975\u002FAnthropic-Cybersecurity-Skills","mukul975","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F42860185?v=4","01M6ADEQR8T5M4EEG6C67BQCWF","Mahipal","01M6ADJPMYWG1E5GM1FWBE3128",36146,"Apache-2.0",null,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-misconfigured-azure-storage\u002FSKILL.md",[20,25],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BR4MYFKGCC4WCWVJ50KJ2C","安全工程师","PROFESSION","适用职业",{"categoryNo":26,"categoryName":27,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C664K3JQN4CNXKYKQEDRQK","云平台安全加固","SCENARIO","使用场景",[31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50],"detecting misconfigured azure storage","storage","azure storage","azure","audit","storage-security","SAS-tokens","blob-storage","encryption","powershell","data","network","cloud-security","cli","logging","pr","defender","cybersecurity","security","containers","2026-11-10 10:12:30",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":56,"author":59,"domain":48,"license":16,"version":60,"nist_csf":61,"subdomain":43,"description":7,"nist_ai_rmf":66,"mitre_attack":70,"atlas_techniques":76},[43,34,36,38,57,58],"sas-tokens","data-protection","mahipal","1.0",[62,63,64,65],"PR.IR-01","ID.AM-08","GV.SC-06","DE.CM-01",[67,68,69],"MEASURE-2.7","MAP-5.1","MANAGE-2.4",[71,72,73,74,75],"T1078.004","T1530","T1537","T1580","T1610",[77,78,79],"AML.T0070","AML.T0066","AML.T0082","main","54a798831d2266a3ca61ce68a7acb80b81160d57","skills\u002Fdetecting-misconfigured-azure-storage",4425,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills","https:\u002F\u002Fmahipal.engineer\u002FAnthropic-Cybersecurity-Skills\u002F","https:\u002F\u002Fgithub.com\u002Fmukul975","Mahipal.engineer","🔐 Cybersecurity | 💻 Dev | 📷 Street Photographer\r\n🎓 MSc | 📚 Research & AI Security","2026-08-31 12:32:44",{"source":9,"skillName":5,"commands":91,"prompt":101,"zipAvailable":102},[92,95,98],{"tool":93,"command":94},"npx","npx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-misconfigured-azure-storage",{"tool":96,"command":97},"bunx","bunx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-misconfigured-azure-storage",{"tool":99,"command":100},"pnpm","pnpm dlx skills add mukul975\u002FAnthropic-Cybersecurity-Skills --skill detecting-misconfigured-azure-storage","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-misconfigured-azure-storage\u002FSKILL.md",true,[104,109,115],{"path":105,"resourceType":105,"resourceTypeDesc":106,"sizeBytes":107,"sourceHtmlUrl":108},"LICENSE","许可证",11255,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-misconfigured-azure-storage\u002FLICENSE",{"path":110,"resourceType":111,"resourceTypeDesc":112,"sizeBytes":113,"sourceHtmlUrl":114},"references\u002Fapi-reference.md","REFERENCE","参考文档",2662,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-misconfigured-azure-storage\u002Freferences\u002Fapi-reference.md",{"path":116,"resourceType":117,"resourceTypeDesc":118,"sizeBytes":119,"sourceHtmlUrl":120},"scripts\u002Fagent.py","SCRIPT","脚本",6899,"https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fdetecting-misconfigured-azure-storage\u002Fscripts\u002Fagent.py",[122,152,181,213,243,275],{"skillNo":123,"name":124,"nameZh":125,"description":126,"descriptionZh":127,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":128,"categories":129,"keywords":134,"publishedAt":51},"01M6AGDM3HJXTKXX15ZZ0ZVCJ3","verifying-build-provenance-with-slsa-sigstore","SLSA 构建来源验证","Verifies artifact signatures and SLSA provenance using Sigstore's cosign (verify, verify-attestation, verify-blob-attestation) and slsa-verifier (verify-artifact), enforcing keyless OIDC builder identity and source repo against SLSA Build levels. Use in CI\u002FCD before deploying artifacts, when consuming third-party attestations, establishing a SLSA Build L3 pipeline, or confirming provenance during incident response or admission control.","使用 Sigstore 的 cosign（verify、verify-attestation、verify-blob-attestation）和 slsa-verifier（verify-artifact）验证工件签名和 SLSA 来源（provenance），强制校验 keyless OIDC 构建者身份和源仓库是否符合 SLSA Build 级别。适用于 CI\u002FCD 中部署工件前、消费第三方证明时、建立 SLSA Build L3 管道，或在事件响应或准入控制期间确认来源的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fverifying-build-provenance-with-slsa-sigstore\u002FSKILL.md",[130,131],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":132,"categoryName":133,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C32Q37WAMK06SGMFC02VFP","软件供应链安全",[135,136,137,138,49,48,139,140,46,141,142,143,144,145,146,147,148,149,150,151],"sigstore","provenance","slsa","verifying build provenance with slsa sigstore","incident response","identity","code","artifacts","ci","supply-chain","pipeline","supply-chain-security","t1195","attestation","code-signing","cosign","keyless",{"skillNo":153,"name":154,"nameZh":155,"description":156,"descriptionZh":157,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":158,"categories":159,"keywords":164,"publishedAt":51},"01M6AGDGBPWYVZ2F11GFKJ4HZ9","validating-tpm-measured-boot-attestation","TPM 测量启动验证","Verifies TPM 2.0 measured-boot integrity and remote attestation with tpm2-tools -- reading PCRs (tpm2_pcrread), replaying the boot event log, generating and checking signed quotes (tpm2_quote\u002Ftpm2_checkquote), and sealing secrets to a PCR policy. Use to confirm a system booted trusted firmware\u002Fkernel for Zero Trust device posture, detect boot-chain tampering via PCR drift, or build a golden-value baseline for fleet attestation.","使用 tpm2-tools 验证 TPM 2.0 测量启动（measured boot）的完整性和远程证明：读取 PCR（tpm2_pcrread）、重放启动事件日志、生成并检查签名报价（tpm2_quote\u002Ftpm2_checkquote），以及将机密封印（seal）到 PCR 策略。适用于确认系统已启动可信固件\u002F内核以实现零信任（Zero Trust）设备状态、通过 PCR 漂移检测启动链篡改，或构建黄金值基线用于机群（fleet）证明。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-tpm-measured-boot-attestation\u002FSKILL.md",[160,161],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":162,"categoryName":163,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C89JJEXGGRGHS6XVXDA46K","终端安全加固",[165,148,166,167,49,168,48,46,169,170,171,172,173,174,175,176,177,178,179,180],"boot","TPM","validating tpm measured boot attestation","policy","verification","ZeRO","firmware","Tools","measured-boot","PCR","integrity","secrets","remote-attestation","tpm2-tools","integrity-verification","trusted-computing",{"skillNo":182,"name":183,"nameZh":184,"description":185,"descriptionZh":186,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":187,"categories":188,"keywords":195,"publishedAt":51},"01M6AGDCW0Y4FXZ3362GT1941M","validating-backup-integrity-for-recovery","备份完整性验证","Validates backup integrity through cryptographic hash verification, automated restore testing, corruption detection, and recoverability checks to confirm backups are reliable for disaster recovery and ransomware response. Use before relying on backups for recovery, when building post-backup validation pipelines, auditing backup infrastructure for compliance, or checking immutable\u002Fair-gapped backups for silent corruption or tampering.","通过加密哈希验证、自动化恢复测试、损坏检测和可恢复性检查来验证备份完整性，确认备份对于灾难恢复和勒索软件响应是可靠的。适用于在依赖备份进行恢复之前、构建备份后验证管道、审计备份基础设施以满足合规要求，或检查不可变\u002Fair-gapped（气隙）备份是否存在静默损坏或篡改的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Fvalidating-backup-integrity-for-recovery\u002FSKILL.md",[189,192],{"categoryNo":190,"categoryName":191,"taxonomyType":23,"taxonomyTypeDesc":24},"01M8BQGD4WETX0HM3SM9QKQ15B","SRE 工程师",{"categoryNo":193,"categoryName":194,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BSSTY86MWS6W5GDQWB1ADQ","备份与灾难恢复",[175,196,197,198,199,48,200,201,169,202,203,204,205,206,207,208,209,210,211,212],"backup","recovery","validating backup integrity for recovery","testing","infrastructure","validation","compliance","hash-verification","incident-response","ransomware","cryptocurrency","detection","t1078","t1490","immutable","disaster-recovery","restore-testing",{"skillNo":214,"name":215,"nameZh":216,"description":217,"descriptionZh":218,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":219,"categories":220,"keywords":225,"publishedAt":51},"01M6AGD9GBG2KZ336AE763J3WH","triaging-windows-with-kape","KAPE Windows 取证收集","Runs KAPE (Kroll Artifact Parser and Extractor) to collect targeted forensic artifacts (registry hives, $MFT, event logs, prefetch, browser data) via Targets and parse them with Modules wrapping Eric Zimmerman's EZ Tools (PECmd, MFTECmd, RECmd). Use during early incident containment\u002Ftriage when full disk imaging is impractical but a defensible, parseable Windows artifact set is needed quickly, including at-scale remote collection.","运行 KAPE（Kroll Artifact Parser and Extractor），通过 Targets 收集目标取证工件（注册表配置单元、$MFT、事件日志、prefetch、浏览器数据），并使用封装 Eric Zimmerman 的 EZ Tools（PECmd、MFTECmd、RECmd）的 Modules 进行解析。适用于事件遏制\u002F分诊早期阶段——此时完整磁盘镜像不切实际，但需要快速获得可采信、可解析的 Windows 工件集，包括大规模远程收集。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-windows-with-kape\u002FSKILL.md",[221,222],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":223,"categoryName":224,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8C9JZH3GWXPJ6CQG5P7J48Y","数字取证与电子证据分析",[226,227,228,48,229,230,231,232,233,234,235,41,236,237,238,239,172,240,241,242],"windows","kape","triaging windows with kape","registry","browser","logs","windows-forensics","dfir","mft","mftecmd","prefetch","eric-zimmerman","digital-forensics","SET","collection","pecmd","artifact-collection",{"skillNo":244,"name":245,"nameZh":246,"description":247,"descriptionZh":248,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":249,"categories":250,"keywords":255,"publishedAt":51},"01M6AGD5PW5J4EVZM958WD74ZQ","triaging-vulnerabilities-with-ssvc-framework","SSVC 漏洞优先级分诊","Triages and prioritizes vulnerabilities with CISA's Stakeholder-Specific Vulnerability Categorization (SSVC) decision tree, weighing exploitation status (via the CISA KEV catalog and FIRST EPSS API), technical impact, automatability, and mission prevalence to output Track\u002FTrack*\u002FAttend\u002FAct decisions. Use when prioritizing vulnerability scan results (OpenVAS, Nessus, Qualys) for remediation planning beyond raw CVSS scores.","使用 CISA 的 Stakeholder-Specific Vulnerability Categorization（SSVC，利益相关方特定漏洞分类）决策树对漏洞进行分诊和优先级排序，权衡利用状态（通过 CISA KEV 目录和 FIRST EPSS API）、技术影响、自动化程度和任务普遍性，输出 Track\u002FTrack*\u002FAttend\u002FAct 决策。适用于对漏洞扫描结果（OpenVAS、Nessus、Qualys）进行优先级排序以制定修复计划，而不局限于原始 CVSS 分数的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-vulnerabilities-with-ssvc-framework\u002FSKILL.md",[251,254],{"categoryNo":252,"categoryName":253,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BQV98CYQ7TEW2D1MRQ00TE","安全公告与漏洞管理",{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},[256,257,258,48,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274],"vulnerabilities","framework","triaging vulnerabilities with ssvc framework","status","planning","CISA","vulnerability-management","risk-management","nessus","qualys","openvas","cvss","remediation","risk","vulnerability","api","prioritization","ssvc","decision-tree",{"skillNo":276,"name":277,"nameZh":278,"description":279,"descriptionZh":280,"repositoryFullName":9,"ownerLogin":10,"ownerAvatarUrl":11,"ownerAccountNo":12,"ownerDisplayName":13,"repositoryNo":14,"starsCount":15,"licenseSpdxId":16,"licenseFileUrl":17,"sourceHtmlUrl":281,"categories":282,"keywords":287,"publishedAt":51},"01M6AGD24TTQQM4CXG69E3B9TJ","triaging-security-incident","安全事件初步分诊","Performs initial triage of security incidents using the NIST SP 800-61r3 and SANS PICERL frameworks, classifying incident type, assigning priority by business impact, and routing to the appropriate response team. Use when a SIEM\u002FEDR alert needs human classification, concurrent alerts must be prioritized, or a user report or threat-intel IOC match requires initial incident categorization.","使用 NIST SP 800-61r3 和 SANS PICERL 框架对安全事件进行初步分诊，分类事件类型、按业务影响分配优先级，并路由到相应的响应团队。适用于 SIEM\u002FEDR 告警需要人工分类、并发告警必须确定优先级，或用户报告或威胁情报 IOC 匹配需要初步事件分类的场景。","https:\u002F\u002Fgithub.com\u002Fmukul975\u002FAnthropic-Cybersecurity-Skills\u002Fblob\u002Fmain\u002Fskills\u002Ftriaging-security-incident\u002FSKILL.md",[283,284],{"categoryNo":21,"categoryName":22,"taxonomyType":23,"taxonomyTypeDesc":24},{"categoryNo":285,"categoryName":286,"taxonomyType":28,"taxonomyTypeDesc":29},"01M8BTHYSJPJ500X64JJ5CH06D","安全事件响应与威胁狩猎",[49,288,48,289,290,291,292,293,294,295,296,208,297,209,298,299,300,301,302,303],"triaging security incident","siem","file","ioc","soc","NIST-800-61","NIST","severity","edr","execution","analysis","classification","severity-classification","incident-triage","SANS-PICERL","SOC-operations"]