用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-compute-15-2命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
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 职业分类
正在显示 SKILL.md
| name | cis-azure-compute-15.2 |
| description | Ensure Batch pools disk encryption is set enabled |
| category | cis-azure-compute |
| version | 2.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","batch"] |
| cis_id | 15.2 |
| cis_benchmark | CIS Microsoft Azure Compute Services Benchmark v2.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Azure Batch pools must have disk encryption enabled to protect data at rest on both OS and temporary disks, using Azure-managed encryption keys by default.
Enabling disk encryption meets compliance requirements, follows security best practices, and safeguards against unauthorized access to cached data and task outputs stored on VM disks.
This ensures automatic encryption with minimal performance impact, though it requires pool recreation and is unsupported on Basic A-series VMs.
Batch AccountsFor each Batch account perform the following:
Features section then click on PoolsConfiguration section, check Disk EncryptionIf the pool is encrypted, it should display "OS disk" and/or "Temporary disk" encryption enabled.
Run the following commands:
# List all pools and their encryption status
az batch pool list \
--account-name <batch-account-name> \
--query "[].{id:id, encryption:deploymentConfiguration.virtualMachineConfiguration.diskEncryptionConfiguration}" \
--output table
Expected Output: "OsDisk" and/or "TemporaryDisk" should be listed under encryption.targets.
Run the following command:
# Get Batch account context
$batchContext = Get-AzBatchAccount -AccountName "<batch-account-name>"
# List all pools and check encryption
Get-AzBatchPool -BatchContext $batchContext | ForEach-Object {
$pool = $_
$encryptionConfig = $pool.DeploymentConfiguration.VirtualMachineConfiguration.DiskEncryptionConfiguration
[PSCustomObject]@{
PoolId = $pool.Id
OsDiskEncrypted = $encryptionConfig.Targets -contains "OsDisk"
TempDiskEncrypted = $encryptionConfig.Targets -contains "TemporaryDisk"
}
}
Expected Output: OsDiskEncrypted and TempDiskEncrypted should be True.
All Batch pools should have disk encryption enabled with "OsDisk" and/or "TemporaryDisk" listed as encryption targets.
NOTE: Encrypted pools must be created as replacements for unencrypted pools. Please ensure that necessary precautions are taken to backup and restore data from persistent disk pools.
Azure Batch accountsPools in the left menuCreate new poolAdvanced settings, enable Disk encryption and select OS disk or All disksCreate to deploy the encrypted poolRepeat steps 4-8 for each unencrypted pool.
config=$(az batch pool show --pool-id <pool-name> --query "{vmSize:vmSize,image:virtualMachineConfiguration.imageReference,nodeCount:targetDedicatedNodes}")
az batch pool create \
--id "<pool-name>-encrypted" \
--vm-size $(jq -r '.vmSize' <<< "$config") \
--image-reference "$(jq -r '.image.publisher + ":" + .image.offer + ":" + .image.sku + ":" + .image.version' <<< "$config")" \
--node-count $(jq -r '.nodeCount' <<< "$config") \
--disk-encryption-target OsDisk
az batch pool resize --pool-id <pool-name> --target-dedicated-nodes 0
$pool = Get-AzBatchPool -Id "<pool-name>" -BatchContext $context
$newConfig = New-Object Microsoft.Azure.Commands.Batch.Models.PSPoolConfiguration
$newConfig.VirtualMachineConfiguration = $pool.VirtualMachineConfiguration.Clone()
$newConfig.VirtualMachineConfiguration.DiskEncryptionConfiguration = New-Object Microsoft.Azure.Commands.Batch.Models.PSDiskEncryptionConfiguration
$newConfig.VirtualMachineConfiguration.DiskEncryptionConfiguration.Targets = "OsDisk"
New-AzBatchPool -Id "<pool-name>-encrypted" -PoolConfiguration $newConfig -BatchContext $context
Set-AzBatchPool -Id "<pool-name>" -TargetDedicatedComputeNodes 0 -BatchContext $context
Disk encryption is disabled by default for new Azure Batch pools.
Level 1 | Automated