Skip to content

Commit 2bcae08

Browse files
update (41035) - removing Query 2 as per spec update
1 parent ab864ba commit 2bcae08

2 files changed

Lines changed: 1 addition & 22 deletions

File tree

src/powershell/public/Get-ZtGraphScope.ps1

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
'SecurityIdentitiesSensors.Read.All'
5252
'SecurityIncident.Read.All'
5353
'ThreatHunting.Read.All'
54-
'ThreatSubmission.Read.All'
5554
'UserAuthenticationMethod.Read.All'
5655
)
5756

src/powershell/tests/Test-Assessment.41035.ps1

Lines changed: 1 addition & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -97,17 +97,6 @@ function Test-Assessment-41035 {
9797
$rule = $null
9898
}
9999

100-
# Q2: Reachability probe for the Microsoft Graph email threat submission API.
101-
# Per spec, this is informational only; the check must not depend on Q2 succeeding.
102-
Write-ZtProgress -Activity $activity -Status 'Probing email threat submission API (informational)'
103-
$graphApiReachable = $false
104-
try {
105-
$null = Invoke-ZtGraphRequest -RelativeUri 'security/threatSubmission/emailThreats' -ApiVersion beta -Top 1 -DisablePaging -ErrorAction Stop
106-
$graphApiReachable = $true
107-
}
108-
catch {
109-
Write-PSFMessage "Email threat submission API probe failed (non-blocking): $_" -Tag Test -Level Warning
110-
}
111100
#endregion Data Collection
112101

113102
#region Assessment Logic
@@ -230,24 +219,15 @@ function Test-Assessment-41035 {
230219
$tableRows += "| Report submission rule State | $ruleStateName | Enabled | $ruleStateResult |`n"
231220
$tableRows += "| Report submission rule SentTo | $ruleSentTo | (SOC mailbox address) | $ruleSentToResult |`n"
232221

233-
# Q2 Graph API reachability note (informational — does not affect verdict)
234-
$graphNote = if ($graphApiReachable) {
235-
'> ✅ The Microsoft Graph email threat submission API (/beta/security/threatSubmission/emailThreats) is reachable — SOC tooling can enumerate user-submitted messages programmatically using the ThreatSubmission.Read.All permission.'
236-
}
237-
else {
238-
'> ⚠️ The Microsoft Graph email threat submission API (/beta/security/threatSubmission/emailThreats) could not be reached. This does not affect the check verdict, but SOC tooling that ingests the submission queue via Graph will need the ThreatSubmission.Read.All permission granted.'
239-
}
240-
241222
$formatTemplate = @'
242223
## [User reported settings]({0})
243224
244225
| Setting | Value | Recommended | Result |
245226
| :------ | :---- | :---------- | :----- |
246227
{1}
247-
{2}
248228
'@
249229

250-
$mdInfo = $formatTemplate -f $portalUrl, $tableRows, $graphNote
230+
$mdInfo = $formatTemplate -f $portalUrl, $tableRows
251231
$testResultMarkdown = $testResultMarkdown -replace '%TestResult%', $mdInfo
252232
#endregion Report Generation
253233

0 commit comments

Comments
 (0)