用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-storage-17-2-3命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-azure-storage-17.2.3 |
| description | Ensure Default Network Access Rule for Storage Accounts is Set to Deny |
| category | cis-azure-storage |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","storage","storage-accounts","networking","private-endpoints"] |
| cis_id | 17.2.3 |
| cis_benchmark | CIS Microsoft Azure Storage Services Benchmark v1.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Restricting default network access helps to provide a new layer of security, since storage accounts accept connections from clients on any network. To limit access to selected networks, the default action must be changed.
Storage accounts should be configured to deny access to traffic from all networks (including internet traffic). Access can be granted to traffic from specific Azure Virtual networks, allowing a secure network boundary for specific applications to be built. Access can also be granted to public internet IP address ranges to enable connections from specific internet or on-premises clients. When network rules are configured, only applications from allowed networks can access a storage account. When calling from an allowed network, applications continue to require proper authorization (a valid access key or SAS token) to access the storage account.
All allowed networks will need to be whitelisted on each specific network, creating administrative overhead. This may result in loss of network connectivity, so do not turn on for critical resources during business hours.
Security + networking, click Networking.Firewalls and virtual networks heading.Public network access is not set to Enabled from all networks.Ensure defaultAction is not set to Allow.
az storage account list --query '[*].networkRuleSet'
Connect-AzAccount
Set-AzContext -Subscription <subscription ID>
Get-AzStorageAccountNetworkRuleset -ResourceGroupName <resource group> -Name <storage account name> |Select-Object DefaultAction
PowerShell Result - Non-Compliant:
DefaultAction : Allow
PowerShell Result - Compliant:
DefaultAction : Deny
If referencing a digital copy of this Benchmark, clicking a Policy ID will open a link to the associated Policy definition in Azure. If referencing a printed copy, you can search Policy IDs from this URL: https://portal.azure.com/#view/Microsoft_Azure_Policy/PolicyMenuBlade/~/Definitions
34c877ad-507e-4c82-993e-3452a6e0ad3c - Name: 'Storage accounts should restrict network access'2a1a9cdf-e04d-429a-8416-3bfb72a1b26f - Name: 'Storage accounts should restrict network access using virtual network rules'The Public network access setting is not set to Enabled from all networks for each storage account. In Azure CLI, the defaultAction in networkRuleSet is set to Deny. In PowerShell, DefaultAction returns Deny. The Azure Policies 'Storage accounts should restrict network access' and 'Storage accounts should restrict network access using virtual network rules' show compliant.
Storage Accounts.Security + networking, click Networking.Firewalls and virtual networks heading.Public network access to Enabled from selected virtual networks and IP addresses.Save.Use the below command to update default-action to Deny.
az storage account update --name <StorageAccountName> --resource-group <resourceGroupName> --default-action Deny
By default, Storage Accounts will accept connections from clients on any network.
Level 1 | Automated