NIST SP 800-53 Rev. 5 · Configuration Management

CM-6 / CM-3 on Microsoft Sentinel

Configuration deviation without an approved change — a published KQL query you can run against Microsoft Sentinel / Log Analytics, with the evidence it needs, the settings you decide, and what a result does and does not establish.

Why this matters

A security setting quietly changed with no approval behind it

Organizations agree a standard configuration and a process for changing it. Under time pressure the setting gets changed directly and the paperwork never follows, and the change is indistinguishable from one that was properly approved. Many changes are entirely legitimate, so reporting every change produces a list nobody reads.

Why this check earns its place. It reports only changes with no approval record behind them, which is a far shorter and far more useful list than every change that occurred.

What it reads
The organization's current settings, compared against its agreed standard and its own record of approved changes.
What it reports
Settings that differ from the agreed standard with no matching approval on record.

See related public disclosures on the Signals page →

ControlCM-6 / CM-3 — Configuration Settings / Configuration Change Control
PlatformMicrosoft Sentinel (KQL)
SeverityMedium
ValidationNot tenant-validated

What this finds

Security-relevant configuration differs from the approved baseline with no matching approved change record.

The requirement

The organization must establish and document configuration settings that reflect the most restrictive mode consistent with operational requirements, identify and document any deviations, and approve and control changes under configuration change control.

NIST SP 800-53 Rev. 5 — CM-6 (Configuration Settings) and CM-3 (Configuration Change Control).

NIST requires documented settings and controlled change. The approved baseline values, in-scope resources, the tolerance window for matching a change to an approval, and pre-authorized automation identities are all organization-defined.

How this maps to the CISA performance goals

The Cross-Sector Cybersecurity Performance Goals are a voluntary baseline published by CISA — the U.S. federal agency for critical-infrastructure cybersecurity — written for organizations too small to employ security staff. This control speaks to:

  • 3.N — Establish change management processes
    The goal is a change management process; the pack finds configuration that moved without an approved change.
  • 3.P — Maintain hardware & software approval process (partial — see note)
    Touches the approval process for what runs, but the pack checks configuration drift rather than the software approval list.

See the full coverage map, including the goals no query can answer →

Evidence this query needs

Change approval records change_approvals.csv

Lets a configuration deviation be matched to an authorisation. Without it, every drift event looks unauthorised — which is both wrong and unusable in volume.

Minimum fields: ticket_id, resource_id, approved_at

A ticket, a resource, and an approval time are enough to correlate. Adding the implementation window is what turns a coarse ±24-hour match into a precise one.

The query

Published as cm-6-config-deviation.azure.kql. Reads AzureActivity, ChangeTickets_CL (supplied). Requires: Log Analytics Reader.

Before this returns anything, AzureActivity has to be reaching Microsoft Sentinel / Log Analytics, and ChangeTickets_CL (supplied) has to be landed there. If not, the query reports nothing found — which looks exactly like nothing wrong. What has to be switched on first →

// CM-6 / CM-3 -- control-plane changes with no matching approval
let Lookback = 14d;
let Approvals =
    ChangeTickets_CL
    | where TimeGenerated > ago(Lookback)
    | project ResourceKey  = tolower(ResourceId_s),
              TicketId     = TicketId_s,
              ApprovedAt   = ApprovedAt_t,
              WindowStart  = column_ifexists("WindowStart_t", datetime(null)),
              WindowEnd    = column_ifexists("WindowEnd_t",   datetime(null));
AzureActivity
| where TimeGenerated > ago(Lookback)
| where ActivityStatusValue =~ "Success"
| where OperationNameValue endswith "/write"
     or OperationNameValue endswith "/delete"
| project ChangeTime = TimeGenerated, ResourceKey = tolower(ResourceId),
          OperationNameValue, Caller, CorrelationId,
          SourceSystem = "Azure Resource Manager"
| join kind=leftouter Approvals on ResourceKey
| extend InWindow = iff(isnotnull(WindowStart) and isnotnull(WindowEnd),
                        ChangeTime between (WindowStart .. WindowEnd),
                        abs(datetime_diff('hour', ChangeTime, ApprovedAt)) <= 24)
| where isempty(TicketId) or InWindow == false
| project ChangeTime, ResourceKey, OperationNameValue, Caller,
          TicketId, ApprovedAt, InWindow, CorrelationId, SourceSystem
| order by ChangeTime desc

Open this pack on Microsoft Sentinel to adjust the settings and download it →

The interactive version opens on Microsoft Sentinel — the platform on this page — even if your environment profile does not list it.

Settings you decide

NIST states the objective and leaves these to your organization. The interactive version of this pack applies them to the query for you.

Review window (days) (default 14)
How far back to compare control-plane changes against approvals.
Limit to specific resources (optional)
Paste resource identifiers, one per line.

Running it continuously

Sentinel scheduled analytics rule

Rule type:        Scheduled query rule
Run frequency:    Every 4 hours
Lookup period:    Last 14 days
Trigger:          Number of query results > 0
Entity mapping:   Account -> Caller | AzureResource -> ResourceKey
Severity:         Medium
Incident:         Create incident, group by AzureResource
Suppression:      4 hours per resource
Tuning note:      Exclude pre-authorized automation identities first

Noisy before tuning — broad write-event collection catches a great deal of legitimate automation. Excluding pre-authorized service principals is the first tuning step, and that allowlist becomes a reviewable artifact in its own right.

What a result does not prove

An unmatched deviation is not automatically unauthorized or harmful. Approval evidence usually lives outside the cloud platform, and correlation depends entirely on the completeness of the change feed.

Validation status for this platform: Not tenant-validated. Structure, query generation, and preflight are covered by the project's automated test suites. This pack has not been executed against a live tenant, account, or index. Validate it in a non-production scope before relying on any result.

Before you act on a result

  • Does an approved change exist outside the matching window or in another system?
  • Was the change made by a pre-authorized automation identity?
  • Is there an approved, current exception for this resource and setting?
  • Was post-change validation required, and was it completed?

Common questions

How do I check for configuration deviation without an approved change in Microsoft Sentinel?
Run the published KQL query on this page against Microsoft Sentinel / Log Analytics. It reads AzureActivity, ChangeTickets_CL (supplied) and reports: Security-relevant configuration differs from the approved baseline with no matching approved change record.
What permissions are needed to run this Microsoft Sentinel query?
Log Analytics Reader.
What evidence does CM-6 / CM-3 need that Microsoft Sentinel cannot produce?
Change approval records (change_approvals.csv). Lets a configuration deviation be matched to an authorisation. Without it, every drift event looks unauthorised — which is both wrong and unusable in volume. At minimum it must carry: ticket_id, resource_id, approved_at.
Does a result from this query mean the control has failed?
An unmatched deviation is not automatically unauthorized or harmful. Approval evidence usually lives outside the cloud platform, and correlation depends entirely on the completeness of the change feed.

Terms used on this page

NIST SP 800-53the U.S. federal catalogue of security requirements
The catalogue of security and privacy requirements published by the National Institute of Standards and Technology, a U.S. federal agency. U.S. government systems are measured against it, and many private organizations adopt it voluntarily. Each requirement has an identifier such as AC-2. Official source →
CISACybersecurity and Infrastructure Security Agency
The U.S. federal agency responsible for national critical-infrastructure cybersecurity. Its publications are works of the U.S. government and are free to use. Official source →
KQLKusto Query Language
The language used to ask questions of data held in Microsoft Sentinel. A query written in it is text, like a spreadsheet formula, and can be read before it is run.
CPGCross-Sector Cybersecurity Performance Goals
A voluntary baseline of security practices published by the U.S. Cybersecurity and Infrastructure Security Agency, written specifically for organizations too small to employ security staff. It is a short, plainly written starting list rather than a full standard. Official source →
not tenant-validatednever executed against real data
The check has passed the project's automated tests for structure and syntax, but has never been run against real data anywhere. Test it in a safe scope before relying on any result.

Every term this project uses →

The same control on other platforms