Intune endpoint use cases: inventory, device sync, hardening and firewall block
Inventory check, device lookup with sync, endpoint hardening through a SOC Scratch group, and a firewall block of one IP, on the Intune connector.
intune-endpoint-use-cases-inventory-device-sync-hardening-an-1.0.0.json
Sanitized by the pipeline and shipped inactive. Follow the before turning it on.
Needs a connector that isn't on the Content Hub
microsoft-intune-v2 - you'll need to obtain this custom connector (or build an equivalent) before it will run.
Four use-case playbooks for the Microsoft Intune (v2) connector: an inventory check, a device lookup that requests a sync only when the device exists, endpoint hardening of an Entra device through a SOC Scratch group and policy, and an endpoint firewall block of one remote IP through a SOC Scratch policy.
Needs the connector "Manage Intune devices, endpoint security policies and scratch groups" (microsoft-intune-v2) from this catalogue, configured with an Entra app registration (see that connector's description for the Microsoft Graph application permissions). No other connector is called.
Live-tested on FortiSOAR 8.0.1 against a Microsoft 365 lab tenant.
Playbooks:
- Intune - Inventory check. Lists the managed devices and reports when none are enrolled, or continues when devices are present. Read-only. Live-tested: Devices Present (and No Enrolled Devices, before the lab device enrolled).
- Intune - Device lookup and sync. Looks up one managed device by ID and requests a sync only if it exists. Live-tested: Device Not Found. Not live-tested: Sync Requested (Intune sync needs an MDM-enrolled device; the lab device is a Windows Server managed by Defender for Endpoint).
- Harden endpoint on incident. Adds an Entra device to a SOC Scratch group that carries a stricter Defender antivirus policy, then reads the policy status for the device. Writes are limited to SOC Scratch objects. Live-tested: Device Not Found, and Policy Clean on a Defender-managed Windows Server. Not live-tested: Policy Reported Problem (needs a non-succeeded policy state for the device).
- Block IP on endpoint firewall. Creates a SOC Scratch Windows Firewall Rules policy with one outbound rule to a remote IP, sets the rule's action to Block, assigns it to a SOC Scratch group and reads the policy status. Live-tested: Rule Assigned. On a device, a rule from the earlier version (no action set) arrived as Allow; the Block rule from this version was still Pending delivery to the lab device when this was published, so Block enforcement on a device is not yet observed. Not live-tested: Policy Reported Problem (needs a non-compliance row for a device).
Branches not run live are covered offline, with synthetic mocks.