PowerShell module obfuscation using clip.exe with echo and clipboard invocation
Flags obfuscated PowerShell module scripts that echo “clip” and invoke clipboard-related behavior.
- Product
- windows
- Category
- ps_module
- Author
- Nikita Nazarov, oscd.community (SigmaHQ), DRL 1.1
- Published
- 2020-10-09
- Updated
- 2026-07-31
ATT&CK techniques
Execution → Defense EvasionRecon
Resource Dev
Initial Access
Execution
Persistence
Priv Esc
Defense Evasion
Cred Access
Discovery
Lateral Movement
Collection
C2
Exfiltration
Impact
What it detects
This rule flags PowerShell module/script content that matches an obfuscation pattern involving echo statements that reference clip and a subsequent Clipboard or clipboard-related invocation (including variations with backticks). Attackers may use clip.exe to move data to or from the clipboard while disguising intent through string/command obfuscation. It relies on PowerShell module/script telemetry that includes the full Payload text for regex matching.
Reporting behind it
Changelog
v2- v2Candidate ingested via manual entry.2026-07-31
- v1No changelog recorded for this version.2026-07-30
Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.
title: PowerShell module obfuscation using clip.exe with echo and clipboard invocation
id: 4ff02be7-1e10-4c45-ad1b-4e1427b993c2
related:
- id: db92dd33-a3ad-49cf-8c2c-608c3e30ace0
type: derived
- id: ebdf49d8-b89c-46c9-8fdf-2c308406f6bd
type: derived
status: test
description: This rule flags PowerShell module/script content that matches an obfuscation pattern involving echo statements that reference clip and a subsequent Clipboard or clipboard-related invocation (including variations with backticks). Attackers may use clip.exe to move data to or from the clipboard while disguising intent through string/command obfuscation. It relies on PowerShell module/script telemetry that includes the full Payload text for regex matching.
references:
- https://github.com/SigmaHQ/sigma/issues/1009
- https://github.com/SigmaHQ/sigma/blob/master/rules/windows/powershell/powershell_module/posh_pm_invoke_obfuscation_via_use_clip.yml
author: Nikita Nazarov, oscd.community, Huntrule Team
date: 2020-10-09
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: (?i)echo.*clip.*&&.*(Clipboard|i`?n`?v`?o`?k`?e`?)
condition: selection_4103
falsepositives:
- Unknown
level: high
license: DRL-1.1