8000 CIS.M365.2.1.2 Check default rule instead of rule named 'default' · Issue #939 · maester365/maester · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
CIS.M365.2.1.2 Check default rule instead of rule named 'default' #939
Open
@cstaubli

Description

@cstaubli

Hi @merill @NZLostboy

This is a similar bug to #859

Check CIS.M365.2.1.2 checks for a policy name 'default' instead of the active, default one (file Test-MtCisAttachmentFilter.ps1):

# We grab the default policy as that is what CIS checks
$policy = $policies | Where-Object { $_.Name -eq 'Default' }

This only checks default Microsoft policy, which at least in my tenats have 'EnableFileFilter' disabled. Wouldn't it make more sense to check the actual default policy like:

# We grab the default policy as that is what CIS checks
$policy = $policies | Where-Object { $_.IsDefault -eq $true}

Environment

Maester-Version: 1.1.2
PS-Version: 7.5.1

Kind regards
Christian

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0