Detection rules › Kusto

Ping Federate - OAuth old version

Status
available
Severity
medium
Time window
1d
Source
github.com/Azure/Azure-Sentinel

'Detects requests using not the latest version of OAuth protocol.'

MITRE ATT&CK coverage

TacticTechniques
Initial Access

Rule body

id: 85f70197-4865-4635-a4b2-a9c57e8fea1b
name: Ping Federate - OAuth old version
description: |
  'Detects requests using not the latest version of OAuth protocol.'
severity: Medium
status: Available
requiredDataConnectors:
  - connectorId: CefAma
    dataTypes:
      - CommonSecurityLog
queryFrequency: 1d
queryPeriod: 1d
triggerOperator: gt
triggerThreshold: 0
tactics:
  - InitialAccess
relevantTechniques:
  - T1190
query: |
  PingFederateEvent
  | where isnotempty(DeviceCustomString3)
  | extend proto = extract(@'(OAuth)', 1, DeviceCustomString3)
  | extend ver = extract(@'(\d+)', 1, DeviceCustomString3)
  | where proto =~ 'OAuth'
  | where ver !~ '20'
  | extend AccountCustomEntity = DstUserName
  | extend IpCustomEntity = SrcIpAddr
entityMappings:
  - entityType: Account
    fieldMappings:
      - identifier: Name
        columnName: AccountCustomEntity
  - entityType: IP
    fieldMappings:
      - identifier: Address
        columnName: IpCustomEntity
version: 1.0.3
kind: Scheduled

Stages and Predicates

Stage 1: source

PingFederateEvent

Stage 2: where

| where isnotempty(DeviceCustomString3)

Stage 3: extend

| extend proto = extract(@'(OAuth)', 1, DeviceCustomString3)

Stage 4: extend

| extend ver = extract(@'(\d+)', 1, DeviceCustomString3)

Stage 5: where

| where proto =~ 'OAuth'

Stage 6: where

| where ver !~ '20'

Stage 7: extend

| extend AccountCustomEntity = DstUserName

Stage 8: extend

| extend IpCustomEntity = SrcIpAddr

Indicators

These rows show field, operator, and value matches.

Output fields

These fields are emitted when the rule matches.

FieldSource
protoextend
verextend
AccountCustomEntityextend
IpCustomEntityextend