Detection rules › Sigma

AADInternals PowerShell Cmdlets Execution - PsScript

Severity
high
Author
Austin Songer (@austinsonger), Nasreddine Bencherchali (Nextron Systems), Swachchhanda Shrawan Poudel (Nextron Systems)
Source
upstream

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.

Event coverage

ProviderEvent IDTitle
PowerShell4104Creating Scriptblock text (MessageNumber of MessageTotal).

Stages and Predicates

Stage 1: selection

or:
ScriptBlockText|contains: Add-AADInt
ScriptBlockText|contains: ConvertTo-AADInt
ScriptBlockText|contains: Disable-AADInt
ScriptBlockText|contains: Enable-AADInt
ScriptBlockText|contains: Export-AADInt
ScriptBlockText|contains: Find-AADInt
ScriptBlockText|contains: Get-AADInt
ScriptBlockText|contains: Grant-AADInt
ScriptBlockText|contains: Initialize-AADInt
ScriptBlockText|contains: Install-AADInt
ScriptBlockText|contains: Invoke-AADInt
ScriptBlockText|contains: Join-AADInt
ScriptBlockText|contains: New-AADInt
ScriptBlockText|contains: Open-AADInt
ScriptBlockText|contains: Read-AADInt
ScriptBlockText|contains: Register-AADInt
ScriptBlockText|contains: Remove-AADInt
ScriptBlockText|contains: Reset-AADInt
ScriptBlockText|contains: Resolve-AADInt
ScriptBlockText|contains: Restore-AADInt
ScriptBlockText|contains: Save-AADInt
ScriptBlockText|contains: Search-AADInt
ScriptBlockText|contains: Send-AADInt
ScriptBlockText|contains: Set-AADInt
ScriptBlockText|contains: Start-AADInt
ScriptBlockText|contains: Unprotect-AADInt
ScriptBlockText|contains: Update-AADInt

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
ScriptBlockTextmatch
  • 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

Neighbors

Broader alternatives (more inclusive than this rule)

These rules match a superset of what this rule catches. They cover the same events plus more. Use them if you want wider coverage and can absorb more false positives.