Control: 6.25 Ensure that 'Subscription leaving Microsoft Entra tenant' and 'Subscription 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.
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.
Remediation
From 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).
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v400_6_25Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v400_6_25 --shareSQL
This control uses a named query:
select  id as resource,  'info' as status,  'Manual verification required.' as reason,  display_name as subscriptionfrom  azure_subscription;