Windows Security Log: Obfuscated cmd Execution of clip.exe via PowerShell Clipboard Patterns (EID 4697)

Alerts on service creation (Windows 4697) with CLIP.exe command-line patterns that indicate obfuscated PowerShell execution.

FreeReviewedSigma · High · v2
Product
windows
Service
security
Author
Jonathan Cheong, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-13
Updated
2026-07-31
title: "Windows Security Log: Obfuscated cmd Execution of clip.exe via PowerShell Clipboard Patterns (EID 4697)"
id: 7360fc77-bad8-4f2f-a490-6578ecfe9e06
related:
  - id: f7385ee2-0e0c-11eb-adc1-0242ac120002
    type: derived
  - id: 4edf51e1-cb83-4e1a-bc39-800e396068e3
    type: derived
status: test
description: This rule flags Windows service-creation events (Security EID 4697) where the configured service binary path contains command-line indicators consistent with executing clip.exe in an obfuscated way and invoking PowerShell clipboard-related calls. Such behavior can enable stealthy execution and payload delivery by blending script execution into service installation activity. The detection relies on the Security log field ServiceFileName and matches specific substrings present in the service binary path.
references:
  - https://github.com/SigmaHQ/sigma/issues/1009
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/builtin/security/win_security_invoke_obfuscation_clip_services_security.yml
author: Jonathan Cheong, oscd.community, Huntrule Team
date: 2020-10-13
modified: 2022-11-27
tags:
  - attack.stealth
  - attack.t1027
  - attack.execution
  - attack.t1059.001
logsource:
  product: windows
  service: security
  definition: The 'System Security Extension' audit subcategory need to be enabled to log the EID 4697
detection:
  selection:
    EventID: 4697
    ServiceFileName|contains|all:
      - cmd
      - "&&"
      - "clipboard]::"
  condition: selection
falsepositives:
  - Unknown
level: high
license: DRL-1.1