Add: MT.1181 Check if a Conditional Access policy is present that blocks high agent risk signins#1809
Open
ExeqZ wants to merge 8 commits into
Open
Add: MT.1181 Check if a Conditional Access policy is present that blocks high agent risk signins#1809ExeqZ wants to merge 8 commits into
ExeqZ wants to merge 8 commits into
Conversation
…lable which blocks agents with high agent risk
Up to standards ✅🟢 Issues
|
SamErde
reviewed
May 30, 2026
SamErde
reviewed
May 30, 2026
SamErde
reviewed
May 30, 2026
| param () | ||
|
|
||
| try { | ||
| $policies = Get-MtConditionalAccessPolicy | Where-Object { $_.state -eq 'enabled'} |
Contributor
There was a problem hiding this comment.
@merill, do we have a function that gets all CA policies once in a cache so each CA test doesn't need to pull them all again?
SamErde
reviewed
May 30, 2026
Cleared unused lines
fixing files according to Sam's feedback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Checks whether your tenant has at least one enabled Conditional Access policy that blocks agent identities detected as high risk.
Files
powershell/public/maester/entra/Get-MtConditionalAccessPolicy.ps1
Validation
PowerShell parser: clean
PSScriptAnalyzer (Warning + Error): 0 issues
Additional Information
https://learn.microsoft.com/en-us/entra/identity/conditional-access/policy-agent-block-high-risk