Agent-assisted detection rule tuning for Microsoft Defender XDR and Microsoft Sentinel
An agent rule review reads a detection rule's recent incidents and recommends keeping the rule, tuning it or changing something around it. It's advisory: your team validates and applies the change through the Content Management Center, which versions baseline rules and deploys them to the workspaces you choose.
ContraForce platform · Explainer · 1:49 video ·
Chapters
Who this is for
Detection engineers, SOC leads and content admins who look after Microsoft Sentinel and Defender XDR detection rules, for your own organization or across many customer workspaces.
You'll learn
- How one versioned baseline reaches only the workspaces you choose
- What drift means, how it differs from an outdated rule, and the three ways to resolve it
- What an agent rule review reads and what its report tells you
- Where a person approves the change, and what Require change requests does
Key takeaways
- Detection rules are the queries that turn your data into alerts. A Microsoft Sentinel scheduled analytics rule runs a Kusto query at regular intervals and raises an alert when its results pass a threshold. A Microsoft Defender XDR custom detection runs an advanced hunting query on a schedule and can also take response actions. Every workspace you add brings its own rules to keep tuned.
- A Content Management Center repository holds each rule once, with a version history. It deploys only to the workspaces you've added to it, you deploy a rule to some or all of them, and you can roll back to an earlier version when a change turns out to be wrong.
- A rule has drifted when the workspace copy no longer matches the baseline: someone changed it outside ContraForce, for example directly in a vendor console. Outdated is different: the workspace runs an older baseline version that nobody changed, and deploying closes the gap. Coverage shows what the repository last recorded, so scan the workspace before you trust a clean board.
- Read the diff before you resolve drift. Accept drift keeps the local difference and stops flagging it, but the workspace keeps running its own version. Adopt as baseline makes the workspace's version the baseline. Deploy baseline overwrites the workspace copy. In a protected repository, adopting goes through a change request like any other edit.
- Ask your Security Delivery Agent to review a noisy rule and it reads up to 15 of the rule's recent incidents, starting with the last three days and widening to 30 days when fewer are available. It reaches one of five conclusions, and only two of them recommend changing the rule itself. The others recommend a change around the rule, such as an automation rule, conditional-access policy or watchlist, say to keep the rule as it is, or report that the evidence is insufficient.
- That split matches Microsoft's guidance on false positives in Microsoft Sentinel: add an exception with an automation rule without touching the analytics rule, or change the rule's query, ideally against a watchlist so you manage the exception list in one place.
- Each recommendation gives its rationale, the proposed action, its potential detection-coverage risk and a validation plan. For a query change, compare the current and proposed queries inline or side by side. A suggested validation step isn't proof the agent ran that test, so check the change against your own data for both less noise and missed true positives.
- The review never edits, disables, approves or deploys a rule, and Completed only means the review finished. Make the change through your usual Content Management Center process. With Require change requests off, an edit becomes a new baseline version right away. With it on, the edit becomes work in progress and needs an approved, merged change request first. Merging changes the repository, not your workspaces, so you deploy afterwards.
Recap
- Keep each detection rule as one versioned definition in a Content Management Center repository, and deploy it to the workspaces you choose instead of editing it in every console.
- A drifted rule was changed outside ContraForce, so the workspace copy no longer matches the baseline. Scan the workspace, read the diff, then accept the drift, adopt it as the baseline or deploy the baseline over it.
- An agent rule review is advisory: it never edits, approves or deploys a rule. Your team validates the recommendation and makes the change, and with Require change requests on, that change needs an approved, merged change request before it reaches the baseline.
Go deeper on contraforce.com
Sources
- Microsoft Learn, Scheduled analytics rules in Microsoft Sentinel
- Microsoft Learn, Overview of custom detections in Microsoft Defender XDR
- Microsoft Learn, Handle false positives in Microsoft Sentinel
- ContraForce Docs, Agent Rule Reviews
- ContraForce Docs, Content Management Center for Detection Rules
- ContraForce Docs, Detection Rule Repositories
- ContraForce Docs, Import, Version, and Deploy Detection Rules
- ContraForce Docs, Detection Rule Drift and Workspace Coverage
- ContraForce Docs, Detection Rule Change Requests and Approvals
Page text reviewed by the ContraForce team · Published on YouTube · Updated
Continue with Path 1: Run Microsoft security across customer tenants
Path 1 · Step 1 of 4
Least-privilege access to customer tenants: a worksheet for each SOC job
Map each SOC job to a Microsoft access model, the smallest role, a time limit and a removal step, so your access to customer tenants stays least-privilege.
Managed security operations · Checklist
Read · 11 min
Put this lesson to work.
The ContraForce docs have every step, role and setting this lesson describes. Sign in to the portal when you're ready to do it.
