Skip to content

SecOps - 41207 - Active analytics rules are configured in Microsoft Sentinel to detect threats#1342

Open
aahmed-spec wants to merge 1 commit into
devfrom
test-41207
Open

SecOps - 41207 - Active analytics rules are configured in Microsoft Sentinel to detect threats#1342
aahmed-spec wants to merge 1 commit into
devfrom
test-41207

Conversation

@aahmed-spec

Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new Zero Trust Assessment test (ID 41207) to evaluate whether Microsoft Sentinel workspaces have active, actionable analytics rules enabled (excluding “Fusion-only” as compliant), and provides accompanying end-user remediation guidance.

Changes:

  • Introduces Test-Assessment-41207 PowerShell test to enumerate Sentinel-onboarded workspaces and evaluate enabled analytics rule kinds.
  • Generates per-workspace result details (counts, rule kinds, MITRE tactics) and summary markdown output.
  • Adds the corresponding markdown description/remediation file for Test 41207.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/powershell/tests/Test-Assessment.41207.ps1 New assessment test to query Sentinel alert rules per onboarded workspace and emit pass/fail/investigate results with a markdown report.
src/powershell/tests/Test-Assessment.41207.md New end-user explanation/remediation content for Test 41207, including a %TestResult% placeholder.

Comment thread src/powershell/tests/Test-Assessment.41207.ps1
Comment thread src/powershell/tests/Test-Assessment.41207.ps1
Comment thread src/powershell/tests/Test-Assessment.41207.md
@aahmed-spec aahmed-spec added the ready for review PR is ready for review and merging label Jun 23, 2026
@aahmed-spec aahmed-spec requested a review from alexandair June 23, 2026 12:48
@aahmed-spec aahmed-spec marked this pull request as ready for review June 23, 2026 12:48

@alexandair alexandair left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@aahmed-spec Please, address my feedback.

$investigateItems = @($workspaceResults | Where-Object { $_.RowStatus -eq 'Investigate' })
$failedItems = @($workspaceResults | Where-Object { $_.RowStatus -eq 'Fail' })

$passed = $passedItems.Count -gt 0

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall status is $passed = $passedItems.Count -gt 0 — the test passes if any onboarded workspace has an actionable rule. In a tenant with several Sentinel workspaces where only one is configured, the others (zero rules / Fusion-only) are reduced to table rows while the tenant scores ✅. The spec's evaluation logic is written strictly per-workspace and is silent on cross-workspace aggregation, and the .ps1 synopsis documents the "at least one" choice — so this is a deliberate interpretation rather than a bug.

Please confirm with the spec author that "any passing workspace ⇒ Pass" is intended; an "all onboarded workspaces must have ≥1 actionable rule" interpretation is equally defensible and stricter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready for review PR is ready for review and merging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants