Latest alertCVE-2018-11776 in Apache Struts Confirmed Exploited in the WildRead
Search all news in the platform

Detection rule

PUA - AdFind Suspicious Execution

HighTest-data validatedSigmaHQ (community)T1018T1069.002T1087.002T1482

Overview

Detects AdFind execution with common flags seen used during attacks

Rule id
9a132afa-654e-11eb-ae93-0242ac130002
ATT&CK techniques
T1018 Remote System Discovery, T1069.002 Permission Groups Discovery: Domain Groups, T1087.002 Account Discovery: Domain Account, T1482 Domain Trust Discovery
Severity
High
Confidence
Low
Origin
SigmaHQ (community)
SigmaHQ status
test
Used in defense packs
The Gentlemen, INC Ransom, Akira, safepay, Play, everest

Validation

  1. ExperimentalSyntax checked only. Not yet tested on events.
  2. Test-data validatedMatched positive test events and ignored near-miss events. Not yet run in a production SIEM.
  3. SIEM-validatedRun in a real SIEM, with a recorded result.

2 of 2 positive test events matched; 1 of 1 near-miss events were correctly ignored. Community rule reused unmodified from SigmaHQ. OffSet7 converted it and tested it on synthetic events.

Detection logic and queries

Queries are shown exactly as generated. Test them in your environment before you deploy them.

Sigma

Sigma (YAML) · 9a132afa-654e-11eb-ae93-0242ac130002

Download
title: PUA - AdFind Suspicious Execution
id: 9a132afa-654e-11eb-ae93-0242ac130002
related:
    - id: 455b9d50-15a1-4b99-853f-8d37655a4c1b
      type: similar
    - id: 75df3b17-8bcc-4565-b89b-c9898acef911
      type: obsolete
status: test
description: Detects AdFind execution with common flags seen used during attacks
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
    - https://github.com/redcanaryco/atomic-red-team/blob/0f229c0e42bfe7ca736a14023836d65baa941ed2/atomics/T1087.002/T1087.002.md#atomic-test-7---adfind---enumerate-active-directory-user-objects
author: Janantha Marasinghe (https://github.com/blueteam0ps), FPT.EagleEye Team, omkar72, oscd.community
date: 2021-02-02
modified: 2025-10-24
tags:
    - attack.discovery
    - attack.t1018
    - attack.t1087.002
    - attack.t1482
    - attack.t1069.002
    - stp.1u
logsource:
    category: process_creation
    product: windows
detection:
    selection:
        CommandLine|contains:
            - 'domainlist'
            - 'trustdmp'
            - 'dcmodes'
            - 'adinfo'
            - '-sc dclist'
            - 'computer_pwdnotreqd'
            - 'objectcategory='
            - '-subnets -f'
            - 'name="Domain Admins"'
            - '-sc u:'
            - 'domainncs'
            - 'dompol'
            - ' oudmp '
            - 'subnetdmp'
            - 'gpodmp'
            - 'fspdmp'
            - 'users_noexpire'
            - 'computers_active'
            - 'computers_pwdnotreqd'
    condition: selection
falsepositives:
    - Legitimate admin activity
level: high
regression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_pua_adfind_susp_usage/info.yml
simulation:
    - type: atomic-red-team
      name: Adfind - Enumerate Active Directory Computer Objects
      technique: T1018
      atomic_guid: a889f5be-2d54-4050-bd05-884578748bb4
    - type: atomic-red-team
      name: Adfind - Enumerate Active Directory Domain Controller Objects
      technique: T1018
      atomic_guid: 5838c31e-a0e2-4b9f-b60a-d79d2cb7995e

QRadar AQL

IBM QRadar AQL (hunting query)Hunting query

Hunting search for the Log Activity tab or the API. It is not a QRadar rule.

AQL search for the Log Activity tab or the API. It is NOT a deployable QRadar rule: real-time detection in QRadar is a CRE (Custom Rule Engine) rule, for which this build only writes a design specification (qradar_cre).

SELECT * FROM events WHERE devicetype=12 AND (LOWER(Command) LIKE '%domainlist%' OR LOWER(Command) LIKE '%trustdmp%' OR LOWER(Command) LIKE '%dcmodes%' OR LOWER(Command) LIKE '%adinfo%' OR LOWER(Command) LIKE '%-sc dclist%' OR LOWER(Command) LIKE '%computer_pwdnotreqd%' OR LOWER(Command) LIKE '%objectcategory=%' OR LOWER(Command) LIKE '%-subnets -f%' OR LOWER(Command) LIKE '%name="domain admins"%' OR LOWER(Command) LIKE '%-sc u:%' OR LOWER(Command) LIKE '%domainncs%' OR LOWER(Command) LIKE '%dompol%' OR LOWER(Command) LIKE '% oudmp %' OR LOWER(Command) LIKE '%subnetdmp%' OR LOWER(Command) LIKE '%gpodmp%' OR LOWER(Command) LIKE '%fspdmp%' OR LOWER(Command) LIKE '%users_noexpire%' OR LOWER(Command) LIKE '%computers_active%' OR LOWER(Command) LIKE '%computers_pwdnotreqd%')

QRadar CRE

Design for the QRadar Rule Wizard. It is not importable and has not been tested in QRadar.

Rule name
OffSet7: PUA - AdFind Suspicious Execution
Rule type
Event rule (Local)
Log source types
Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1

Building blocks

  • BB:OffSet7:PUA AdFind Suspicious Execution:selection (match)
    All test lines must match (AND).
    • Command contains: domainlist, trustdmp, dcmodes, adinfo, -sc dclist, computer_pwdnotreqd, objectcategory=, -subnets -f, name="Domain Admins", -sc u:, domainncs, dompol, oudmp, subnetdmp, gpodmp, fspdmp, users_noexpire, computers_active, computers_pwdnotreqd

Main rule, option A (building blocks)

  1. when the event(s) were detected by one or more of these log source types: Microsoft Windows Security Event Log DSM: Security 4688 (with command-line auditing) or Sysmon EID 1
  2. when an event matches the condition built from these building blocks: BB:OffSet7:PUA AdFind Suspicious Execution:selection

Main rule, option B (AQL filter test)

  1. when the event matches this AQL filter query: devicetype=12 AND (LOWER(Command) LIKE '%domainlist%' OR LOWER(Command) LIKE '%trustdmp%' OR LOWER(Command) LIKE '%dcmodes%' OR LOWER(Command) LIKE '%adinfo%' OR LOWER(Command) LIKE '%-sc dclist%' OR LOWER(Command) LIKE '%computer_pwdnotreqd%' OR LOWER(Command) LIKE '%objectcategory=%' OR LOWER(Command) LIKE '%-subnets -f%' OR LOWER(Command) LIKE '%name="domain admins"%' OR LOWER(Command) LIKE '%-sc u:%' OR LOWER(Command) LIKE '%domainncs%' OR LOWER(Command) LIKE '%dompol%' OR LOWER(Command) LIKE '% oudmp %' OR LOWER(Command) LIKE '%subnetdmp%' OR LOWER(Command) LIKE '%gpodmp%' OR LOWER(Command) LIKE '%fspdmp%' OR LOWER(Command) LIKE '%users_noexpire%' OR LOWER(Command) LIKE '%computers_active%' OR LOWER(Command) LIKE '%computers_pwdnotreqd%')

Rule response

  • Severity 7, credibility 6, relevance 7
  • Ensure the detected event is part of an offense; index offense on Log Source (host) and annotate with the rule title and OffSet7 rule id
  • Respond no more than once per 30 minutes per Log Source (tune per environment)

Limitations

  • QRadar AQL LIKE / CRE string tests are case-sensitive unless the property is lower-cased; the AQL option uses LOWER() where the backend applied it.

Splunk

Splunk SPLSearch

Search for Splunk with Windows/Sysmon field names. A scheduled search or ES correlation search also needs a schedule, time range, throttling and an adaptive response, set in your environment.

CommandLine IN ("*domainlist*", "*trustdmp*", "*dcmodes*", "*adinfo*", "*-sc dclist*", "*computer_pwdnotreqd*", "*objectcategory=*", "*-subnets -f*", "*name=\"Domain Admins\"*", "*-sc u:*", "*domainncs*", "*dompol*", "* oudmp *", "*subnetdmp*", "*gpodmp*", "*fspdmp*", "*users_noexpire*", "*computers_active*", "*computers_pwdnotreqd*")

Splunk savedsearches.conf stanzaScheduled search template

Template stanza. Review schedule, alert actions and index/sourcetype for your environment before enabling.

[default]
dispatch.earliest_time = -30d
dispatch.latest_time = now

[PUA - AdFind Suspicious Execution]
description = Detects AdFind execution with common flags seen used during attacks
search = CommandLine IN ("*domainlist*", "*trustdmp*", "*dcmodes*", "*adinfo*", "*-sc dclist*", "*computer_pwdnotreqd*", "*objectcategory=*", "*-subnets -f*", "*name=\"Domain Admins\"*", "*-sc u:*", "*domainncs*", "*dompol*", "* oudmp *", "*subnetdmp*", "*gpodmp*", "*fspdmp*", "*users_noexpire*", "*computers_active*", "*computers_pwdnotreqd*")

Microsoft Sentinel

Microsoft Sentinel KQL (ASIM)Hunting query

Hunting query over ASIM-normalized tables. An analytics rule also needs a schedule, entity mapping and alert grouping.

imProcessCreate
| where TargetProcessCommandLine contains "domainlist" or TargetProcessCommandLine contains "trustdmp" or TargetProcessCommandLine contains "dcmodes" or TargetProcessCommandLine contains "adinfo" or TargetProcessCommandLine contains "-sc dclist" or TargetProcessCommandLine contains "computer_pwdnotreqd" or TargetProcessCommandLine contains "objectcategory=" or TargetProcessCommandLine contains "-subnets -f" or TargetProcessCommandLine contains "name=\"Domain Admins\"" or TargetProcessCommandLine contains "-sc u:" or TargetProcessCommandLine contains "domainncs" or TargetProcessCommandLine contains "dompol" or TargetProcessCommandLine contains " oudmp " or TargetProcessCommandLine contains "subnetdmp" or TargetProcessCommandLine contains "gpodmp" or TargetProcessCommandLine contains "fspdmp" or TargetProcessCommandLine contains "users_noexpire" or TargetProcessCommandLine contains "computers_active" or TargetProcessCommandLine contains "computers_pwdnotreqd"

Defender XDR

Microsoft Defender XDR KQLHunting query

Advanced hunting query. A custom detection rule also needs a frequency, impacted entities and actions.

DeviceProcessEvents
| where ProcessCommandLine contains "domainlist" or ProcessCommandLine contains "trustdmp" or ProcessCommandLine contains "dcmodes" or ProcessCommandLine contains "adinfo" or ProcessCommandLine contains "-sc dclist" or ProcessCommandLine contains "computer_pwdnotreqd" or ProcessCommandLine contains "objectcategory=" or ProcessCommandLine contains "-subnets -f" or ProcessCommandLine contains "name=\"Domain Admins\"" or ProcessCommandLine contains "-sc u:" or ProcessCommandLine contains "domainncs" or ProcessCommandLine contains "dompol" or ProcessCommandLine contains " oudmp " or ProcessCommandLine contains "subnetdmp" or ProcessCommandLine contains "gpodmp" or ProcessCommandLine contains "fspdmp" or ProcessCommandLine contains "users_noexpire" or ProcessCommandLine contains "computers_active" or ProcessCommandLine contains "computers_pwdnotreqd"

Elastic

Elastic Lucene (ECS)Hunting query

Lucene query over ECS fields (Winlogbeat/Elastic Agent Windows mappings). A detection rule also needs an index pattern, schedule and actions.

process.command_line:(*domainlist* OR *trustdmp* OR *dcmodes* OR *adinfo* OR *\-sc\ dclist* OR *computer_pwdnotreqd* OR *objectcategory\=* OR *\-subnets\ \-f* OR *name\=\"Domain\ Admins\"* OR *\-sc\ u\:* OR *domainncs* OR *dompol* OR *\ oudmp\ * OR *subnetdmp* OR *gpodmp* OR *fspdmp* OR *users_noexpire* OR *computers_active* OR *computers_pwdnotreqd*)

Elastic EQL (ECS)Hunting query

EQL query over ECS fields. Usable in an Elastic Security EQL rule after review; index pattern and schedule are set per environment.

any where process.command_line like~ ("*domainlist*", "*trustdmp*", "*dcmodes*", "*adinfo*", "*-sc dclist*", "*computer_pwdnotreqd*", "*objectcategory=*", "*-subnets -f*", "*name=\"Domain Admins\"*", "*-sc u:*", "*domainncs*", "*dompol*", "* oudmp *", "*subnetdmp*", "*gpodmp*", "*fspdmp*", "*users_noexpire*", "*computers_active*", "*computers_pwdnotreqd*")

Elastic ES|QL (ECS)Hunting query

ES|QL query over ECS fields; the FROM clause uses * and must be narrowed to your indices.

from * metadata _id, _index, _version | where process.command_line like "*domainlist*" or process.command_line like "*trustdmp*" or process.command_line like "*dcmodes*" or process.command_line like "*adinfo*" or process.command_line like "*-sc dclist*" or process.command_line like "*computer_pwdnotreqd*" or process.command_line like "*objectcategory=*" or process.command_line like "*-subnets -f*" or process.command_line like "*name=\"Domain Admins\"*" or process.command_line like "*-sc u:*" or process.command_line like "*domainncs*" or process.command_line like "*dompol*" or process.command_line like "* oudmp *" or process.command_line like "*subnetdmp*" or process.command_line like "*gpodmp*" or process.command_line like "*fspdmp*" or process.command_line like "*users_noexpire*" or process.command_line like "*computers_active*" or process.command_line like "*computers_pwdnotreqd*"

Required telemetry

Log source
product: windows · category: process_creation
Fields used
CommandLine

False positives

  • Legitimate admin activity

Investigation and response

No OffSet7 investigation guidance has been written for this rule yet. Start from the false positives above and the ATT&CK technique pages.

References

Author and attribution

Author
Janantha Marasinghe (https://github.com/blueteam0ps), FPT.EagleEye Team, omkar72, oscd.community
Source
SigmaHQ · rules/windows/process_creation/proc_creation_win_pua_adfind_susp_usage.yml
Upstream commit
9688134317a2
Licence
Detection Rule License (DRL) 1.1

Version history

  1. Version 1Imported from SigmaHQ
  2. OffSet7 build · SigmaHQ 9688134317a2

Related rules