PowerShell Module: Obfuscated Clip.exe launcher using cmd with clipboard download payload

Detects obfuscated PowerShell module commands that run cmd with clip.exe/clipboard payload formatting.

FreeReviewedSigma · High · v2
Product
windows
Category
ps_module
Author
Jonathan Cheong, oscd.community (SigmaHQ), DRL 1.1
Published
2020-10-13
Updated
2026-07-31
title: "PowerShell Module: Obfuscated Clip.exe launcher using cmd with clipboard download payload"
id: e55f5e54-835e-407f-bd6d-86b0c3c6ef55
related:
  - id: 73e67340-0d25-11eb-adc1-0242ac120002
    type: derived
  - id: a136cde0-61ad-4a61-9b82-8dc490e60dd2
    type: derived
status: test
description: This rule flags PowerShell module activity where an obfuscated command line invokes cmd to run clip.exe and uses chained actions that include a clipboard-related payload pattern. Obfuscated execution like this can help attackers conceal the true command intent while leveraging clip.exe for indirect data handling. The detection relies on PowerShell module telemetry capturing command payload strings and matching a specific obfuscation/clip.exe plus clipboard payload regex.
references:
  - https://github.com/SigmaHQ/sigma/issues/1009
  - https://github.com/SigmaHQ/sigma/blob/master/rules/windows/powershell/powershell_module/posh_pm_invoke_obfuscation_clip.yml
author: Jonathan Cheong, oscd.community, Huntrule Team
date: 2020-10-13
modified: 2024-04-05
tags:
  - attack.stealth
  - attack.t1027
  - attack.execution
  - attack.t1059.001
logsource:
  product: windows
  category: ps_module
  definition: 0ad03ef1-f21b-4a79-8ce8-e6900c54b65b
detection:
  selection_4103:
    Payload|re: cmd.{0,5}(?:/c|/r).+clip(?:\.exe)?.{0,4}&&.+clipboard]::\(\s\\"\{\d\}.+-f.+"
  condition: selection_4103
falsepositives:
  - Unknown
level: high
license: DRL-1.1