Ping Federate - Authentication from new IP
Id | 30583ed4-d13c-43b8-baf2-d75fbe727210 |
Rulename | Ping Federate - Authentication from new IP. |
Description | Detects authentication requests from new IP address. |
Severity | Low |
Tactics | InitialAccess |
Techniques | T1078 |
Required data connectors | CefAma PingFederate PingFederateAma |
Kind | Scheduled |
Query frequency | 1h |
Query period | 14d |
Trigger threshold | 0 |
Trigger operator | gt |
Source Uri | https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PingFederate/Analytic Rules/PingFederateAuthFromNewSource.yaml |
Version | 1.0.2 |
Arm template | 30583ed4-d13c-43b8-baf2-d75fbe727210.json |
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
relevantTechniques:
- T1078
name: Ping Federate - Authentication from new IP.
requiredDataConnectors:
- dataTypes:
- PingFederateEvent
connectorId: PingFederate
- dataTypes:
- PingFederateEvent
connectorId: PingFederateAma
- dataTypes:
- CommonSecurityLog
connectorId: CefAma
entityMappings:
- fieldMappings:
- identifier: Name
columnName: AccountCustomEntity
entityType: Account
- fieldMappings:
- identifier: Address
columnName: IpCustomEntity
entityType: IP
triggerThreshold: 0
id: 30583ed4-d13c-43b8-baf2-d75fbe727210
tactics:
- InitialAccess
version: 1.0.2
OriginalUri: https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PingFederate/Analytic Rules/PingFederateAuthFromNewSource.yaml
queryPeriod: 14d
kind: Scheduled
queryFrequency: 1h
severity: Low
status: Available
description: |
'Detects authentication requests from new IP address.'
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
triggerOperator: gt
{
"$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#",
"contentVersion": "1.0.0.0",
"parameters": {
"workspace": {
"type": "String"
}
},
"resources": [
{
"apiVersion": "2024-01-01-preview",
"id": "[concat(resourceId('Microsoft.OperationalInsights/workspaces/providers', parameters('workspace'), 'Microsoft.SecurityInsights'),'/alertRules/30583ed4-d13c-43b8-baf2-d75fbe727210')]",
"kind": "Scheduled",
"name": "[concat(parameters('workspace'),'/Microsoft.SecurityInsights/30583ed4-d13c-43b8-baf2-d75fbe727210')]",
"properties": {
"alertRuleTemplateName": "30583ed4-d13c-43b8-baf2-d75fbe727210",
"customDetails": null,
"description": "'Detects authentication requests from new IP address.'\n",
"displayName": "Ping Federate - Authentication from new IP.",
"enabled": true,
"entityMappings": [
{
"entityType": "Account",
"fieldMappings": [
{
"columnName": "AccountCustomEntity",
"identifier": "Name"
}
]
},
{
"entityType": "IP",
"fieldMappings": [
{
"columnName": "IpCustomEntity",
"identifier": "Address"
}
]
}
],
"OriginalUri": "https://github.com/Azure/Azure-Sentinel/blob/master/Solutions/PingFederate/Analytic Rules/PingFederateAuthFromNewSource.yaml",
"query": "let known_src = \nPingFederateEvent\n| where TimeGenerated between (ago(14d) .. (1d))\n| where EventType in~ ('AUTHN_ATTEMPT', 'SSO')\n| where isnotempty(SrcIpAddr)\n| summarize makeset(SrcIpAddr);\nPingFederateEvent\n| where EventType in~ ('AUTHN_ATTEMPT', 'SSO')\n| where isnotempty(SrcIpAddr)\n| where SrcIpAddr !in (known_src)\n| extend AccountCustomEntity = DstUserName\n| extend IpCustomEntity = SrcIpAddr\n",
"queryFrequency": "PT1H",
"queryPeriod": "P14D",
"severity": "Low",
"status": "Available",
"subTechniques": [],
"suppressionDuration": "PT1H",
"suppressionEnabled": false,
"tactics": [
"InitialAccess"
],
"techniques": [
"T1078"
],
"templateVersion": "1.0.2",
"triggerOperator": "GreaterThan",
"triggerThreshold": 0
},
"type": "Microsoft.OperationalInsights/workspaces/providers/alertRules"
}
]
}