Detection rules › Kusto

Claroty - Multiple failed logins to same destinations

Status
available
Severity
high
Time window
5m
Group by
Site
Source
github.com/Azure/Azure-Sentinel

Detects multiple failed login attempts to the same Claroty SRA destination site within a 5-minute window. The rule counts failed logins per site and alerts when the number of failures exceeds the threshold value of 10.

MITRE ATT&CK coverage

Rule body kusto

id: 1c2310ef-19bf-4caf-b2b0-a4c983932fa5
name: Claroty - Multiple failed logins to same destinations
description: 'Detects multiple failed login attempts to the same Claroty SRA destination site within a 5-minute window. The
  rule counts failed logins per site and alerts when the number of failures exceeds the threshold value of 10.'
severity: High
status: Available
requiredDataConnectors:
  - connectorId: CefAma
    dataTypes:
      - CommonSecurityLog
queryFrequency: 1h
queryPeriod: 1h
triggerOperator: gt
triggerThreshold: 0
tactics:
  - InitialAccess
relevantTechniques:
  - T1190
  - T1133
query: |
  let threshold = 10;
    ClarotyEvent
    | where EventType has 'Login to SRA'
    | where EventType !has 'succeeded'
    | extend Site = column_ifexists("site_name","")
    | where isnotempty(Site)
    | extend SrcUsername = extract(@'User\s(.*?)\sfailed', 1, EventMessage)
    | summarize FailedLogins = count(), SampleUser = any(SrcUsername) by Site, bin(TimeGenerated, 5m)
    | where FailedLogins > threshold
    | extend SGCustomEntity = Site
    | project TimeGenerated, Site, FailedLogins, Threshold = threshold, SampleUser, SGCustomEntity
entityMappings:
- entityType: SecurityGroup
  fieldMappings:
  - identifier: DistinguishedName
    columnName: SGCustomEntity
version: 1.0.4
kind: Scheduled

Stages and Predicates

Parameters

let threshold = 10;

Stage 1: source

ClarotyEvent

Stage 2: where

| where EventType has 'Login to SRA'

Stage 3: where

| where EventType !has 'succeeded'

Stage 4: extend

| extend Site = column_ifexists("site_name","")

Stage 5: where

| where isnotempty(Site)

Stage 6: extend

| extend SrcUsername = extract(@'User\s(.*?)\sfailed', 1, EventMessage)

Stage 7: summarize

| summarize FailedLogins = count(), SampleUser = any(SrcUsername) by Site, bin(TimeGenerated, 5m)
Threshold
gt 10

Stage 8: where

| where FailedLogins > threshold

Stage 9: extend

| extend SGCustomEntity = Site

Stage 10: project

| project TimeGenerated, Site, FailedLogins, Threshold = threshold, SampleUser, SGCustomEntity

Exclusions

Top-level NOT(...) conjuncts: predicates this rule actively suppresses.

FieldKindExcluded values
EventTypematchsucceeded

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
EventTypematch
  • Login to SRA transforms: term
FailedLoginsgt
  • 10 transforms: cased
Siteis_not_null
  • (no value, null check)

Output fields

Fields the rule emits when it matches. Chronicle authors list these in the outcome block; they appear on the detection and $risk_score drives alerting. Sentinel / Defender XDR rules build them up through project / summarize / extend stages. Sentinel maps these into alert fields via entityMappings and customDetails; Defender XDR custom detections surface them as alert fields directly.

FieldSource
FailedLoginsproject
SGCustomEntityproject
SampleUserproject
Siteproject
Thresholdproject
TimeGeneratedproject