Infrastructure

Microsoft Defender for Cloud: validate a suppression rule before hiding alerts

A production runbook for simulating, bounding and observing a Defender for Cloud suppression rule, then choosing activation, hold or rollback without losing the security signal.

14 Oct 2026 azuredefender-for-cloudsecurityalertssuppressionkqllog-analyticsobservabilityautomationrunbookrollbackproduction

A Defender for Cloud alert fires every night when an approved vulnerability scanner runs. The activity is expected, on-call engineers no longer investigate it, and the noise eventually hides genuinely new alerts. The tempting response is to suppress that alert type across the subscription.

The running case is an Azure platform where the same alert type can still reveal unauthorized activity on other resources. The objective is not to make the queue quiet. It is to prove a narrow, observable and temporary exception, then choose activation, source remediation or rejection of the rule.

Freeze the signal before filtering it

Start with actual alert instances. Preserve the alert type identifier, severity, affected resources, entities, timing, status and downstream automation. A display title is not enough: two alerts that look alike can carry different entities or scopes.

yaml 01-suppression-contract.yml
candidate:
alert_type: <stable-alert-type>
expected_entity: scanner-prod-01
expected_resources:
  - /subscriptions/<sub>/resourceGroups/rg-scan-prod/*
expected_window_utc: "01:00-02:00"
owner: security-platform
change_id: CHG-4821

must_remain_visible:
- same alert type outside rg-scan-prod
- unexpected source or identity
- severity escalation
- activity outside the approved window

downstream:
- on-call notification
- sentinel incident creation
- workflow automation
- ticket enrichment

expiry_utc: 2026-10-21T02:30:00Z
rollback_owner: secops-oncall

Validate the signal quality as well. Repeated activity is not automatically benign: the scanner may use a new identity, exceed its window, touch an excluded resource or become compromised. If the team cannot explain the activity with independent evidence, there is no suppression case yet.

Measure the SecurityAlert baseline

Continuous export to Log Analytics provides an operational view in SecurityAlert. First confirm that export covers the expected subscriptions and severities. An empty query can mean the wrong destination, a short time window or incomplete export; it does not prove the absence of alerts.

kusto 02-alert-baseline.kql
let Start = ago(14d);
let CandidateType = "<stable-alert-type>";
SecurityAlert
| where TimeGenerated >= Start
| where ProductName has "Azure Security Center"
| where AlertType == CandidateType
| extend EntityList = todynamic(Entities),
       Properties = todynamic(ExtendedProperties)
| summarize Alerts=count(),
          Resources=dcount(ResourceId),
          Severities=make_set(AlertSeverity, 10),
          SampleIds=make_set(SystemAlertId, 10)
by ResourceId, bin(TimeGenerated, 1h)
| order by TimeGenerated asc

Adapt the columns to the workspace’s actual schema. The goal is to count instances that the candidate rule would have matched and alerts that look similar but do not belong to the exception. Preserve both sets: the first measures removed noise, while the second becomes the negative control.

Simulate the narrowest conditions

Defender for Cloud can bound a rule by alert type and entity conditions. Use simulation before enabling it. Begin with one alert type, one canary subscription and one stable entity. Do not choose All to compensate for incomplete classification.

Simulation should produce three lists: expected alerts that match, expected alerts that do not match, and unexpected alerts that match. The third is the critical list. One out-of-scope critical resource is enough to stop promotion.

yaml 03-simulation-matrix.yml
cases:
- name: approved_scanner_in_window
  resource: rg-scan-prod/vm-scan-01
  entity: scanner-prod-01
  safe_to_suppress: true

- name: approved_scanner_wrong_resource_group
  resource: rg-payments-prod/vm-api-02
  entity: scanner-prod-01
  safe_to_suppress: false

- name: unknown_identity_same_alert_type
  resource: rg-scan-prod/vm-scan-01
  entity: unknown-host
  safe_to_suppress: false

- name: severity_escalation
  resource: rg-scan-prod/vm-scan-01
  severity: High
  safe_to_suppress: false

promotion_requires:
- every simulated match is marked safe_to_suppress
- negative controls stay visible
- downstream consumers are inventoried
- expiry and rollback are approved

If the available entity conditions cannot exclude cases marked safe_to_suppress: false, fix the source or enrich the detection path. A broad rule cannot substitute for an operable identity, and a documented time window does not automatically become a condition enforced by Defender.

Canary without breaking automation

Enable the rule at the smallest useful scope first, with a short expiry. A rule applied to a management group through Azure Policy changes the risk: it can reach new subscriptions without local review. Keep the first canary on a known inventory and verify propagation before expanding.

When an alert matches an active rule, its status becomes Dismissed. It remains available in the alert list, but it leaves active views and no longer triggers notifications. Test the entire path, not only the Defender page: active view, history, Sentinel connector, Event Hub, Logic App, ticketing and on-call metrics as applicable to your architecture.

Do not generate hostile activity in production to test the rule. Use a controlled new occurrence of the already approved behavior, or observe its next scheduled cycle. The canary must include a negative control that stays visible at the same time.

Operate the rule as a security change

During the canary, correlate Dismissed occurrences with the contract, scanner executions and exported alerts. Look primarily for drift: a new resource, missing entity, unusual time, rising volume or an expected out-of-scope alert that never appears.

Add an independent configuration control. The active rules, scopes, alert types, conditions, owners and expiry dates should be exportable and compared with a versioned baseline. A rule without an expiry or owner is detection debt, even when its first match was justified.

The suppression must also appear in the incident runbook. An analyst who does not know about the rule can interpret falling alert volume as recovery. Record the change in the ticket, operational dashboard and on-call handover.

Decide activation, hold or rollback

Promote only when every simulated and observed match is explained, negative controls remain active, and no required downstream consumer loses its event. Expand by proven resource or subscription, never directly to the management group for convenience.

Keep simulating when the noise is real but entities cannot reliably separate approved and suspicious activity. Fix the scanner or source automation when its behavior can become less noisy without weakening detection.

Roll back by disabling or deleting the rule as soon as an unexpected match appears, a negative control disappears or a downstream workflow stops. Then confirm that a new unsuppressed occurrence becomes active and triggers the expected path.

Rollback has an important limit: deleting the rule does not change alerts already marked Dismissed. Reopen or reprocess those occurrences according to your procedure, and preserve their SystemAlertId values in the incident record. Do not declare rollback complete because the rule is gone.

Conclusion

A Defender for Cloud suppression rule changes the detection system; it is not a convenience setting. Treat it with the same evidence standard as a firewall rule: exact scope, simulation, canary, negative controls, expiry and rollback.

The production decision remains simple: enable a bounded exception, keep simulating, repair the noisy source, or remove the rule and process the hidden alerts. Success is not a quieter queue. It is a queue where every silence remains explainable.