Cis Azure Foundations 5.25
DevOps & Securitycis-azure-foundations-5.25Cis Azure Foundations 5.25 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Ensure 'Subscription leaving/entering Microsoft Entra tenant' is set to 'Permit no one'
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Cloud_Providers/Microsoft_Azure/CIS_Microsoft_Azure_Foundations_Benchmark_v5.0.0/cis-azure-foundations-5.25/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-azure-foundations-5-25, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Ensure 'Subscription leaving/entering Microsoft Entra tenant' is set to 'Permit no one'
Description
Users who are set as subscription owners are able to make administrative changes to the subscriptions and move them into and out of Microsoft Entra ID.
Rationale
Permissions to move subscriptions in and out of a Microsoft Entra tenant must only be given to appropriate administrative personnel. A subscription that is moved into a Microsoft Entra tenant may be within a folder to which other users have elevated permissions. This prevents loss of data or unapproved changes of the objects within by potential bad actors.
Impact
Subscriptions will need to have these settings turned off to be moved.
Audit Procedure
Using Azure Portal
- From the Azure Portal Home select the portal menu
- Select
Subscriptions - In the
Advanced optionsdrop-down menu, selectManage Policies - Ensure
Subscription leaving Microsoft Entra tenantandSubscription entering Microsoft Entra tenantare set toPermit no one
Expected Result
Both Subscription leaving Microsoft Entra tenant and Subscription entering Microsoft Entra tenant should be set to Permit no one.
Remediation
Using Azure Portal
- From the Azure Portal Home select the portal menu
- Select
Subscriptions - In the
Advanced optionsdrop-down menu, selectManage Policies - Set
Subscription leaving Microsoft Entra tenantandSubscription entering Microsoft Entra tenanttoPermit no one - Click
Save changes
Default Value
By default Subscription leaving Microsoft Entra tenant and Subscription entering Microsoft Entra tenant are set to Allow everyone (default).
References
- https://learn.microsoft.com/en-us/azure/cost-management-billing/manage/manage-azure-subscription-policy
- https://learn.microsoft.com/en-us/entra/fundamentals/how-subscriptions-associated-directory
- https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-identity-management#im-2-protect-identity-and-authentication-systems
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 5.4 Restrict Administrator Privileges to Dedicated Administrator Accounts | x | x | x |
| v8 | 6.1 Establish an Access Granting Process | x | x | x |
| v8 | 6.2 Establish an Access Revoking Process | x | x | x |
| v7 | 4.3 Ensure the Use of Dedicated Administrative Accounts | x | x | x |
Profile
Level 2 | Manual