Skip to content
Threat Feed
medium advisory

Detection of Linux User Account Creation

Adversaries often create new user accounts on Linux systems using 'useradd' or 'adduser' to establish persistence and facilitate privilege escalation, which can be identified through process execution monitoring.

The creation of new local user accounts on Linux systems is a common mechanism for adversaries to maintain long-term persistence after achieving initial access to a target host. Threat actors utilize standard utilities such as 'useradd' or 'adduser' to add unauthorized accounts, often with elevated privileges, to ensure they can regain access if their initial entry point is neutralized. This activity is a significant indicator of potential compromise, as it deviates from standard system administration workflows. Defenders should monitor for these specific command-line executions via EDR telemetry to differentiate between legitimate administrative account provisioning and malicious unauthorized activity. Detection engineers should correlate these events with parent process information, such as suspicious shell processes or web server child processes, to increase the fidelity of the alerts.

Impact

Successful creation of unauthorized user accounts allows attackers to maintain persistence, bypass credential rotation policies, escalate privileges, and gain a foothold for lateral movement across the internal network. If left undetected, this allows attackers to remain active within the environment for extended periods, significantly increasing the risk of data exfiltration and further system degradation.

Recommendation

Prioritize the identification of unauthorized account creation by implementing telemetry monitoring for process execution on Linux endpoints.

  • Deploy the provided Sigma rule to your SIEM environment to alert on 'useradd' or 'adduser' process executions.
  • Integrate Sysmon for Linux or equivalent EDR process telemetry into your SIEM to ensure visibility into process creation events (Event ID 1).
  • Baseline expected administrative account creation activity to tune the detection and reduce false positives.
  • Investigate the parent process of any detected 'useradd' or 'adduser' execution to determine if the process originated from an interactive shell or a suspicious background process.

Immediate actions

Deploy the Linux user account creation Sigma rule.

Detection Engineering 48h

Threat Hunt

Search historical logs for 'useradd' or 'adduser' activity to establish a baseline of normal administrative provisioning.

T1136.001 medium high confidence convert to detection

Data: Process execution logs

Mitigations

Implement strict access controls and audit logging for system configuration files like /etc/passwd.

short_term IT Operations

T1136.001

Detection coverage 1

Detect Linux User Account Creation

medium

Detects the creation of new user accounts on Linux systems using 'useradd' or 'adduser' command-line tools.

sigma tactics: persistence techniques: T1136.001 sources: process_creation, linux

Detection queries are available on the platform. Get full rules →