VeriKQL by Kaushik Saha

T1531 Account Access Removal

Impacton attack.mitre.org

ATT&CK Enterprise 20.0 · 20.1 released, update in review

How MITRE detects it

DET0120 Account Access Removal via Multi-Platform Audit Correlation

AN0334 Windows

Correlated user account modification (reset, disable, deletion) events with anomalous process lineage (e.g., PowerShell or net.exe from an interactive session), especially outside of IT admin change windows or by non-admin users.

MITRE log sourceIn Microsoft Sentinel
WinEventLog:SecurityEventCode=4723, 4724, 4740
  • Windows Security Events via AMA → SecurityEvent
    SecurityEvent | where EventID in (4723, 4724, 4740)
  • Security Events via Legacy Agent → SecurityEvent
    SecurityEvent | where EventID in (4723, 4724, 4740)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Channel == "Security" | where EventID in (4723, 4724, 4740)

The same events land in SecurityEvent (Windows Security Events connectors) or WindowsEvent (Windows Event Forwarding); many built-in rules read SecurityEvent only.

WinEventLog:SysmonEventCode=1
  • Windows event logs (Azure Monitor Agent) → Event
    Event | where Source == "Microsoft-Windows-Sysmon" | where EventID in (1)
  • Windows Forwarded Events → WindowsEvent
    WindowsEvent | where Provider == "Microsoft-Windows-Sysmon" | where EventID in (1)

Sysmon has no dedicated Sentinel connector: it is collected as a Windows event log into Event or WindowsEvent.

AN0335 Linux

Password changes or account deletions via 'passwd', 'userdel', or 'chage' preceded by interactive shell or remote command execution from non-privileged accounts.

MITRE log sourceIn Microsoft Sentinel
auditd:SYSCALLSYSCALL record where exe contains passwd/userdel/chage and auid != rootNot mapped to Sentinel yet.
NSM:ConnectionsAccepted password or publickey for user from remote IPNot mapped to Sentinel yet.

AN0336 macOS

Execution of dscl or sysadminctl commands to disable, delete, or modify users combined with anomalous process ancestry or terminal session launch.

MITRE log sourceIn Microsoft Sentinel
macos:unifiedlogcommand includes dscl . delete or sysadminctl --deleteUserNot mapped to Sentinel yet.
macos:unifiedlogsuccessful sudo or authentication for account not normally associated with admin actionsNot mapped to Sentinel yet.

AN0337 ESXi

Invocation of esxcli 'system account remove' from vCLI, SSH, or vSphere API with anomalous user access or outside maintenance windows.

MITRE log sourceIn Microsoft Sentinel
esxi:hostdmethod=RemoveUser or esxcli system account remove invocationNot mapped to Sentinel yet.
esxi:vpxauser login from unexpected IP or non-admin user roleNot mapped to Sentinel yet.

AN0338 Office Suite

O365 UnifiedAuditLog entries for Remove-Mailbox or Set-Mailbox with account disable or delete actions correlated with suspicious login locations or MFA bypass.

MITRE log sourceIn Microsoft Sentinel
m365:unifiedRemove-Mailbox, Set-Mailboxinterpreted
  • Microsoft 365 (formerly Office 365) → OfficeActivity
    OfficeActivity | where OfficeWorkload in ("Exchange", "SharePoint", "OneDrive", "MicrosoftTeams")
  • Microsoft Defender XDR → CloudAppEvents
    CloudAppEvents

The Office 365 connector brings the Exchange, SharePoint and Teams workloads of the unified audit log; Entra sign-ins in it are in SigninLogs; CloudAppEvents carries Microsoft 365 app activity.

m365:signinlogsSign-in from anomalous location or impossible travel condition
  • Microsoft Entra ID → SigninLogs
    SigninLogs
  • Microsoft Entra ID → AADNonInteractiveUserSignInLogs
    AADNonInteractiveUserSignInLogs
  • Microsoft Entra ID → AADServicePrincipalSignInLogs
    AADServicePrincipalSignInLogs
  • Microsoft Entra ID → AADManagedIdentitySignInLogs
    AADManagedIdentitySignInLogs

Microsoft 365 sign-ins are Microsoft Entra sign-ins.

AN0339 SaaS

Deletion or disablement of user accounts in SaaS platforms such as Okta, Salesforce, or Zoom, correlated with anomalous administrative session attributes or multiple account-removal actions within a short duration.

MITRE log sourceIn Microsoft Sentinel
saas:oktauser.lifecycle.deactivate, user.lifecycle.suspend, user.lifecycle.delete.initiated, user.lifecycle.delete.completedNot mapped to Sentinel yet.

Content Hub rules tagged with it (24)

Rules tagged with this technique (or a sub-technique) in their metadata. Whether one fits your connectors is the coverage view (M2).

How the Content Hub rules for T1531 are built: their tables, filters, joins, schedules and windows.

In Sigma rules

9 SigmaHQ community rules name it or one of its sub-techniques in their tags.

Community rules, not Microsoft's, and not checked by VeriKQL (Sigma is not KQL). From SigmaHQ/sigma at f083329, under the Detection Rule License (DRL) 1.1; each rule is credited to its author.

Mitigations

MITRE ATT&CK® is a registered trademark of The MITRE Corporation. VeriKQL is not affiliated with or endorsed by MITRE. ATT&CK data © The MITRE Corporation, used under its terms of use.