feat: Check DMARC for Entra registered managed and verified domains (MT.1177)#1797
Open
blindzero wants to merge 34 commits into
Open
feat: Check DMARC for Entra registered managed and verified domains (MT.1177)#1797blindzero wants to merge 34 commits into
blindzero wants to merge 34 commits into
Conversation
… avoid false positives with MD double newline fix
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…ith second and third level domain tests (DMARC)
…void second / third level domain issues
…with other DMARC tests from CISA
Up to standards ✅🟢 Issues
|
…g with public suffixes after label count 1 return for speed
…ty with flexible severity based on pct or policy result
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
Existing DMARC from CISA run against Exchange, but not against Entra registered domains.
Following recommendations (e.g. https://www.ncsc.gov.uk/blog-post/protecting-parked-domains) this should be applied as well to all Entra registered domains (if verified and managed).
Added MT.1177 -
Test-MtDomainsDmarcRecordMaturityCombining a dynamic test approach in just on test, that
Creates output table for all registered, managed and verified domains in Entra, total test severity is using max severity found in the results.
Closes #1739
✅ Checks
/powershell/tests/pester.ps1locally.ℹ️ Additional Information
Adding
Get-MtRegistrableDomain.ps1helper as other DMARC checks also suffer from issue on multi-level domains (e.g. domain.co.uk) based on pure regex. Added a powershell assets file with the public suffix list from Mozilla and a helper that checks a domain and gives back the registerable part.E.g.
mail.domain.co.uk=domain.co.ukdomain.co.uk=domain.co.ukdomain.com=domain.comHowever, based on the scope of this issue / PR I am not touching other existing DMARC / domain checks to use
Get-MtRegistrableDomain