基于 SOC 职业分类
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
直接命令不会经过审查 Prompt;运行前请先检查来源。
npx skills add https://github.com/CyberStrikeus/CyberStrike --skill cis-azure-foundations-5-23命令会保持在同一行。复制前请横向滚动并检查完整内容。
想先保存到本地?可下载 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
| name | cis-azure-foundations-5.23 |
| description | Ensure no custom subscription administrator roles exist |
| category | cis-azure-foundations |
| version | 5.0.0 |
| author | cyberstrike-official |
| tags | ["cis","azure","identity","rbac","custom-roles","least-privilege","subscription"] |
| cis_id | 5.23 |
| cis_benchmark | CIS Microsoft Azure Foundations Benchmark v5.0.0 |
| tech_stack | ["azure"] |
| cwe_ids | [] |
| chains_with | ["cis-azure-foundations-5.24","cis-azure-foundations-5.27"] |
| prerequisites | [] |
| severity_boost | {} |
The principle of least privilege should be followed and only necessary privileges should be assigned instead of allowing full administrative access.
Custom roles in Azure with administrative access can obfuscate the permissions granted and introduce complexity and blind spots to the management of privileged identities. For less mature security programs without regular identity audits, the creation of Custom roles should be avoided entirely. For more mature security programs with regular identity audits, Custom Roles should be audited for use and assignment, used minimally, and the principle of least privilege should be observed when granting permissions.
Subscriptions will need to be handled by Administrators with permissions.
Subscriptions.Access control (IAM).Roles.Type and select Custom role from the drop-down menu.View next to a role.JSON.assignableScopes set to the subscription, and actions set to *.az role definition list --custom-role-only True
Check for entries with assignableScope of the subscription, and an action of *.
Connect-AzAccount
Get-AzRoleDefinition | Where-Object {($_.IsCustom -eq $true) -and ($_.Actions.contains('*'))}
Check the output for AssignableScopes value set to the subscription.
No custom roles should exist with assignableScopes set to the subscription and actions set to *.
Subscriptions.Access control (IAM).Roles.Type and select Custom role from the drop-down menu.Delete.Yes.az role definition list --custom-role-only True
Check for entries with assignableScope of the subscription, and an action of *.
To remove a violating role:
az role definition delete --name <role name>
Note that any role assignments must be removed before a custom role can be deleted. Ensure impact is assessed before deleting a custom role granting subscription administrator privileges.
By default, no custom owner roles are created.
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 5.4 Restrict Administrator Privileges to Dedicated Administrator Accounts | x | x | x |
| v8 | 6.8 Define and Maintain Role-Based Access Control | x | ||
| v7 | 4.1 Maintain Inventory of Administrative Accounts | x | x |
Level 1 | Automated