Cross-source coverage

T1098.007 / ATT&CK

Account Manipulation: Additional Local or Domain Groups

11 rules across 2 sources.

From MITRE ATT&CK 19.2

An adversary may add additional local or domain groups to an adversary-controlled account to maintain persistent access to a system or domain.

On Windows, accounts may use the net localgroup and net group commands to add existing users to local and domain groups. On Linux, adversaries may use the usermod command for the same purpose.

For example, accounts may be added to the local administrators group on Windows devices to maintain elevated privileges. They may also be added to the Remote Desktop Users group, which allows them to leverage Remote Desktop Protocol to log into the endpoints in the future. Adversaries may also add accounts to VPN user groups to gain future persistence on the network. On Linux, accounts may be added to the sudoers group, allowing them to persistently leverage Sudo and Sudo Caching for elevated privileges.

In Windows environments, machine accounts may also be added to domain groups. This allows the local SYSTEM account to gain privileges on the domain.

Platforms
Windows · macOS · Linux
Telemetry
WinEventLog:Securityauditd:SYSCALLmacos:unifiedlog

How MITRE says to detect it DET0310

Suspicious Addition to Local or Domain Groups

Windows Analytic 0865

Detects unauthorized additions of users or machine accounts to privileged local or domain groups (e.g., Administrators, Remote Desktop Users).

  • WinEventLog:Security EventCode=4728, 4729, 4732, 4733, 4756, 4757

Linux Analytic 0866

Detects unexpected use of usermod, gpasswd, or direct modification of /etc/group to elevate user group membership.

  • auditd:SYSCALL SYSCALL for usermod or /etc/group file modification

macOS Analytic 0867

Detects use of `dseditgroup` or `dscl` to add users to privileged macOS groups (e.g., admin).

  • macos:unifiedlog Process execution or directory service changes

elastic/detection-rules

9 rules
Detection Severity Format
Potential Admin Group Account Addition Medium Elastic TOML
User Added to Privileged Group in Active Directory Medium Elastic TOML
Linux Group Creation Low Elastic TOML
Linux User Added to Privileged Group Low Elastic TOML
Spike in Group Lifecycle Change Events Low Elastic TOML
Spike in Group Management Events Low Elastic TOML
Unusual Group Name Accessed by a User Low Elastic TOML
User Added to the Admin Group Low Elastic TOML
User or Group Creation/Modification Low Elastic TOML

Bert-JanP/Hunting-Queries-Detection-Rules

2 rules
Detection Severity Format
Commandline Group Addition Undefined KQL
MITRE ATT&CK Mapping Undefined KQL

Detection rules belong to the projects that publish them and remain under their own licenses. This site indexes and links to them; it claims no rights in them.