用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-foundations-5-3-5命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 SkillsMP 当前能够提供的文件。
基于 SOC 职业分类
正在显示 SKILL.md
| name | cis-azure-foundations-5.3.5 |
| description | Ensure disabled user accounts do not have read, write, or owner permissions |
| category | cis-azure-foundations |
| version | 5.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","identity","identity-reviews"] |
| cis_id | 5.3.5 |
| cis_benchmark | CIS Microsoft Azure Foundations Benchmark v5.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | ["cis-azure-foundations-5.3.4","cis-azure-foundations-5.3.6"] |
| prerequisites | [] |
| severity_boost | {} |
Ensure that any roles granting read, write, or owner permissions are removed from disabled Azure user accounts.
While an automated assessment procedure exists for this recommendation, the assessment status remains manual. Removing role assignments from disabled user accounts depends on the context and requirements of each organization and environment.
Disabled accounts should not retain access to resources, as this poses a security risk. Removing role assignments mitigates potential unauthorized access and enforces the principle of least privilege.
Ensure disabled accounts are not relied on for break glass or automated processes before removing roles to avoid service disruption.
Microsoft Entra ID.Manage, click Users.Add filter.Account enabled.No.Apply.Display name of a disabled user account.Azure role assignments.Connect-AzureAD
Get-AzureADUser
Run the following command to get a user:
$user = Get-AzureADUser -ObjectId <object-id>
Run the following command to get the AccountEnabled setting for the user:
$user.AccountEnabled
If AccountEnabled is False, run the following command to get the role assignments for the user:
Get-AzRoleAssignment -ObjectId $user.ObjectId
Ensure that no read, write, or owner roles are assigned to the user. Repeat for each user.
No disabled user accounts should have any read, write, or owner role assignments. The PowerShell command Get-AzRoleAssignment should return no results for disabled accounts.
Microsoft Entra ID.Manage, click Users.Add filter.Account enabled.No.Apply.Display name of a disabled user account with read, write, or owner roles assigned.Azure role assignments.Assignments.Remove in the row for the disabled user account.Yes.For each account requiring remediation, run the following command to remove an assigned role:
Remove-AzRoleAssignment -ObjectId $user.ObjectId -RoleDefinitionName <role-definition-name>
Disabled user accounts retain their prior role assignments.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 5.1 Establish and Maintain an Inventory of Accounts | x | x | x |
| v7 | 16.6 Maintain an Inventory of Accounts | x | x |
Level 1 | Manual