Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Pennywise_Mar23

Finds PennyWise samples based on strings

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

What this rule detects

Finds PennyWise samples based on strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-pennywise-mar23.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Pennywise_Mar23 : FILE
{
	meta:
		description = "Finds PennyWise samples based on strings"
		author = "Sekoia.io"
		id = "9852b7e7-dfff-44e6-9068-d287cc84b069"
		date = "2023-03-22"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_pennywise_mar23.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "55d7d6894de23af38230eaaff0a38c31d11d3df34aacd21fd93393d266c9357c"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$chr01 = "MvgmsudRT3loHygSj1F9K" ascii
		$chr02 = "WebInfidelity2023" ascii
		$chr03 = "PennyWise" ascii
		$str01 = "get_Handle" ascii
		$str02 = "get_Now" ascii
		$str03 = "get_Ticks" ascii
		$str04 = "set_Expect100Continue" ascii
		$str05 = "get_Jpeg" ascii
		$str06 = "set_UseShellExecute" ascii
		$str07 = "get_ProcessName" ascii
		$str08 = "get_UtcNow" ascii

	condition:
		uint16( 0 ) == 0x5A4D and 1 of ( $chr* ) and 5 of ( $str* )
}

Strings (11 patterns)

IdentifierTypeValueModifiers
$chr01text"MvgmsudRT3loHygSj1F9K"ascii
$chr02text"WebInfidelity2023"ascii
$chr03text"PennyWise"ascii
$str01text"get_Handle"ascii
$str02text"get_Now"ascii
$str03text"get_Ticks"ascii
$str04text"set_Expect100Continue"ascii
$str05text"get_Jpeg"ascii
$str06text"set_UseShellExecute"ascii
$str07text"get_ProcessName"ascii
$str08text"get_UtcNow"ascii

Condition

uint16( 0 ) == 0x5A4D and 1 of ( $chr* ) and 5 of ( $str* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 1 patterns in ( $chr* ) must match.
  • At least 5 patterns in ( $str* ) 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: 9852b7e7-dfff-44e6-9068-d287cc84b069

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE