Sigma rule: AADInternals PowerShell Cmdlets Execution - PsScript

A detection rule from the SigmaHQ repository, shown as its author published it. Dataset version ref-d9912f29c254, updated 2025-02-06T00:00:00.000Z.

Rule

Title
AADInternals PowerShell Cmdlets Execution - PsScript
Status
test
Level
high
Author
Austin Songer (@austinsonger), Nasreddine Bencherchali (Nextron Systems), Swachchhanda Shrawan Poudel (Nextron Systems)
Date
2022-12-23
Modified
2025-02-06
File
rules/windows/powershell/powershell_script/posh_ps_aadinternals_cmdlets_execution.yml
Commit
ccbb0369507f796db0b0ae6854c8a2be471b9d84

Detects ADDInternals Cmdlet execution. A tool for administering Azure AD and Office 365. Which can be abused by threat actors to attack Azure AD or Office 365.

Log source

product
windows
category
ps_script
definition
Script Block Logging must be enable

Detection

selection:
    ScriptBlockText|contains:
        # Since most of the cmdlets use a unique enough string which is "-AADInt" we only used that portion. For a complete list please check the references linked above
        - 'Add-AADInt'
        - 'ConvertTo-AADInt'
        - 'Disable-AADInt'
        - 'Enable-AADInt'
        - 'Export-AADInt'
        - 'Find-AADInt'
        - 'Get-AADInt'
        - 'Grant-AADInt'
        - 'Initialize-AADInt'
        - 'Install-AADInt'
        - 'Invoke-AADInt'
        - 'Join-AADInt'
        - 'New-AADInt'
        - 'Open-AADInt'
        - 'Read-AADInt'
        - 'Register-AADInt'
        - 'Remove-AADInt'
        - 'Reset-AADInt'
        - 'Resolve-AADInt'
        - 'Restore-AADInt'
        - 'Save-AADInt'
        - 'Search-AADInt'
        - 'Send-AADInt'
        - 'Set-AADInt'
        - 'Start-AADInt'
        - 'Unprotect-AADInt'
        - 'Update-AADInt'
condition: selection

False positives (as the rule lists them)

  • Legitimate use of the library for administrative activity

Tags

  • attack.execution
  • attack.reconnaissance
  • attack.discovery
  • attack.credential-access
  • 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_aadinternals_cmdlets_execution.yml

Sources and licences

  • SigmaHQ

    "AADInternals PowerShell Cmdlets Execution - PsScript" by Austin Songer (@austinsonger), Nasreddine Bencherchali (Nextron Systems), Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ). Rule: https://github.com/SigmaHQ/sigma/blob/ccbb0369507f796db0b0ae6854c8a2be471b9d84/rules/windows/powershell/powershell_script/posh_ps_aadinternals_cmdlets_execution.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: AADInternals PowerShell Cmdlets Execution - PsScript",
entity page, dataset version ref-d9912f29c254, updated 2025-02-06T00:00:00.000Z,
https://ransomware-tracker.com/detections/sigma/91e69562-2426-42ce-a647-711b8152ced6 (accessed 2026-11-03).
Underlying source: SigmaHQ rule 91e69562-2426-42ce-a647-711b8152ced6, 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.