Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Clipper_Win_Cryptoclippy

Finds CryptoClippy samples

GenericSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2023-04-11
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Finds CryptoClippy samples

Targets: Windows PE.

It defines 10 patterns (10 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

clipper-win-cryptoclippy.yarDetection Rule License 1.1
rule SEKOIA_Clipper_Win_Cryptoclippy : FILE
{
	meta:
		description = "Finds CryptoClippy samples"
		author = "Sekoia.io"
		id = "eaa98a8e-e29e-43a4-8b2d-2137d33d4116"
		date = "2023-04-11"
		modified = "2024-12-19"
		reference = "https://unit42.paloaltonetworks.com/crypto-clipper-targets-portuguese-speakers/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/clipper_win_cryptoclippy.yar#L1-L25"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "057cb5bb957c2338a50c05cfa0177f75bcf263281ddcc5f365298bccafc64cb4"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "C:\\mbedtls\\library\\" ascii
		$str02 = "udp://8.8.8.8:53" ascii
		$str03 = "Upgrade: websocket" ascii
		$str04 = "%s\\%s.lnk" ascii
		$str05 = "%s\\%s.ps1" ascii
		$str06 = "%s\\%s.bat" ascii
		$str07 = "set PSExecutionPolicyPreference=Unrestricted" ascii
		$str08 = "schtasks /delete /tn \"%ls\" /f" ascii
		$str09 = "SetClipboardData" ascii
		$str10 = "SetWinEventHook" ascii

	condition:
		uint16( 0 ) == 0x5A4D and 8 of them
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$str01text"C:\\mbedtls\\library\\"ascii
$str02text"udp://8.8.8.8:53"ascii
$str03text"Upgrade: websocket"ascii
$str04text"%s\\%s.lnk"ascii
$str05text"%s\\%s.ps1"ascii
$str06text"%s\\%s.bat"ascii
$str07text"set PSExecutionPolicyPreference=Unrestricted"ascii
$str08text"schtasks /delete /tn \"%ls\" /f"ascii
$str09text"SetClipboardData"ascii
$str10text"SetWinEventHook"ascii

Condition

uint16( 0 ) == 0x5A4D and 8 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 8 patterns in the rule must match.

Test this rule in your browser

Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: eaa98a8e-e29e-43a4-8b2d-2137d33d4116

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE