Detection rules › Sigma

Potentially Suspicious Azure Front Door Connection

Status
test
Severity
medium
Log source
category network_connection, product windows
Author
Isaac Dunham
Source
github.com/SigmaHQ/sigma

Detects connections with Azure Front Door (known legitimate service that can be leveraged for C2) that fall outside of known benign behavioral baseline (not using common apps or common azurefd.net endpoints)

Known false positives

  • Results are not inherently suspicious, but should be investigated during threat hunting for potential cloud C2.
  • Organization-specific Azure Front Door endpoints

MITRE ATT&CK coverage

Telemetry coverage

ProviderRecord / event type
SysmonEvent ID 3: Network connection

Rule body

title: Potentially Suspicious Azure Front Door Connection
id: 8cb4d14e-776e-43c2-8fb9-91e7fcea32b4
status: test
description: |
    Detects connections with Azure Front Door (known legitimate service that can be leveraged for C2)
    that fall outside of known benign behavioral baseline (not using common apps or common azurefd.net endpoints)
references:
    - https://lots-project.com/site/2a2e617a75726566642e6e6574
    - https://medium.com/r3d-buck3t/red-teaming-in-cloud-leverage-azure-frontdoor-cdn-for-c2-redirectors-79dd9ca98178
    - https://www.fortalicesolutions.com/posts/hiding-behind-the-front-door-with-azure-domain-fronting
author: Isaac Dunham
date: 2024-11-07
tags:
    - attack.command-and-control
    - attack.t1102.002
    - attack.t1090.004
    - detection.threat-hunting
logsource:
    category: network_connection
    product: windows
detection:
    selection:
        DestinationHostname|contains: 'azurefd.net'
    filter_main_web_browsers:
        Image|endswith:
            - 'brave.exe'
            - 'chrome.exe'
            - 'chromium.exe'
            - 'firefox.exe'
            - 'msedge.exe'
            - 'msedgewebview2.exe'
            - 'opera.exe'
            - 'vivaldi.exe'
    filter_main_common_talkers:
        Image|endswith: 'searchapp.exe' # Windows search service uses signifcant amount of Azure FD
    filter_main_known_benign_domains:
        DestinationHostname|contains:
            - 'afdxtest.z01.azurefd.net' # used by Cortana; Cisco Umbrella top 1m
            - 'fp-afd.azurefd.net' # used by Cortana; Cisco Umbrella top 1m
            - 'fp-afdx-bpdee4gtg6frejfd.z01.azurefd.net' # used by Cortana; Cisco Umbrella top 1m
            - 'roxy.azurefd.net' # used by Cortana; Cisco Umbrella top 1m
            - 'powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net' # Used by VS Code; Cisco Umbrella top 1m
            - 'storage-explorer-publishing-feapcgfgbzc2cjek.b01.azurefd.net' # Used by Azure Storage Explorer; Cisco Umbrella top 1m
            - 'graph.azurefd.net' # MS Graph; Cisco Umbrella top 1m
    condition: selection and not 1 of filter_main_*
falsepositives:
    - Results are not inherently suspicious, but should be investigated during threat hunting for potential cloud C2.
    - Organization-specific Azure Front Door endpoints
level: medium

Stages and Predicates

Stage 0: condition

selection and not 1 of filter_main_*

Stage 1: selection

selection:
    DestinationHostname|contains: 'azurefd.net'

Stage 2: not filter_main_*

filter_main_web_browsers:
    Image|endswith:
        - 'brave.exe'
        - 'chrome.exe'
        - 'chromium.exe'
        - 'firefox.exe'
        - 'msedge.exe'
        - 'msedgewebview2.exe'
        - 'opera.exe'
        - 'vivaldi.exe'
filter_main_common_talkers:
    Image|endswith: 'searchapp.exe'
filter_main_known_benign_domains:
    DestinationHostname|contains:
        - 'afdxtest.z01.azurefd.net'
        - 'fp-afd.azurefd.net'
        - 'fp-afdx-bpdee4gtg6frejfd.z01.azurefd.net'
        - 'roxy.azurefd.net'
        - 'powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net'
        - 'storage-explorer-publishing-feapcgfgbzc2cjek.b01.azurefd.net'
        - 'graph.azurefd.net'

Exclusions

The rule actively suppresses these predicates.

FieldKindExcluded valuesSearch
DestinationHostnamematchafdxtest.z01.azurefd.netexcludes:DestinationHostname field:"DestinationHostname" value:"afdxtest.z01.azurefd.net"
DestinationHostnamematchfp-afd.azurefd.netexcludes:DestinationHostname field:"DestinationHostname" value:"fp-afd.azurefd.net"
DestinationHostnamematchfp-afdx-bpdee4gtg6frejfd.z01.azurefd.netexcludes:DestinationHostname field:"DestinationHostname" value:"fp-afdx-bpdee4gtg6frejfd.z01.azurefd.net"
DestinationHostnamematchgraph.azurefd.netexcludes:DestinationHostname field:"DestinationHostname" value:"graph.azurefd.net"
DestinationHostnamematchpowershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.netexcludes:DestinationHostname field:"DestinationHostname" value:"powershellinfraartifacts-gkhedzdeaghdezhr.z01.azurefd.net"
DestinationHostnamematchroxy.azurefd.netexcludes:DestinationHostname field:"DestinationHostname" value:"roxy.azurefd.net"
DestinationHostnamematchstorage-explorer-publishing-feapcgfgbzc2cjek.b01.azurefd.netexcludes:DestinationHostname field:"DestinationHostname" value:"storage-explorer-publishing-feapcgfgbzc2cjek.b01.azurefd.net"
Imageends_withbrave.exeexcludes:Image field:"Image" value:"brave.exe"
Imageends_withchrome.exeexcludes:Image field:"Image" value:"chrome.exe"
Imageends_withchromium.exeexcludes:Image field:"Image" value:"chromium.exe"
Imageends_withfirefox.exeexcludes:Image field:"Image" value:"firefox.exe"
Imageends_withmsedge.exeexcludes:Image field:"Image" value:"msedge.exe"
Imageends_withmsedgewebview2.exeexcludes:Image field:"Image" value:"msedgewebview2.exe"
Imageends_withopera.exeexcludes:Image field:"Image" value:"opera.exe"
Imageends_withsearchapp.exeexcludes:Image field:"Image" value:"searchapp.exe"
Imageends_withvivaldi.exeexcludes:Image field:"Image" value:"vivaldi.exe"

Indicators

These rows show field, operator, and value matches.