Ways to add a rule
Import
Bring in rules already running in a Sentinel or Defender workspace.
Marketplace
Pull a ContraForce-maintained template. See Marketplace.
Author
Write a new rule directly in the editor.
Import from a workspace
Importing adopts rules that already exist in a customer’s tenant, so they become managed content instead of untracked configuration.1
Open Import rules
From the repository’s Rules tab, select Import rules.
2
Choose the source
Pick a source platform (Microsoft Sentinel or Microsoft Defender XDR) and then the
source workspace to read from. The importable list and the fields shown differ by
platform.
3
Select the rules
Filter by type and severity or search by name, then select what you want. Select all
takes everything matching the current filter, and the count tells you how many that is.
4
Import
In an unprotected repository the rules join the baseline immediately. In a protected one
they arrive as work in progress.

Importing copies the rule into the repository. It does not take over the live rule. Until
you deploy the repository’s copy back out, the workspace keeps running what it was already
running, and the two can drift apart.
Author a rule
The rule editor captures:- Name, description, and severity
- Platform, which determines validation and the deployment target
- The query, with a test-query action to run it before saving
- MITRE ATT&CK tactics and techniques
- Entity mappings, so detections resolve to accounts, hosts and other entities
- Tags, used for filtering and grouping
Versions and history
Every change to the baseline creates a new version. Open a rule and its detail view carries three tabs:
Forks
A fork is a deliberate divergence from a base rule, for when one customer needs a variant rather than a change everyone gets. A forked rule keeps a link to its base, and CMC can show the diff between a fork and its base so the divergence stays visible instead of becoming folklore. Reach for a fork when the difference is permanent and specific. If the change is an improvement everyone should get, change the base rule instead.Deploy
Deployment pushes a rule from the repository to one or more covered workspaces.1
Validate
CMC validates the rule against the target before writing. Validation failures are
reported per workspace, so one bad target does not hide the rest.
2
Deploy
Deploy a single rule, or use the repository’s deploy view to push a set.
3
Confirm
The rule’s Deployments list records each workspace it reached and when.