YARA · SEKOIA.IO Community
SEKOIA_Infostealer_Win_Pennywise_Mar23
Finds PennyWise samples based on strings
- 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:
= "Finds PennyWise samples based on strings"
= "Sekoia.io"
= "9852b7e7-dfff-44e6-9068-d287cc84b069"
= "2023-03-22"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_pennywise_mar23.yar#L1-L26"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "55d7d6894de23af38230eaaff0a38c31d11d3df34aacd21fd93393d266c9357c"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $chr01 | text | "MvgmsudRT3loHygSj1F9K" | ascii |
| $chr02 | text | "WebInfidelity2023" | ascii |
| $chr03 | text | "PennyWise" | ascii |
| $str01 | text | "get_Handle" | ascii |
| $str02 | text | "get_Now" | ascii |
| $str03 | text | "get_Ticks" | ascii |
| $str04 | text | "set_Expect100Continue" | ascii |
| $str05 | text | "get_Jpeg" | ascii |
| $str06 | text | "set_UseShellExecute" | ascii |
| $str07 | text | "get_ProcessName" | ascii |
| $str08 | text | "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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
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
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06