Detection rules › Sigma

Renamed AdFind Execution

Status
test
Severity
high
Log source
product windows, category process_creation
Author
Florian Roth (Nextron Systems)
Source
github.com/SigmaHQ/sigma

Detects the use of a renamed Adfind.exe. AdFind continues to be seen across majority of breaches. It is used to domain trust discovery to plan out subsequent steps in the attack chain.

MITRE ATT&CK coverage

Event coverage

ProviderEventTitle
SysmonEvent ID 1Process creation

Rule body yaml

title: Renamed AdFind Execution
id: df55196f-f105-44d3-a675-e9dfb6cc2f2b
status: test
description: Detects the use of a renamed Adfind.exe. AdFind continues to be seen across majority of breaches. It is used to domain trust discovery to plan out subsequent steps in the attack chain.
references:
    - https://www.joeware.net/freetools/tools/adfind/
    - https://thedfirreport.com/2020/05/08/adfind-recon/
    - https://thedfirreport.com/2021/01/11/trickbot-still-alive-and-well/
    - https://www.microsoft.com/security/blog/2021/01/20/deep-dive-into-the-solorigate-second-stage-activation-from-sunburst-to-teardrop-and-raindrop/
    - https://social.technet.microsoft.com/wiki/contents/articles/7535.adfind-command-examples.aspx
    - https://github.com/center-for-threat-informed-defense/adversary_emulation_library/blob/bf62ece1c679b07b5fb49c4bae947fe24c81811f/fin6/Emulation_Plan/Phase1.md
author: Florian Roth (Nextron Systems)
date: 2022-08-21
modified: 2025-02-26
tags:
    - attack.discovery
    - attack.t1018
    - attack.t1087.002
    - attack.t1482
    - attack.t1069.002
logsource:
    category: process_creation
    product: windows
detection:
    selection_1:
        CommandLine|contains:
            - 'domainlist'
            - 'trustdmp'
            - 'dcmodes'
            - 'adinfo'
            - ' dclist '
            - 'computer_pwdnotreqd'
            - 'objectcategory='
            - '-subnets -f'
            - 'name="Domain Admins"'
            - '-sc u:'
            - 'domainncs'
            - 'dompol'
            - ' oudmp '
            - 'subnetdmp'
            - 'gpodmp'
            - 'fspdmp'
            - 'users_noexpire'
            - 'computers_active'
            - 'computers_pwdnotreqd'
    selection_2:
        Hashes|contains:
            - 'IMPHASH=BCA5675746D13A1F246E2DA3C2217492'
            - 'IMPHASH=53E117A96057EAF19C41380D0E87F1C2'
            - 'IMPHASH=d144de8117df2beceaba2201ad304764'
            - 'IMPHASH=12ce1c0f3f5837ecc18a3782408fa975'
            - 'IMPHASH=4fbf3f084fbbb2470b80b2013134df35'
            - 'IMPHASH=49b639b4acbecc49d72a01f357aa4930'
            - 'IMPHASH=680dad9e300346e05a85023965867201'
            - 'IMPHASH=21aa085d54992511b9f115355e468782'
    selection_3:
        OriginalFileName: 'AdFind.exe'
    filter:
        Image|endswith: '\AdFind.exe'
    condition: 1 of selection* and not filter
falsepositives:
    - Unknown
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_renamed_adfind/info.yml

Stages and Predicates

Stage 0: condition

1 of selection* and not filter

Stage 1: selection_1

selection_1:
    CommandLine|contains:
        - 'domainlist'
        - 'trustdmp'
        - 'dcmodes'
        - 'adinfo'
        - ' dclist '
        - 'computer_pwdnotreqd'
        - 'objectcategory='
        - '-subnets -f'
        - 'name="Domain Admins"'
        - '-sc u:'
        - 'domainncs'
        - 'dompol'
        - ' oudmp '
        - 'subnetdmp'
        - 'gpodmp'
        - 'fspdmp'
        - 'users_noexpire'
        - 'computers_active'
        - 'computers_pwdnotreqd'

Stage 2: selection_2

selection_2:
    Hashes|contains:
        - 'IMPHASH=BCA5675746D13A1F246E2DA3C2217492'
        - 'IMPHASH=53E117A96057EAF19C41380D0E87F1C2'
        - 'IMPHASH=d144de8117df2beceaba2201ad304764'
        - 'IMPHASH=12ce1c0f3f5837ecc18a3782408fa975'
        - 'IMPHASH=4fbf3f084fbbb2470b80b2013134df35'
        - 'IMPHASH=49b639b4acbecc49d72a01f357aa4930'
        - 'IMPHASH=680dad9e300346e05a85023965867201'
        - 'IMPHASH=21aa085d54992511b9f115355e468782'

Stage 3: selection_3

selection_3:
    OriginalFileName: 'AdFind.exe'

Stage 4: not filter

filter:
    Image|endswith: '\AdFind.exe'

Exclusions

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

FieldKindExcluded values
Imageends_with\AdFind.exe

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
CommandLinematch
  • dclist
  • oudmp corpus 2 (sigma 2)
  • -sc u: corpus 2 (sigma 2)
  • -subnets -f corpus 2 (sigma 2)
  • adinfo corpus 2 (sigma 2)
  • computer_pwdnotreqd corpus 2 (sigma 2)
  • computers_active corpus 2 (sigma 2)
  • computers_pwdnotreqd corpus 2 (sigma 2)
  • dcmodes corpus 2 (sigma 2)
  • domainlist corpus 2 (sigma 2)
  • domainncs corpus 2 (sigma 2)
  • dompol corpus 2 (sigma 2)
  • fspdmp corpus 2 (sigma 2)
  • gpodmp corpus 2 (sigma 2)
  • name="Domain Admins" corpus 2 (sigma 2)
  • objectcategory= corpus 3 (sigma 2, splunk 1)
  • subnetdmp corpus 2 (sigma 2)
  • trustdmp corpus 2 (sigma 2)
  • users_noexpire corpus 2 (sigma 2)
Hashesmatch
  • IMPHASH=12ce1c0f3f5837ecc18a3782408fa975 corpus 2 (sigma 2)
  • IMPHASH=21aa085d54992511b9f115355e468782 corpus 2 (sigma 2)
  • IMPHASH=49b639b4acbecc49d72a01f357aa4930 corpus 2 (sigma 2)
  • IMPHASH=4fbf3f084fbbb2470b80b2013134df35 corpus 2 (sigma 2)
  • IMPHASH=53E117A96057EAF19C41380D0E87F1C2 corpus 2 (sigma 2)
  • IMPHASH=680dad9e300346e05a85023965867201 corpus 2 (sigma 2)
  • IMPHASH=BCA5675746D13A1F246E2DA3C2217492 corpus 2 (sigma 2)
  • IMPHASH=d144de8117df2beceaba2201ad304764 corpus 2 (sigma 2)
OriginalFileNameeq
  • AdFind.exe corpus 4 (sigma 2, elastic 1, splunk 1)