用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-storage-8-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-storage-8.2 |
| description | Ensure root squash for NFS file shares is configured |
| category | cis-azure-storage |
| version | 1.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","storage","azure-files","nfs","soft-delete"] |
| cis_id | 8.2 |
| cis_benchmark | CIS Microsoft Azure Storage Services Benchmark v1.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Permissions for NFS file shares are enforced by the client OS rather than by the Azure Files service. Root squash is an administrative security feature in NFS that prevents unauthorized root-level access to the NFS server by client machines. This functionality is an important part of protecting user data and system settings from manipulation by untrusted or compromised clients.
Administrators should enable root squash in environments where multiple users or systems access the NFS share, especially in scenarios where client machines are not fully trusted. By converting root users to anonymous users, root squash ensures that even if a client machine is compromised, the attacker cannot exploit root privileges to access or modify critical files on the NFS server.
There is no additional cost associated with enabling root squash; however, there may be some minor administrative overhead involved in configuring and managing permissions with root squash enabled.
Storage accounts.Data storage, click File shares.Properties.ROOT SQUASH, ensure that Root Squash is selected.Run the following command to list storage accounts:
az storage account list
For each storage account, run the following command to list file shares:
az storage share list --account-name <storage-account>
For each file share with "protocols": [ "NFS" ], ensure that rootSquash is set to RootSquash.
Run the following command to list storage accounts:
Get-AzStorageAccount -ResourceGroupName <resource-group>
For each storage account, run the following command to list file shares:
Get-AzRmStorageShare -ResourceGroupName <resource-group> -StorageAccountName <storage-account>
For each NFS file share, run the following command to get the root squash configuration:
Get-AzRmStorageShare -ResourceGroupName <resource-group> -StorageAccountName <storage-account> -Name <nfs-file-share> | fl -Property RootSquash
Ensure that RootSquash is set to RootSquash.
Root squash is set to RootSquash for all NFS file shares.
Storage accounts.Data storage, click File shares.Properties.ROOT SQUASH, select Root Squash from the drop-down menu.Save.For each NFS file share requiring remediation, run the following command to enable root squash:
az storage share-rm update --resource-group <resource-group> --storage-account <storage-account> --name <nfs-file-share> --root-squash RootSquash
For each NFS file share requiring remediation, run the following command to enable root squash:
Update-AzRmStorageShare -ResourceGroupName <resource-group> -StorageAccountName <storage-account> -Name <nfs-file-share> -RootSquash RootSquash
Root squash is disabled by default on NFS Azure file shares.
There are three root squash settings:
All squash may be appropriate for highly restricted environments where no client-side user (including root) should have specific privileges on the NFS file share.
Level 1 | Automated