Win Susp Computer Name Containing Samtheadmin

Detects suspicious computer name samtheadmin-{1..100}$ generated by hacktool

Sigma rule (View on GitHub)

 1title: Win Susp Computer Name Containing Samtheadmin
 2id: 39698b3f-da92-4bc6-bfb5-645a98386e45
 3status: test
 4description: Detects suspicious computer name samtheadmin-{1..100}$ generated by hacktool
 5references:
 6    - https://twitter.com/malmoeb/status/1511760068743766026
 7    - https://github.com/helloexp/0day/blob/614227a7b9beb0e91e7e2c6a5e532e6f7a8e883c/00-CVE_EXP/CVE-2021-42287/sam-the-admin/sam_the_admin.py
 8author: elhoim
 9date: 2022-09-09
10modified: 2023-01-04
11tags:
12    - attack.initial-access
13    - attack.defense-evasion
14    - cve.2021-42278
15    - cve.2021-42287
16    - attack.persistence
17    - attack.privilege-escalation
18    - attack.t1078
19logsource:
20    service: security
21    product: windows
22detection:
23    # Not adding an EventID on purpose to try to match on any event in security (including use of account), not just 4741 (computer account created)
24    selection1:
25        SamAccountName|startswith: 'SAMTHEADMIN-'
26        SamAccountName|endswith: '$'
27    selection2:
28        TargetUserName|startswith: 'SAMTHEADMIN-'
29        TargetUserName|endswith: '$'
30    condition: 1 of selection*
31fields:
32    - EventID
33    - SamAccountName
34    - SubjectUserName
35    - TargetUserName
36falsepositives:
37    - Unknown
38level: critical

References

Related rules

to-top