Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Warezov

Detects Warezov worm/downloader

MalwareWarezovditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detects Warezov worm/downloader

Associated malware family: Warezov.

Targets: Windows PE.

It defines 7 patterns (6 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-warezov.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Warezov : FILE
{
	meta:
		description = "Detects Warezov worm/downloader"
		author = "ditekSHen"
		id = "8cb1dcb1-981d-5ff2-b0d9-aa18dfbfc795"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4255-L4269"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "e65922902fd18175a3ce7b600d46535e92b92240fa3ca83dced6f9ce14f3e815"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "ft\\Windows\\CurrentVersion\\Run" wide
		$s2 = "DIR%SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" wide
		$s3 = "%WINDIR%\\sqhos32.wmf" wide
		$s4 = "Accept: */*" fullword ascii
		$s5 = "Range: bytes=" fullword ascii
		$s6 = "module.exe" fullword ascii
		$s7 = { 25 73 25 73 2e 25 73 ?? ?? 22 22 26 6c 79 79 56 00 00 00 00 25 73 25 30 34 64 25 30 32 64 25 30 32 64 00 }

	condition:
		uint16( 0 ) == 0x5a4d and 4 of them
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$s1text"ft\\Windows\\CurrentVersion\\Run"wide
$s2text"DIR%SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"wide
$s3text"%WINDIR%\\sqhos32.wmf"wide
$s4text"Accept: */*"fullword ascii
$s5text"Range: bytes="fullword ascii
$s6text"module.exe"fullword ascii
$s7hex{ 25 73 25 73 2e 25 73 ?? ?? 22 22 26 6c 79 79 56 00 00 00 00 25 73 25 30 34 64 25 30 32 64 25 30 32 64 00 }

Condition

uint16( 0 ) == 0x5a4d and 4 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

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

Rule id: 8cb1dcb1-981d-5ff2-b0d9-aa18dfbfc795

Tags:FILE