{"id":"138d3531-8793-4f50-a2cd-f291b2863d78","title":"Suspicious Service Path Modification","description":"Detects service path modification via the \"sc\" binary to a suspicious command or path","author":"Victor Sergeev, oscd.community, Nasreddine Bencherchali (Nextron Systems)","status":"test","level":"high","date":"2019-10-21","modified":"2022-11-18","tags":["attack.persistence","attack.privilege-escalation","attack.t1543.003"],"technique_ids":["T1543.003"],"logsource":{"category":"process_creation","product":"windows"},"falsepositives":["Unlikely"],"references":["https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1543.003/T1543.003.md","https://web.archive.org/web/20180331144337/https://www.fireeye.com/blog/threat-research/2018/03/sanny-malware-delivery-method-updated-in-recently-observed-attacks.html"],"source_path":"rules/windows/process_creation/proc_creation_win_sc_service_path_modification.yml","source_sha256":"bc5e360369900dfea758f5e7ee55d8a9ab839c152e3214b0e93954708ef2d4b9","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_sc_service_path_modification.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Suspicious Service Path Modification\nid: 138d3531-8793-4f50-a2cd-f291b2863d78\nstatus: test\ndescription: Detects service path modification via the \"sc\" binary to a suspicious command or path\nreferences:\n    - https://github.com/redcanaryco/atomic-red-team/blob/f339e7da7d05f6057fdfcdd3742bfcf365fee2a9/atomics/T1543.003/T1543.003.md\n    - https://web.archive.org/web/20180331144337/https://www.fireeye.com/blog/threat-research/2018/03/sanny-malware-delivery-method-updated-in-recently-observed-attacks.html\nauthor: Victor Sergeev, oscd.community, Nasreddine Bencherchali (Nextron Systems)\ndate: 2019-10-21\nmodified: 2022-11-18\ntags:\n    - attack.persistence\n    - attack.privilege-escalation\n    - attack.t1543.003\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection:\n        Image|endswith: '\\sc.exe'\n        CommandLine|contains|all:\n            - 'config'\n            - 'binPath'\n        CommandLine|contains:\n            # Add more suspicious commands or binaries\n            - 'powershell'\n            - 'cmd '\n            - 'mshta'\n            - 'wscript'\n            - 'cscript'\n            - 'rundll32'\n            - 'svchost'\n            - 'dllhost'\n            - 'cmd.exe /c'\n            - 'cmd.exe /k'\n            - 'cmd.exe /r'\n            - 'cmd /c'\n            - 'cmd /k'\n            - 'cmd /r'\n            # Add more suspicious paths\n            - 'C:\\Users\\Public'\n            - '\\Downloads\\'\n            - '\\Desktop\\'\n            - '\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\'\n            - 'C:\\Windows\\TEMP\\'\n            - '\\AppData\\Local\\Temp'\n    condition: selection\nfalsepositives:\n    - Unlikely\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1543.003","id":"T1543.003","name":"Windows Service","page":"techniques/enterprise/T1543.003/"}],"data_path":"data/detection-rules/138d3531-8793-4f50-a2cd-f291b2863d78.json","kind":"sigma"}
