Detection rules › Kusto
CiscoISE - Device PostureStatus changed to non-compliant
'Detects when device changes PostureStatus from "Compliant".'
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | |
| Privilege Escalation |
Rule body
id: 548a2eda-d3eb-46cc-8d4b-1601551629e4
name: CiscoISE - Device PostureStatus changed to non-compliant
description: |
'Detects when device changes PostureStatus from "Compliant".'
severity: Medium
status: Available
requiredDataConnectors:
- connectorId: SyslogAma
datatypes:
- Syslog
queryFrequency: 15m
queryPeriod: 15m
triggerOperator: gt
triggerThreshold: 0
tactics:
- PrivilegeEscalation
- Persistence
relevantTechniques:
- T1098
query: |
let lbtime_48h = 48h;
let lbtime_24h = 24h;
let lbtime_now = now();
let compliantIPs = CiscoISEEvent
| where TimeGenerated between (ago(lbtime_48h) .. ago(lbtime_24h))
| where PostureStatus == 'Compliant'
| summarize makelist(DstIpAddr)
;
CiscoISEEvent
| where TimeGenerated between (ago(lbtime_24h) .. lbtime_now)
| where PostureStatus != 'Compliant'
| where DstIpAddr in (compliantIPs)
| project DstIpAddr
| extend IPCustomEntity = DstIpAddr
entityMappings:
- entityType: IP
fieldMappings:
- identifier: Address
columnName: IPCustomEntity
version: 1.0.3
kind: Scheduled
Stages and Predicates
Parameters
let lbtime_48h = 48h;
let lbtime_24h = 24h;
let lbtime_now = now();
Let binding: compliantIPs
let compliantIPs = CiscoISEEvent
| where TimeGenerated between (ago(lbtime_48h) .. ago(lbtime_24h))
| where PostureStatus == 'Compliant'
| summarize makelist(DstIpAddr);
Stage 1: source
CiscoISEEvent
Stage 2: where
| where TimeGenerated between (ago(lbtime_24h) .. lbtime_now)
Stage 3: where
| where PostureStatus != 'Compliant'
Stage 4: where
| where DstIpAddr in (compliantIPs)
Stage 5: project
| project DstIpAddr
Stage 6: extend
| extend IPCustomEntity = DstIpAddr
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
DstIpAddr | in |
| field:"dest_ip" kind:in value:"compliantIPs" |
PostureStatus | ne |
| field:"PostureStatus" kind:ne value:"Compliant" |
Output fields
These fields are emitted when the rule matches.
| Field | Source |
|---|---|
DstIpAddr | project |
IPCustomEntity | extend |