{"id":"26481afe-db26-4228-b264-25a29fe6efc7","title":"Uncommon Service Installation Image Path","description":"Detects uncommon service installation commands by looking at suspicious or uncommon image path values containing references to encoded powershell commands, temporary paths, etc.\n","author":"Florian Roth (Nextron Systems)","status":"test","level":"medium","date":"2022-03-18","modified":"2024-02-09","tags":["attack.persistence","attack.privilege-escalation","car.2013-09-005","attack.t1543.003"],"technique_ids":["T1543.003"],"logsource":{"product":"windows","service":"system"},"falsepositives":["Unknown"],"references":["Internal Research"],"source_path":"rules/windows/builtin/system/service_control_manager/win_system_service_install_uncommon.yml","source_sha256":"f51547fdb7c0fccde7163c84b50adc0521efc1618958a54fffdc5d4332c34b8a","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/builtin/system/service_control_manager/win_system_service_install_uncommon.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Uncommon Service Installation Image Path\nid: 26481afe-db26-4228-b264-25a29fe6efc7\nrelated:\n    - id: ca83e9f3-657a-45d0-88d6-c1ac280caf53\n      type: obsolete\n    - id: 1d61f71d-59d2-479e-9562-4ff5f4ead16b\n      type: derived\nstatus: test\ndescription: |\n    Detects uncommon service installation commands by looking at suspicious or uncommon image path values containing references to encoded powershell commands, temporary paths, etc.\nreferences:\n    - Internal Research\nauthor: Florian Roth (Nextron Systems)\ndate: 2022-03-18\nmodified: 2024-02-09\ntags:\n    - attack.persistence\n    - attack.privilege-escalation\n    - car.2013-09-005\n    - attack.t1543.003\nlogsource:\n    product: windows\n    service: system\ndetection:\n    selection:\n        Provider_Name: 'Service Control Manager'\n        EventID: 7045\n    suspicious_paths:\n        ImagePath|contains:\n            - '\\\\\\\\.\\\\pipe'\n            - '\\Users\\Public\\'\n            - '\\Windows\\Temp\\'\n    suspicious_encoded_flag:\n        ImagePath|contains: ' -e'\n    suspicious_encoded_keywords:\n        ImagePath|contains:\n            - ' aQBlAHgA' # PowerShell encoded commands\n            - ' aWV4I' # PowerShell encoded commands\n            - ' IAB' # PowerShell encoded commands\n            - ' JAB' # PowerShell encoded commands\n            - ' PAA' # PowerShell encoded commands\n            - ' SQBFAFgA' # PowerShell encoded commands\n            - ' SUVYI' # PowerShell encoded commands\n    filter_optional_thor_remote:\n        ImagePath|startswith: 'C:\\WINDOWS\\TEMP\\thor10-remote\\thor64.exe'\n    filter_main_defender_def_updates:\n        ImagePath|startswith: 'C:\\ProgramData\\Microsoft\\Windows Defender\\Definition Updates\\'\n    condition: selection and ( suspicious_paths or all of suspicious_encoded_* ) and not 1 of filter_main_* and not 1 of filter_optional_*\nfalsepositives:\n    - Unknown\nlevel: medium\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/26481afe-db26-4228-b264-25a29fe6efc7.json","kind":"sigma"}
