Detection rules › Kusto

Ping Federate - SAML old version

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

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

MITRE ATT&CK coverage

TacticTechniques
Initial Access

Rule body

id: fddd3840-acd2-41ed-94d9-1474b0a7c8a6
name: Ping Federate - SAML old version
description: |
  'Detects requests using not the latest version of SAML 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(@'(SAML)', 1, DeviceCustomString3)
  | extend ver = extract(@'(\d+)', 1, DeviceCustomString3)
  | where proto =~ 'SAML'
  | 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(@'(SAML)', 1, DeviceCustomString3)

Stage 4: extend

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

Stage 5: where

| where proto =~ 'SAML'

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