{"id":"52a85084-6989-40c3-8f32-091e12e13f09","title":"smbexec.py Service Installation","description":"Detects the use of smbexec.py tool by detecting a specific service installation","author":"Omer Faruk Celik","status":"test","level":"high","date":"2018-03-20","modified":"2023-11-09","tags":["attack.lateral-movement","attack.execution","attack.t1021.002","attack.t1569.002"],"technique_ids":["T1021.002","T1569.002"],"logsource":{"product":"windows","service":"system"},"falsepositives":["Unknown"],"references":["https://blog.ropnop.com/using-credentials-to-own-windows-boxes-part-2-psexec-and-services/","https://github.com/fortra/impacket/blob/33058eb2fde6976ea62e04bc7d6b629d64d44712/examples/smbexec.py#L286-L296","https://github.com/fortra/impacket/blob/edef71f17bc1240f9f8c957bbda98662951ac3ec/examples/smbexec.py#L60"],"source_path":"rules/windows/builtin/system/service_control_manager/win_system_hack_smbexec.yml","source_sha256":"38f1b0758327c40523569062e0621acaded6f9184a56828a3c9bdd45d2091175","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/builtin/system/service_control_manager/win_system_hack_smbexec.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: smbexec.py Service Installation\nid: 52a85084-6989-40c3-8f32-091e12e13f09\nstatus: test\ndescription: Detects the use of smbexec.py tool by detecting a specific service installation\nreferences:\n    - https://blog.ropnop.com/using-credentials-to-own-windows-boxes-part-2-psexec-and-services/\n    - https://github.com/fortra/impacket/blob/33058eb2fde6976ea62e04bc7d6b629d64d44712/examples/smbexec.py#L286-L296\n    - https://github.com/fortra/impacket/blob/edef71f17bc1240f9f8c957bbda98662951ac3ec/examples/smbexec.py#L60 # Old service name\nauthor: Omer Faruk Celik\ndate: 2018-03-20\nmodified: 2023-11-09\ntags:\n    - attack.lateral-movement\n    - attack.execution\n    - attack.t1021.002\n    - attack.t1569.002\nlogsource:\n    product: windows\n    service: system\ndetection:\n    selection_eid:\n        Provider_Name: 'Service Control Manager'\n        EventID: 7045\n    selection_service_name:\n        ServiceName: 'BTOBTO'\n    selection_service_image:\n        ImagePath|contains:\n            - '.bat & del '\n            - '__output 2^>^&1 >'\n    condition: selection_eid and 1 of selection_service_*\nfalsepositives:\n    - Unknown\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1021.002","id":"T1021.002","name":"SMB/Windows Admin Shares","page":"techniques/enterprise/T1021.002/"},{"key":"enterprise/T1569.002","id":"T1569.002","name":"Service Execution","page":"techniques/enterprise/T1569.002/"}],"data_path":"data/detection-rules/52a85084-6989-40c3-8f32-091e12e13f09.json","kind":"sigma"}
