Policy: Azure > CIS v3.0 > 02 - Identity > 02.02 - Conditional Access > 02.02.03 - Ensure that an exclusionary Device code flow policy is considered > Attestation
From Azure Portal
Part 1 of 2 - Create the policy and enable it in Report-only mode. 1. From Azure Home open the portal menu in the top left and select Microsoft Entra ID. 2. Scroll down in the menu on the left and select Security. 3. Select on the left side Conditional Access. 4. Select Policies. 5. Click the + New policy button, then: 6. Provide a name for the policy. 7. Under Assignments, select Users then: - Under Include, select All users - Under Exclude, check Users and groups and only select emergency access accounts 8. Under Assignments, select Target resources then: - Under Include, select All cloud apps - Leave Exclude blank unless you have a well defined exception 9. Under Conditions > Authentication Flows, set Configure to Yes then: - Select Device code flow - Select Done 10. Under Access Controls > Grant, select Block Access. 11. Set Enable policy to Report-only. 12. Click Create.
Allow some time to pass to ensure the sign-in logs capture relevant conditional access events. These events will need to be reviewed to determine if additional considerations are necessary for your organization (e.g. many legitimate use cases of device code authentication are observed).
NOTE: The policy is not yet 'live,' since Report-only is being used to audit the effect of the policy.
Part 2 of 2 - Confirm that the policy is not blocking access that should be granted, then toggle to On. 1. With your policy now in report-only mode, return to the Microsoft Entra blade and click on Sign-in logs. 2. Review the recent sign-in events - click an event then review the event details (specifically the Report-only tab) to ensure: - The sign-in event you're reviewing occurred after turning on the policy in report-only mode - The policy name from step 6 above is listed in the Policy Name column - The Result column for the new policy shows that the policy was Not applied (indicating the device code authentication flow was not blocked) 3. If the above conditions are present, navigate back to the policy name in Conditional Access and open it. 4. Toggle the policy from Report-only to On. 5. Click Save.
Once verified, enter the date that this attestation expires. Note that the date can not be further in the future than is specified in report level Maximum Attestation Duration policy. Set to a blank value to clear the attestation.
Targets
This policy targets the following resource types:
Primary Policy
This policy is used with the following primary policy:
Policy Specification
Schema Type |
|
---|
Category
In Your Workspace
Developers
- tmod:@turbot/cis#/control/categories/v071204
- tmod:@turbot/azure-cisv3-0#/policy/types/r020203Attestation
- turbot graphql policy-type --id "tmod:@turbot/azure-cisv3-0#/policy/types/r020203Attestation"
- turbot graphql policy-settings --filter "policyTypeId:tmod:@turbot/azure-cisv3-0#/policy/types/r020203Attestation"
Get Policy TypeGet Policy Settings