Windows CSExec Service File Creation (csexecsvc.exe)

Flags creation of CSExec service binary csexecsvc.exe on Windows, a strong indicator of service-based execution setup.

FreeReviewedSigma · Medium · v2
Product
windows
Category
file_event
Author
Nasreddine Bencherchali (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2023-08-04
Updated
2026-07-31
title: Windows CSExec Service File Creation (csexecsvc.exe)
id: 40f3616a-1b3a-48d9-b6c7-4a82336a6690
status: test
description: This rule flags file creation events where the target filename ends with \\csexecsvc.exe, indicating CSExec service installation prior to execution. Service-based execution can blend into legitimate Windows service workflows, making detection dependent on reliable file event telemetry. It relies on Windows file creation logs that capture the created target filename.
references:
  - https://github.com/malcomvetter/CSExec
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/file/file_event/file_event_win_csexec_service.yml
author: Nasreddine Bencherchali (Nextron Systems), Huntrule Team
date: 2023-08-04
tags:
  - attack.execution
  - attack.t1569.002
  - attack.s0029
logsource:
  category: file_event
  product: windows
detection:
  selection:
    TargetFilename|endswith: \csexecsvc.exe
  condition: selection
falsepositives:
  - Unknown
level: medium
license: DRL-1.1
related:
  - id: f0e2b768-5220-47dd-b891-d57b96fc0ec1
    type: derived