Detection rules › Kusto

Ping Federate - Authentication from new IP.

Status
available
Severity
low
Time window
14d
Source
github.com/Azure/Azure-Sentinel

'Detects authentication requests from new IP address.'

MITRE ATT&CK coverage

TacticTechniques
Initial Access

Rule body

id: 30583ed4-d13c-43b8-baf2-d75fbe727210
name: Ping Federate - Authentication from new IP.
description: |
  'Detects authentication requests from new IP address.'
severity: Low
status: Available
requiredDataConnectors:
  - connectorId: CefAma
    dataTypes:
      - CommonSecurityLog
queryFrequency: 1h
queryPeriod: 14d
triggerOperator: gt
triggerThreshold: 0
tactics:
  - InitialAccess
relevantTechniques:
  - T1078
query: |
  let known_src = 
  PingFederateEvent
  | where TimeGenerated between (ago(14d) .. (1d))
  | where EventType in~ ('AUTHN_ATTEMPT', 'SSO')
  | where isnotempty(SrcIpAddr)
  | summarize makeset(SrcIpAddr);
  PingFederateEvent
  | where EventType in~ ('AUTHN_ATTEMPT', 'SSO')
  | where isnotempty(SrcIpAddr)
  | where SrcIpAddr !in (known_src)
  | 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

Let binding: known_src used in Stage 4

let known_src = PingFederateEvent
| where TimeGenerated between (ago(14d) .. (1d))
| where EventType in~ ('AUTHN_ATTEMPT', 'SSO')
| where isnotempty(SrcIpAddr)
| summarize makeset(SrcIpAddr);

Stage 1: source

PingFederateEvent

Stage 2: where

| where EventType in~ ('AUTHN_ATTEMPT', 'SSO')

Stage 3: where

| where isnotempty(SrcIpAddr)

Stage 4: where

| where SrcIpAddr !in (known_src)

Stage 5: extend

| extend AccountCustomEntity = DstUserName

Stage 6: extend

| extend IpCustomEntity = SrcIpAddr

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
SrcIpAddreqknown_srcexcludes:SrcIpAddr field:"SrcIpAddr" value:"known_src"

Indicators

These rows show field, operator, and value matches.

FieldKindValuesSearch
EventTypein
  • AUTHN_ATTEMPT
  • SSO
field:"EventType" kind:in
SrcIpAddris_not_null
  • (no value, null check)
field:"src_ip" kind:is_not_null

Output fields

These fields are emitted when the rule matches.

FieldSource
AccountCustomEntityextend
IpCustomEntityextend