Control: 1.3 Ensure guest users are reviewed on a monthly basis
Description
Azure AD is extended to include Azure AD B2B collaboration, allowing you to invite people from outside your organization to be guest users in your cloud account and sign in with their own work, school, or social identities. Guest users allow you to share your company's applications and services with users from any other organization, while maintaining control over your own corporate data. Work with external partners, large or small, even if they don't have Azure AD or an IT department. A simple invitation and redemption process lets partners use their own credentials to access your company's resources a guest user.
Guest users in the Azure AD are generally required for collaboration purposes in Office 365, and may also be required for Azure functions in enterprises with multiple Azure tenants, Guest users should be reviewed on a regular basis, at least annually, Guest users should not be granted administrative roles where possible.
Guest users are typically added outside your employee on-boarding/off-boarding process and could potentially be overlooked indefinitely leading to a potential vulnerability. Guest users should be review on a monthly basis to ensure that inactive and unneeded accounts are removed.
Remediation
From Console
- Log in to Azure Active Directory
- Go to
Users
andGroups
- Go to
All Users
- Click on Show drop down and select
Guest users
only - Delete all
Guest
users that are no longer required or are inactive.
It is good practice to use a dynamic group to manage guest users. To create the dynamic group:
- Navigate to the
Active Directory
blade in the Azure Portal - Select the
Groups
item - Create
new
- Type of
dynamic
- Use the following dynamic selection rule. "(user.userType -eq "Guest")"
- Once the group has been created, select access reviews option and create a new access review with a period of monthly and send to relevant administrators for review.
Usage
Run the control in your terminal:
powerpipe control run azure_compliance.control.cis_v140_1_3
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run azure_compliance.control.cis_v140_1_3 --share
SQL
This control uses a named query:
ad_guest_user_reviewed_monthly