Sigma rule: Potential Active Directory Enumeration Using AD Module - PsScript

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-e60dcaa3ef68, updated 2023-01-22T00:00:00.000Z.

Rule

Title
Potential Active Directory Enumeration Using AD Module - PsScript
Status
test
Level
medium
Author
frack113, Nasreddine Bencherchali
Date
2023-01-22
File
rules/windows/powershell/powershell_script/posh_ps_active_directory_module_dll_import.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects usage of the "Import-Module" cmdlet to load the "Microsoft.ActiveDirectory.Management.dl" DLL. Which is often used by attackers to perform AD enumeration.

Log source

product
windows
category
ps_script
definition
Requirements: Script Block Logging must be enable

Detection

selection_generic:
    ScriptBlockText|contains|all:
        - 'Import-Module '
        - 'Microsoft.ActiveDirectory.Management.dll'
selection_specific:
    ScriptBlockText|contains: 'ipmo Microsoft.ActiveDirectory.Management.dll'
condition: 1 of selection_*

False positives (as the rule lists them)

  • Legitimate use of the library for administrative activity

Tags

  • attack.reconnaissance
  • attack.discovery
  • attack.impact

Related rules

References

Read on 2026-11-03T00:58:21.399Z under licence sigma-drl-1.1@d5f4c36a from https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_active_directory_module_dll_import.yml

Sources and licences

  • SigmaHQ

    "Potential Active Directory Enumeration Using AD Module - PsScript" by frack113, Nasreddine Bencherchali (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_active_directory_module_dll_import.yml.
    Licensed under the Detection Rule License (DRL) 1.1: https://github.com/SigmaHQ/Detection-Rule-License

    Detection Rule License (DRL) 1.1

Cite this page

Dragons Eye Ransomware Tracker, "Sigma rule: Potential Active Directory Enumeration Using AD Module - PsScript",
entity page, dataset version ref-e60dcaa3ef68, updated 2023-01-22T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/9e620995-f2d8-4630-8430-4afd89f77604 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 9e620995-f2d8-4630-8430-4afd89f77604, commit ccbb0369507f796db0b0ae6854c8a2be471b9d84.

Pages change. The dataset version identifies the data, but no archive of old versions is kept, so this citation cannot be replayed later.