T1136.001 Elastic Security · Elastic

Detect Local Account in Elastic Security

Adversaries may create a local account to maintain persistent access to victim systems. Local accounts can be created using built-in OS commands such as net user /add (Windows), useradd or adduser (Linux), or dscl -create (macOS). Adversaries including Wizard Spider, APT5, Fox Kitten, TeamTNT, and FIN13 have used this technique to establish secondary access that survives credential rotation and does not require persistent remote access tools. Created accounts are often added to the local Administrators group to maximize their utility. Common naming patterns observed in the wild include service-like names (supportaccount, HelpAssistant) designed to blend with legitimate accounts.

MITRE ATT&CK

Tactic
Persistence
Technique
T1136 Create Account
Sub-technique
T1136.001 Local Account
Canonical reference
https://attack.mitre.org/techniques/T1136/001/

Elastic Detection Query

Elastic Security (Elastic)
eql
sequence by host.name with maxspan=10m
  [iam where event.action == "added-user-account" and event.code == "4720"
   | where host.os.type == "windows"
  ]
  [iam where event.action == "added-member-to-group" and event.code == "4732"
   | where group.name in~ ("Administrators", "Remote Desktop Users", "Remote Management Users", "Backup Operators")
  ]

OR

process where event.type == "start"
  and process.name in~ ("net.exe", "net1.exe")
  and process.args : ("user", "/add")
  and process.args : "/add"
  and process.parent.name in~ ("cmd.exe", "powershell.exe", "pwsh.exe", "wscript.exe", "cscript.exe", "mshta.exe", "rundll32.exe", "regsvr32.exe")
high severity high confidence

Detects local account creation on Windows via Security Event 4720 followed by privileged group membership (Event 4732) within 10 minutes, or via process-based detection of net.exe/net1.exe with /add argument spawned from suspicious parent processes.

Data Sources

Windows Security Event Logs (forwarded via Winlogbeat or Elastic Agent)Elastic Endpoint (process telemetry)

Required Tables

logs-system.security*logs-endpoint.events.process*.ds-logs-*

False Positives & Tuning

  • IT administrators creating local service accounts during planned provisioning or onboarding workflows
  • Automated deployment tools (Ansible, SCCM, Chef) that create local accounts as part of application setup
  • Domain join processes that create accounts like DefaultAccount or WDAGUtilityAccount on fresh builds
Download portable Sigma rule (.yml)

Other platforms for T1136.001


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1Create Local User Account with Net User

    Expected signal: Security Event ID 4720 in Windows Security log: TargetUserName=df00testuser, SubjectUserName=<current admin account>. Sysmon Event ID 1: Image=net.exe or net1.exe, CommandLine containing 'user df00testuser /add'. Security Event ID 4722 (account enabled) will follow immediately.

  2. Test 2Create Local Account and Add to Administrators Group

    Expected signal: Security Event ID 4720: account df00admintest created. Security Event ID 4732: member df00admintest added to Administrators group. Sysmon Event ID 1: two sequential net.exe process creation events — one with 'user /add' and one with 'localgroup Administrators /add'. The two events will be within seconds of each other on the same host.

  3. Test 3Create Local Account via PowerShell New-LocalUser

    Expected signal: Security Event ID 4720: TargetUserName=df00pstest, SubjectUserName=<current user>. Security Event ID 4732: member df00pstest added to Administrators group. Sysmon Event ID 1: powershell.exe process with CommandLine containing 'New-LocalUser' and 'Add-LocalGroupMember'. PowerShell ScriptBlock Log Event ID 4104 will capture the full cmdlet invocations with all parameters.

  4. Test 4Create Local Account on Linux with useradd

    Expected signal: auditd SYSCALL records for execve of /usr/sbin/useradd with arguments '-m -s /bin/bash -G sudo df00linuxtest'. syslog or auth.log entry: 'new user: name=df00linuxtest, UID=<uid>, GID=<gid>, home=/home/df00linuxtest, shell=/bin/bash'. auditd USER_MGMT type record for account creation. /etc/passwd and /etc/shadow modification events if file auditing is enabled.

Unlock Pro Content

Get the full detection package for T1136.001 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections