Skip to content

Enhance ScubaGear to automatically detect if a specific policy would have passed if the conditional access policy was defined in the config #2117

Description

@tkol2022

Prerequisites

  • This issue has an informative and human-readable title.

💡 Summary

The number one question we get related to the Entra baseline is users saying that they failed a ScubaGear policy check even though their conditional access policy is configured exactly as instructed in the baseline document.

9 times out of 10 it is because they have exclusions (users, groups, guest, application) in their conditional access policy and they have not defined those in the configuration file.

This issue proposed some ideas to reduce the occurrence of this problem:

  • Have ScubaGear automatically check if a policy would have passed if the config exclusions were defined.
  • For each policy where ScubaGear detected the scenario in the first bullet, display a note to the user in the PowerShell command output and in the HTML report to make the user aware that they can rectify the problem by defining the exclusions.
  • Put this information in a specific field in the JSON output in a structured way so that CISA can also track the problem in the backend Scuba Analytics.

Motivation and context

The scenario where a user configured a conditional access policy correctly but simply did not put the exclusions in the config file, causes multiple problems:

  1. It causes CISA to get skewed results for policy check Pass rates in Scuba Analytics. Many of the tenants that failed certain policy checks actually configured their policies correctly but as mentioned earlier, they did not properly declare the exclusions in the config.
  2. It causes a bad experience for users because they get really confused. "I am following what you told me to do, but ScubaGear keeps failing me". I lost track of how many times I have heard this.

Implementation notes

  1. To be defined by the assignee.

Acceptance criteria

  • Implementation items above have been completed.

Metadata

Metadata

Assignees

Labels

enhancementThis issue or pull request will add new or improve existing functionality

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions