用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-compute-20-4命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
正在显示 SKILL.md
macOS post-exploitation for credential harvesting, DTrace monitoring, TCC bypass, and stealth operations via native tools
Windows userland post-exploitation for credential harvesting, monitoring, AMSI/ETW bypass, and stealth operations
Kubernetes post-exploitation for container escape, secret extraction, RBAC abuse, and cluster persistence
基于 SOC 职业分类
| name | cis-azure-compute-20.4 |
| description | Ensure that 'Disk Network Access' is NOT set to 'Enable public access from all networks' |
| category | cis-azure-compute |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","virtual-machines","vm","disks","encryption"] |
| cis_id | 20.4 |
| cis_benchmark | CIS Microsoft Azure Compute Services Benchmark v2.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Virtual Machine Disks and snapshots can be configured to allow access from different network resources.
The setting 'Enable public access from all networks' is, in many cases, an overly permissive setting on Virtual Machine Disks that presents atypical attack, data infiltration, and data exfiltration vectors. If a disk to network connection is required, the preferred setting is to 'Disable public access and enable private access.'
The setting 'Disable public access and enable private access' will require configuring a private link (URL in references below).
The setting 'Disable public and private access' is most secure and preferred where disk network access is not needed.
Part A. Select the Virtual Machine to Evaluate
Virtual Machines service.Part B. Evaluate each Virtual Machine Disk individually
Settings menu item and click Disks.Settings menu item, and click Networking.Ensure that Network access is NOT set to Enable public access from all networks.
Repeat Part B for each Disk attached to a VM. Repeat Parts A and B to evaluate all Disks in all VMs.
For each managed disk, run the following PowerShell command:
Get-AzDisk -ResourceGroupName '<resource group name>' -DiskName '<disk name>'
Ensure the PublicNetworkAccess setting is Disabled and the NetworkAccessPolicy is set to AllowPrivate or DenyAll.
For each managed disk, run the following command:
az disk show --disk-name '<disk name>' --resource-group '<resource group name>'
Ensure the publicNetworkAccess setting is set to and the setting is set to or .
DisablednetworkAccessPolicyAllowPrivateDenyAllAll VM disks should have publicNetworkAccess set to Disabled and networkAccessPolicy set to either AllowPrivate or DenyAll.
Part A. Select the Virtual Machine to Remediate
Virtual Machines service.Part B. Remediate each Virtual Machine Disk individually
Settings menu item and click Disks.Settings menu item, and click Networking.Under Network access, select the radio button for either:
Repeat Part B for each Disk attached to a VM. Repeat Parts A and B to remediate all Disks in all VMs.
To disable PublicNetworkAccess and to set a DenyAll setting for the disk's NetworkAccessPolicy for each managed disk, run the following command:
$disk = Get-AzDisk -ResourceGroupName '<resource group name>' -DiskName '<disk name>'
$disk.NetworkAccessPolicy = 'DenyAll'
$disk.PublicNetworkAccess = 'Disabled'
Update-AzDisk -ResourceGroup '<resource group name>' -DiskName $disk.Name -Disk $disk
To disable PublicNetworkAccess and to set an AllowPrivate setting for the disk's NetworkAccessPolicy for each managed disk, run the following command:
$disk = Get-AzDisk -ResourceGroupName '<resource group name>' -DiskName '<disk name>'
$disk.NetworkAccessPolicy = 'AllowPrivate'
$disk.PublicNetworkAccess = 'Disabled'
$disk.DiskAccessId = '/subscriptions/<subscription ID>/resourceGroups/<resource group name>/providers/Microsoft.Compute/diskAccesses/<private disk access name>'
Update-AzDisk -ResourceGroup '<resource group name>' -DiskName $disk.Name -Disk $disk
To configure a disk to allow private access only, run the following command making sure you have the Disk Access ID from a private disk access end point.
az disk update --name <managed disk name> --resource-group <resource group name> --network-access-policy AllowPrivate --disk-access <disk access ID>
To completely disable public and private access for a disk, run the following command (still in preview) for each disk:
az disk update --name <managed disk name> --resource-group <resource group name> --public-network-access Disabled --network-access-policy DenyAll
By default, Disk Network access is set to Enable public access from all networks.
Level 1 | Automated