Skip to content

Commit

Permalink
⭐️ Added ReportSubmissionPolicy resources to asses Defender (MS365) (#…
Browse files Browse the repository at this point in the history
…4025)

* Added ReportSubmissionPolicy resources to asses Defender

Signed-off-by: Hossein Rouhani <[email protected]>

* making the code cleaner by seperating the tasks

Signed-off-by: Hossein Rouhani <[email protected]>

* changing the version

Signed-off-by: Hossein Rouhani <[email protected]>

---------

Signed-off-by: Hossein Rouhani <[email protected]>
  • Loading branch information
HRouhani authored May 21, 2024
1 parent 01a3a3d commit 643320b
Show file tree
Hide file tree
Showing 4 changed files with 258 additions and 9 deletions.
22 changes: 22 additions & 0 deletions providers/ms365/resources/ms365.lr
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,8 @@ ms365.exchangeonline {
sharedMailboxes() []ms365.exchangeonline.exoMailbox
// List of Teams protection policies
teamsProtectionPolicies() []ms365.exchangeonline.teamsProtectionPolicy
// List of report submission policies
reportSubmissionPolicies() []ms365.exchangeonline.reportSubmissionPolicy
}

// Teams Protection Policy configuration
Expand All @@ -402,6 +404,26 @@ private ms365.exchangeonline.teamsProtectionPolicy {
isValid bool
}

// Report Submission Policy configuration
private ms365.exchangeonline.reportSubmissionPolicy {
// Whether to report junk to a customized address
reportJunkToCustomizedAddress bool
// Whether to report not junk to a customized address
reportNotJunkToCustomizedAddress bool
// Whether to report phish to a customized address
reportPhishToCustomizedAddress bool
// Addresses to report junk
reportJunkAddresses []string
// Addresses to report not junk
reportNotJunkAddresses []string
// Addresses to report phish
reportPhishAddresses []string
// Whether chat message reporting is enabled
reportChatMessageEnabled bool
// Whether to report chat messages to a customized address
reportChatMessageToCustomizedAddressEnabled bool
}

// Microsoft 365 Exchange Online External Sender
private ms365.exchangeonline.externalSender {
// The identity of the external sender
Expand Down
167 changes: 167 additions & 0 deletions providers/ms365/resources/ms365.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

17 changes: 17 additions & 0 deletions providers/ms365/resources/ms365.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,8 @@ resources:
owaMailboxPolicy: {}
phishFilterPolicy: {}
remoteDomain: {}
reportSubmissionPolicies:
min_mondoo_version: 9.0.0
roleAssignmentPolicy: {}
safeAttachmentPolicy: {}
safeLinksPolicy: {}
Expand Down Expand Up @@ -295,6 +297,21 @@ resources:
platform:
name:
- microsoft365
ms365.exchangeonline.reportSubmissionPolicy:
fields:
reportChatMessageEnabled: {}
reportChatMessageToCustomizedAddressEnabled: {}
reportJunkAddresses: {}
reportJunkToCustomizedAddress: {}
reportNotJunkAddresses: {}
reportNotJunkToCustomizedAddress: {}
reportPhishAddresses: {}
reportPhishToCustomizedAddress: {}
is_private: true
min_mondoo_version: latest
platform:
name:
- microsoft365
ms365.exchangeonline.teamsProtectionPolicy:
fields:
isValid: {}
Expand Down
Loading

0 comments on commit 643320b

Please sign in to comment.