Windows Security: New or Renamed User Account Name Containing '$'

Alerts on Windows user create/rename events when the account name contains '$', excluding the HomeGroupUser$ exception.

FreeReviewedSigma · Medium · v2
Product
windows
Service
security
Author
Ilyas Ochkov, oscd.community (SigmaHQ), DRL 1.1
Published
2019-10-25
Updated
2026-07-31
title: "Windows Security: New or Renamed User Account Name Containing '$'"
id: 9c236287-52b4-44da-b98a-921618858bfe
status: test
description: This rule flags Windows Security events where a user account is created or renamed and the account name contains the '$' character. Attackers may use this to obscure naming and potentially bypass simpler detections that do not account for special characters in user names. The detection relies on Windows account management telemetry from EventID 4720 (user created) and EventID 4781 (user renamed), inspecting SamAccountName and NewTargetUserName fields while excluding the specific HomeGroupUser$ pattern.
references:
  - https://twitter.com/SBousseaden/status/1387743867663958021
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/security/win_security_new_or_renamed_user_account_with_dollar_sign.yml
author: Ilyas Ochkov, oscd.community, Huntrule Team
date: 2019-10-25
modified: 2024-01-16
tags:
  - attack.stealth
  - attack.t1036
logsource:
  product: windows
  service: security
detection:
  selection_create:
    EventID: 4720
    SamAccountName|contains: $
  selection_rename:
    EventID: 4781
    NewTargetUserName|contains: $
  filter_main_homegroup:
    EventID: 4720
    TargetUserName: HomeGroupUser$
  condition: 1 of selection_* and not 1 of filter_main_*
falsepositives:
  - Unknown
level: medium
license: DRL-1.1
related:
  - id: cfeed607-6aa4-4bbd-9627-b637deb723c8
    type: derived