Detection rules › Sigma
Service Installation in Suspicious Folder
Detects service installation in suspicious folder appdata
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Persistence | |
| Privilege Escalation |
Telemetry coverage
| Provider | Record / event type |
|---|---|
| Service-Control-Manager | Event ID 7045: A service was installed in the system. |
Rule body
title: Service Installation in Suspicious Folder
id: 5e993621-67d4-488a-b9ae-b420d08b96cb
status: test
description: Detects service installation in suspicious folder appdata
author: pH-T (Nextron Systems)
references:
- Internal Research
date: 2022-03-18
modified: 2024-01-18
tags:
- attack.persistence
- attack.privilege-escalation
- car.2013-09-005
- attack.t1543.003
logsource:
product: windows
service: system
detection:
selection:
Provider_Name: 'Service Control Manager'
EventID: 7045
ImagePath|contains:
- '\AppData\'
- '\\\\127.0.0.1'
- '\\\\localhost'
filter_optional_zoom:
ServiceName: 'Zoom Sharing Service'
ImagePath|contains: ':\Program Files\Common Files\Zoom\Support\CptService.exe'
condition: selection and not 1 of filter_optional_*
falsepositives:
- Unknown
level: medium
Stages and Predicates
Stage 0: condition
selection and not 1 of filter_optional_*Stage 1: selection
selection:
Provider_Name: 'Service Control Manager'
EventID: 7045
ImagePath|contains:
- '\AppData\'
- '\\\\127.0.0.1'
- '\\\\localhost'
Stage 2: not filter_optional_zoom
filter_optional_zoom:
ServiceName: 'Zoom Sharing Service'
ImagePath|contains: ':\Program Files\Common Files\Zoom\Support\CptService.exe'
Exclusions
The rule actively suppresses these predicates.
| Field | Kind | Excluded values | Search |
|---|---|---|---|
ImagePath | match | :\Program Files\Common Files\Zoom\Support\CptService.exe | excludes:ImagePath field:"ImagePath" value:":\Program Files\Common Files\Zoom\Support\CptService.exe" |
ServiceName | eq | Zoom Sharing Service | excludes:ServiceName field:"ServiceName" value:"Zoom Sharing Service" |
Indicators
These rows show field, operator, and value matches.
| Field | Kind | Values | Search |
|---|---|---|---|
ImagePath | match |
| field:"ImagePath" kind:match |
Provider_Name | eq |
| field:"Provider_Name" kind:eq value:"Service Control Manager" |