Skip to content

Detections

XplicitTrust ships detections for the situations a security team wants to hear about: brute force, logins from two countries, mass deletion, a protection switched off, a forwarder that went silent. This page lists them for the two destinations that have a ready-made rule set: the rules for Wazuh and the analytics rules for Microsoft Sentinel. The Sentinel rules raise incidents for the same situations as the Wazuh correlation rules, and the tables name the counterpart of each.

In short

Install the Wazuh decoder and rules, or save the Sentinel parser function, then use this page to see what each rule alerts on, at which level, and which MITRE ATT&CK technique it matches. For another SIEM, take the conditions and thresholds as models; the fields are in the Event reference.

Wazuh rules

The ruleset alerts on the event types below. Every other XplicitTrust event, for example one of a type added after you installed the rules, is still stored as an alert of the base rule 117000 at level 3, described by its class and type, so nothing the forwarder delivers is dropped. Update the rules to give a new type its own level and description.

Event types are matched exactly, so web_app_login does not also match web_app_login_denied.

Rules 117110 to 117125 cover just-in-time access: the request steps, the steps of an extension (117122 to 117125; an approved extension is raised like an approval), and one alert per address a technician's device reached during a grant. A technician ending their own access stays at 117117 (level 3); 117121 raises an early end by an approver or administrator (ended_by_requester is false), 117118 one caused by a change of the policy the grant was made under. 117120 fires when the destination events of one grant (jit_request_id) name 20 or more different addresses; they arrive as a burst a few minutes after the grant ended. Rules 117101 to 117103 refine the configuration change rules for event forwarders. Rules 117028, 117038, 117039 and 117131 refine the compliance change rules: a change that switches a protection off or degrades it gets the higher level, any other change of the same type keeps the rule above it. The correlation rules count events per user, device or source address, never across the whole tenant, so unrelated events of different people do not add up.

Rule ID Level Event Description
117000 3 (base) Every XplicitTrust event without a rule of its own
117001 3 logged_in User or client login
117002 3 logged_out User or client logout
117003 10 failed Authentication failed
117004 10 failed_refresh Session refresh failed
117005 12 access_denied Access denied by policy
117006 3 pre_auth_created Pre-authentication session created
117007 3 session_refresh Session refreshed
117008 3 tenant_entered Partner user entered tenant
117009 3 tenant_left Partner user left tenant
117010 5 created Configuration object created
117011 5 updated Configuration object updated
117012 7 deleted Configuration object deleted
117013 5 enabled Configuration object enabled
117014 7 disabled Configuration object disabled
117015 3 fetched User groups fetched from IdP
117016 5 imported User groups imported from IdP
117017 3 synced User groups synced with IdP
117018 3 domains_fetched Domains fetched from IdP (also the older spelling domains fetched)
117019 3 configuration_downloaded Asset configuration downloaded (also configuration downloaded)
117020 3 client_online Client came online
117021 3 client_offline Client went offline
117022 3 asset_online Asset came online
117023 5 asset_offline Asset went offline
117024 5 public_ip_changed Client public IP changed
117025 10 ip_blocked Login blocked by IP allowlist
117026 10 geo_blocked Login blocked by country restriction
117027 10 session_ip_mismatch Session blocked after IP address change
117028 10 security_product_changed A security product is now off, snoozed or expired
117030 7 os_version_changed Client OS version changed
117031 7 security_product_changed Security product changed
117032 7 disk_encryption_changed Disk encryption state changed
117033 7 geolocation_changed Client geolocation changed
117034 5 client_version_changed Client version changed
117035 7 security_provider_changed Security provider changed
117036 7 domain_membership_changed Domain membership changed
117037 7 entra_id_membership_changed Entra ID membership changed
117038 12 disk_encryption_changed Disk encryption turned off
117039 10 security_provider_changed Antivirus or firewall health degraded to poor
117040 12 (correlation) Brute force: 5+ failed logins for the same account in 2 minutes
117041 12 (correlation) 5+ Web App login denials for the same user in 10 minutes
117042 12 (correlation) The same user logged in from two countries within an hour
117043 13 (correlation) The same device denied access 5+ times in 10 minutes
117044 12 (correlation) 5+ logins blocked by IP allowlist or country restriction from the same address in 10 minutes
117045 12 (correlation) The same user deleted 10+ objects in 5 minutes
117046 12 (correlation) 10+ failed logins in 2 minutes across accounts (password spraying, or a failing identity provider)
117047 12 (correlation) Brute force: 5+ failed logins from the same address in 2 minutes
117050 5 asset_isolation_enabled Asset isolation enabled
117051 10 asset_isolation_disabled Asset isolation disabled
117052 5 asset_isolation_rule_added Isolation rule added
117053 5 asset_isolation_rule_changed Isolation rule changed
117054 7 asset_isolation_rule_removed Isolation rule removed
117060 5 new_host New host on a scanned network
117061 5 new_service New service on a known host
117062 3 host_disappeared Host disappeared
117063 3 service_closed Service closed
117064 3 scan_completed Network scan completed
117065 7 device_down Watched device stopped answering
117066 3 device_up Watched device answers again
117070 7 cpu_usage_high Client CPU usage high
117071 3 cpu_usage_normal Client CPU usage back to normal
117072 7 memory_usage_high Client memory usage high
117073 3 memory_usage_normal Client memory usage back to normal
117080 5 notification.* Notification raised in the console
117081 3 notification_cleared.* Notification resolved
117082 7 notification.broker_failed Broker unreachable
117083 7 notification.split_dns_failed Split DNS broken
117084 7 notification.dhcp_failed DHCP failed
117085 7 notification.event_forwarder_failed Event forwarder failing
117086 0 event_forwarder.heartbeat Forwarder heartbeat, not stored (see Heartbeat Monitoring)
117087 12 heartbeat_check.heartbeat_missing A forwarder sent no heartbeat for 20 minutes (from the heartbeat check)
117088 3 heartbeat_check.heartbeat_resumed The forwarder sends heartbeats again (from the heartbeat check)
117089 3 web_app_tunnel_access A device reached a Web App through the tunnel
117090 3 web_app_login_started Web App login started
117091 3 web_app_login Web App login
117092 10 web_app_login_denied Web App login denied, with the reason
117093 7 web_app_sign_out_all Everyone signed out of a Web App
117094 3 upstream_firewall.credentials_delivered The agent fetched the firewall credentials
117095 5 upstream_firewall.credentials_handed_over Firewall credentials handed over to the agent
117096 3 upstream_firewall.credentials_verified The firewall accepted the agent's credentials
117097 7 upstream_firewall.credentials_expired Credentials expired before the agent fetched them
117098 10 upstream_firewall.credentials_invalid The firewall rejected the agent's credentials
117099 10 upstream_firewall.sync_failed Firewall sync failed
117100 3 upstream_firewall.sync_recovered Firewall sync recovered
117101 12 deleted Event forwarder deleted
117102 12 updated Event forwarder disabled
117103 10 updated Event forwarder sends to another destination, or its event filters changed
117104 3 event_forwarder.test Test event sent with Send Test Event
117110 3 jit_access.* A just-in-time access step without a rule of its own
117111 5 jit_access.access_requested A technician requested access
117112 8 jit_access.access_approved An approver granted access
117113 5 jit_access.access_request_denied An approver denied a request
117114 3 jit_access.access_cancelled A request was withdrawn before its window
117115 6 jit_access.access_started A technician has access
117116 3 jit_access.access_expired Access expired with its window
117117 3 jit_access.access_ended Access ended early, for example by the technician
117118 10 jit_access.access_ended Access ended early because its policy was removed or changed, or no longer names the destination
117119 3 jit_access.jit_access_destination An address the technician's device reached during a grant
117120 10 jit_access.jit_access_destination 20 or more different addresses reached during one grant
117121 8 jit_access.access_ended Access ended early by an approver or administrator, not by the technician
117122 5 jit_access.access_extension_requested A technician asked for more time
117123 8 jit_access.access_extended An approver granted more time
117124 5 jit_access.access_extension_denied An approver denied more time
117125 3 jit_access.access_extension_withdrawn A request for more time was withdrawn
117130 7 device_certificate_changed Device certificate verification changed
117131 10 device_certificate_changed Device certificate no longer verified, with the reason

Microsoft Sentinel analytics rules

The rules use the XplicitTrustEvents function from the parser. Create each rule under Analytics → Create → Scheduled query rule, with the query, schedule and severity in the tables below. Map the entities so incidents group and link to the user, device and address:

Entity Identifier Column
Account FullName Account
Host HostName ClientName
IP Address RemoteAddress or ClientIp

Rules that do not return a column skip that entity. Set Event grouping to Trigger an alert for each event, so that each row (an account, a device, an address) becomes its own alert.

Rule Severity Run every Lookback MITRE ATT&CK Wazuh rule
Brute force against an account High 5 min 5 min T1110.001 117040
Brute force from an address High 5 min 5 min T1110 117047
Failed logins across accounts High 5 min 5 min T1110.003 117046
Repeated portal login denials High 10 min 10 min T1110 117041
Logins from two countries within an hour High 1 hour 1 hour T1078 117042
Device denied access repeatedly High 10 min 10 min T1046 117043
Blocked logins from one address High 10 min 10 min T1110 117044
Mass deletion High 5 min 5 min T1485 117045
Disk encryption turned off High 5 min 5 min T1562 117038
Security product off or degraded Medium 5 min 5 min T1562.001 117028, 117039
Event forwarder disabled, deleted or redirected High 5 min 5 min T1562.008 117101–117103
Event forwarder silent High 5 min 1 day T1562.008 117087
Watched device unreachable Medium 5 min 5 min T1489 117065
New device on a scanned network Low 5 min 5 min T1200 117060

The correlation rules count within the rule's lookback, so their windows are those of the Wazuh rules rounded up to a rule interval; the thresholds are the same.

Brute force against an account

XplicitTrustEvents
| where EventName == "authentication.failed"
| extend Account = coalesce(UserEmail, ActorName)
| summarize Failures = dcount(EventId), Addresses = make_set(RemoteAddress, 20), FirstSeen = min(CreatedAt), LastSeen = max(CreatedAt)
    by Account, TenantName
| where Failures >= 5

A failed login names the account that was tried, not necessarily who tried it.

Brute force from an address

XplicitTrustEvents
| where EventName == "authentication.failed" and RemoteAddress !in ("", "unknown")
| summarize Failures = dcount(EventId), Accounts = make_set(coalesce(UserEmail, ActorName), 20), FirstSeen = min(CreatedAt), LastSeen = max(CreatedAt)
    by RemoteAddress, TenantName
| where Failures >= 5

Failed logins across accounts

Password spraying, or an identity provider that fails for everyone.

XplicitTrustEvents
| where EventName == "authentication.failed"
| summarize Failures = dcount(EventId), Accounts = dcount(coalesce(UserEmail, ActorName)), Addresses = make_set(RemoteAddress, 20)
    by TenantName
| where Failures >= 10

Repeated portal login denials

XplicitTrustEvents
| where EventName == "authentication.web_app_login_denied"
| extend Account = UserEmail
| summarize Denials = dcount(EventId), Apps = make_set(ObjectName, 20), Reasons = make_set(Reason, 10), RemoteAddress = take_any(RemoteAddress)
    by Account, TenantName
| where Denials >= 5

Logins from two countries within an hour

Shared credentials, a stolen session, or a VPN exit abroad.

XplicitTrustEvents
| where EventName == "authentication.logged_in" and ActorType == "user" and isnotempty(Country)
| extend Account = coalesce(UserEmail, ActorName)
| summarize Countries = make_set(Country), Addresses = make_set(RemoteAddress, 20), Devices = make_set(ClientName, 20)
    by Account, TenantName
| where array_length(Countries) >= 2

Device denied access repeatedly

A device that tries one destination after another: a scan from inside the network.

XplicitTrustEvents
| where EventName == "authorization.access_denied"
| summarize Denials = dcount(EventId), Reasons = make_set(Reason, 10), Account = take_any(UserEmail), RemoteAddress = take_any(RemoteAddress)
    by ClientId, ClientName, TenantName
| where Denials >= 5

Blocked logins from one address

Logins refused by the IP allowlist or the country restriction, from one address: someone probing from outside.

XplicitTrustEvents
| where EventName in ("access_control.ip_blocked", "access_control.geo_blocked")
| summarize Blocked = dcount(EventId), Accounts = make_set(coalesce(UserEmail, ActorName), 20), Countries = make_set(Country)
    by ClientIp, TenantName
| where Blocked >= 5

Mass deletion

XplicitTrustEvents
| where EventName == "configuration_change.deleted"
| extend Account = ActorName
| summarize Deleted = dcount(EventId), Objects = make_set(strcat(ObjectType, ": ", ObjectName), 50), RemoteAddress = take_any(RemoteAddress)
    by Account, ActorType, TenantName
| where Deleted >= 10

Disk encryption turned off

XplicitTrustEvents
| where EventName == "client_compliance.disk_encryption_changed" and NewValue == "off"
| project TimeGenerated, CreatedAt, TenantName, ClientId, ClientName, Account = UserEmail, OldValue = tostring(Fields.old_value), NewValue

Security product off or degraded

A security product that is now off, snoozed or expired, or an antivirus or firewall whose health dropped to poor.

XplicitTrustEvents
| where (EventName == "client_compliance.security_product_changed" and NewValue matches regex @"\(off/|snoozed|expired")
     or (EventName == "client_compliance.security_provider_changed" and NewValue == "poor")
| project TimeGenerated, CreatedAt, TenantName, ClientId, ClientName, Account = UserEmail, EventType, Setting = tostring(Fields.field), OldValue = tostring(Fields.old_value), NewValue

Event forwarder disabled, deleted or redirected

A forwarder that is switched off or pointed elsewhere delivers that change to its old destination before it stops. Changes to its event filters are included, since a filter can leave events out.

XplicitTrustEvents
| where EventClass == "configuration_change" and ObjectType == "event_forwarder"
| where EventType == "deleted"
     or (EventType == "updated" and (Enabled == false or tostring(ChangedFields) has_any ("protocol", "url", "event_filters")))
| project TimeGenerated, CreatedAt, TenantName, Forwarder = ObjectName, ForwarderId = ObjectId, EventType, Enabled, ChangedFields, Account = ActorName, RemoteAddress

Event forwarder silent

Forwarders send an event_forwarder.heartbeat every five minutes, whether or not there are events. This rule raises one alert when a forwarder that sent heartbeats has been silent for 20 minutes, unless it was disabled, deleted or redirected after its last heartbeat. Unlike the other rules it also catches an outage between XplicitTrust and the workspace: the log forwarder, rsyslog or the agent.

let Silence = 20m;
let RunEvery = 5m;
let Stopped = XplicitTrustEvents
    | where EventClass == "configuration_change" and ObjectType == "event_forwarder"
    | where EventType == "deleted" or (EventType == "updated" and (Enabled == false or tostring(ChangedFields) has_any ("protocol", "url")))
    | summarize StoppedAt = max(TimeGenerated) by ForwarderId = ObjectId;
XplicitTrustEvents
| where EventName == "event_forwarder.heartbeat"
| summarize arg_max(TimeGenerated, ObjectName, TenantName) by ForwarderId = ObjectId
| where TimeGenerated between (ago(Silence + RunEvery) .. ago(Silence))
| join kind=leftouter Stopped on ForwarderId
| where isnull(StoppedAt) or StoppedAt < TimeGenerated
| project LastHeartbeat = TimeGenerated, TenantName, Forwarder = ObjectName, ForwarderId

The time window makes each silence cross the 20-minute mark in exactly one run, so one outage gives one alert, however long it lasts. Keep Run every at 5 minutes, the value of RunEvery. Heartbeats amount to 288 small records per forwarder and day.

Watched device unreachable

A device with a reachability watch missed three checks in a row from the Asset that watches it. A network_discovery.device_up event follows when it answers again.

XplicitTrustEvents
| where EventName == "network_discovery.device_down"
| project TimeGenerated, CreatedAt, TenantName, Device = tostring(Fields.display_name), ClientIp = tostring(Fields.ip), Mac = tostring(Fields.mac), ClientId, ClientName, Interface = tostring(Fields.interface_name)

ClientName is the Asset that checks the device, ClientIp the device's own address.

New device on a scanned network

Network Discovery found a device it had not seen before. The first full scan of an interface reports every device as new, so those are left out. On networks with guests or many phones this rule fires often; enable it where an unknown device is worth an alert.

XplicitTrustEvents
| where EventName == "network_discovery.new_host" and tobool(Fields.initial_scan) != true
| project TimeGenerated, CreatedAt, TenantName, Device = tostring(Fields.display_name), ClientIp = tostring(Fields.ip), Mac = tostring(Fields.mac), Manufacturer = tostring(Fields.manufacturer), ClientId, ClientName, Interface = tostring(Fields.interface_name)

See also