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 - cve.2021-42278
13 - cve.2021-42287
14 - attack.persistence
15 - attack.privilege-escalation
16 - attack.t1078
17logsource:
18 service: security
19 product: windows
20detection:
21 # 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)
22 selection1:
23 SamAccountName|startswith: 'SAMTHEADMIN-'
24 SamAccountName|endswith: '$'
25 selection2:
26 TargetUserName|startswith: 'SAMTHEADMIN-'
27 TargetUserName|endswith: '$'
28 condition: 1 of selection*
29fields:
30 - EventID
31 - SamAccountName
32 - SubjectUserName
33 - TargetUserName
34falsepositives:
35 - Unknown
36level: critical
References
Related rules
- AWS Key Pair Import Activity
- Account Tampering - Suspicious Failed Logon Reasons
- Activity From Anonymous IP Address
- Application Using Device Code Authentication Flow
- Applications That Are Using ROPC Authentication Flow