用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-storage-11-5命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-azure-storage-11.5 |
| description | Ensure 'Versioning' is set to 'Enabled' on Azure Blob Storage storage accounts |
| category | cis-azure-storage |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","storage","blob-storage","versioning"] |
| cis_id | 11.5 |
| cis_benchmark | CIS Microsoft Azure Storage Services Benchmark v1.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Enabling blob versioning allows for the automatic retention of previous versions of objects. With blob versioning enabled, earlier versions of a blob are accessible for data recovery in the event of modifications or deletions.
Blob versioning safeguards data integrity and enables recovery by retaining previous versions of stored objects, facilitating quick restoration from accidental deletion, modification, or malicious activity.
Enabling blob versioning for a storage account creates a new version with each write operation to a blob, which can increase storage costs. To control these costs, a lifecycle management policy can be applied to automatically delete older versions.
Storage accounts.Overview page, on the Properties tab, under Blob service, ensure Versioning is set to Enabled.Run the following command to list storage accounts:
az storage account list
Run the following command to determine if a storage account has containers:
az container list --account-name <storage-account>
For each storage account with containers, ensure that the output of the below command contains "isVersioningEnabled": true:
az storage account blob-service-properties show --account-name <storage-account>
Run the following command to list storage accounts:
Get-AzStorageAccount
Run the following command to create an Azure Storage context for a storage account:
$context = New-AzStorageContext -StorageAccountName <storage-account>
Run the following command to list containers for the storage account:
Get-AzStorageContainer -Context $context
If the storage account has containers, run the following command to get the blob service properties of the storage account:
$account = Get-AzStorageBlobServiceProperty -ResourceGroupName <resource-group> -AccountName <storage-account>
Run the following command to get the blob versioning setting for the storage account:
$account.IsVersioningEnabled
Ensure that the command returns True. Repeat for each storage account.
isVersioningEnabled is true for all storage accounts with blob storage.
Storage accounts.Overview page, on the Properties tab, under Blob service, click Disabled next to Versioning.Tracking, check the box next to Enable versioning for blobs.Keep all versions or Delete versions after (in days).Save.For each storage account requiring remediation, run the following command to enable blob versioning:
az storage account blob-service-properties update --account-name <storage-account> --enable-versioning true
For each storage account requiring remediation, run the following command to enable blob versioning:
Update-AzStorageBlobServiceProperty -ResourceGroupName <resource-group> -StorageAccountName <storage-account> -IsVersioningEnabled $true
Blob versioning is disabled by default on storage accounts.
Level 2 | Automated