{"id":"39698b3f-da92-4bc6-bfb5-645a98386e45","title":"Win Susp Computer Name Containing Samtheadmin","description":"Detects suspicious computer name samtheadmin-{1..100}$ generated by hacktool","author":"elhoim","status":"test","level":"critical","date":"2022-09-09","modified":"2023-01-04","tags":["attack.initial-access","cve.2021-42278","cve.2021-42287","attack.persistence","attack.privilege-escalation","attack.stealth","attack.t1078"],"technique_ids":["T1078"],"logsource":{"service":"security","product":"windows"},"falsepositives":["Unknown"],"references":["https://twitter.com/malmoeb/status/1511760068743766026","https://github.com/helloexp/0day/blob/614227a7b9beb0e91e7e2c6a5e532e6f7a8e883c/00-CVE_EXP/CVE-2021-42287/sam-the-admin/sam_the_admin.py"],"source_path":"rules/windows/builtin/security/win_security_susp_computer_name.yml","source_sha256":"7008dd1bacdcba1088567f2d521a6f18dddd10d9e6f5021550ebbfe54509966f","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/builtin/security/win_security_susp_computer_name.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Win Susp Computer Name Containing Samtheadmin\nid: 39698b3f-da92-4bc6-bfb5-645a98386e45\nstatus: test\ndescription: Detects suspicious computer name samtheadmin-{1..100}$ generated by hacktool\nreferences:\n    - https://twitter.com/malmoeb/status/1511760068743766026\n    - https://github.com/helloexp/0day/blob/614227a7b9beb0e91e7e2c6a5e532e6f7a8e883c/00-CVE_EXP/CVE-2021-42287/sam-the-admin/sam_the_admin.py\nauthor: elhoim\ndate: 2022-09-09\nmodified: 2023-01-04\ntags:\n    - attack.initial-access\n    - cve.2021-42278\n    - cve.2021-42287\n    - attack.persistence\n    - attack.privilege-escalation\n    - attack.stealth\n    - attack.t1078\nlogsource:\n    service: security\n    product: windows\ndetection:\n    # 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)\n    selection1:\n        SamAccountName|startswith: 'SAMTHEADMIN-'\n        SamAccountName|endswith: '$'\n    selection2:\n        TargetUserName|startswith: 'SAMTHEADMIN-'\n        TargetUserName|endswith: '$'\n    condition: 1 of selection*\nfalsepositives:\n    - Unknown\nlevel: critical\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1078","id":"T1078","name":"Valid Accounts","page":"techniques/enterprise/T1078/"}],"data_path":"data/detection-rules/39698b3f-da92-4bc6-bfb5-645a98386e45.json","kind":"sigma"}
