Detection rules › Sigma

Users Authenticating To Other Azure AD Tenants

Status
test
Severity
medium
Log source
product azure, service signinlogs
Author
MikeDuddington, '@dudders1'
Source
github.com/SigmaHQ/sigma

Detect when users in your Azure AD tenant are authenticating to other Azure AD Tenants.

MITRE ATT&CK coverage

Rule body yaml

title: Users Authenticating To Other Azure AD Tenants
id: 5f521e4b-0105-4b72-845b-2198a54487b9
status: test
description: Detect when users in your Azure AD tenant are authenticating to other Azure AD Tenants.
references:
    - https://learn.microsoft.com/en-gb/entra/architecture/security-operations-user-accounts#monitoring-external-user-sign-ins
author: MikeDuddington, '@dudders1'
date: 2022-06-30
tags:
    - attack.privilege-escalation
    - attack.persistence
    - attack.initial-access
    - attack.stealth
    - attack.t1078.004
logsource:
    product: azure
    service: signinlogs
detection:
    selection:
        Status: 'Success'
        HomeTenantId: 'HomeTenantID'
    filter:
        ResourceTenantId|contains: 'HomeTenantID'
    condition: selection and not filter
falsepositives:
    - If this was approved by System Administrator.
level: medium

Stages and Predicates

Stage 0: condition

selection and not filter

Stage 1: selection

selection:
    Status: 'Success'
    HomeTenantId: 'HomeTenantID'

Stage 2: not filter

filter:
    ResourceTenantId|contains: 'HomeTenantID'

Exclusions

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

FieldKindExcluded values
ResourceTenantIdmatchHomeTenantID

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
HomeTenantIdeq
  • HomeTenantID
Statuseq
  • Success