Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Tool_Win_Snap2Html

Finds Snap2HTML samples based on specific strings. Legitimate tool used by ransomware affiliates to perform discovery

Hack toolSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2024-02-08
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Finds Snap2HTML samples based on specific strings. Legitimate tool used by ransomware affiliates to perform discovery

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

tool-win-snap2html.yarDetection Rule License 1.1
rule SEKOIA_Tool_Win_Snap2Html : FILE
{
	meta:
		description = "Finds Snap2HTML samples based on specific strings. Legitimate tool used by ransomware affiliates to perform discovery"
		author = "Sekoia.io"
		id = "9865daac-f23b-417e-813e-cbed03f45161"
		date = "2024-02-08"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/tool_win_snap2html.yar#L1-L26"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "8805a80193ba1323dffd68456833f27cc93f2182660a5047dbe69e8ed65ac184"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "Snap2HTML.exe" fullword wide ascii
		$str02 = "Snap2HTML.Properties" ascii
		$str03 = "set_txtRoot" ascii
		$str04 = "set_chkHidden" ascii
		$str05 = "set_chkSystem" ascii
		$str06 = "set_chkLinkFiles" ascii
		$str07 = "set_txtLinkRoot" ascii
		$str08 = "set_chkOpenOutput" ascii
		$str09 = "set_txtTitle" ascii
		$str10 = "get_CancellationPending" ascii
		$str11 = "set_RootFolder" ascii
		$str12 = "add_SettingsLoaded" ascii

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

Strings (12 patterns)

IdentifierTypeValueModifiers
$str01text"Snap2HTML.exe"fullword wide ascii
$str02text"Snap2HTML.Properties"ascii
$str03text"set_txtRoot"ascii
$str04text"set_chkHidden"ascii
$str05text"set_chkSystem"ascii
$str06text"set_chkLinkFiles"ascii
$str07text"set_txtLinkRoot"ascii
$str08text"set_chkOpenOutput"ascii
$str09text"set_txtTitle"ascii
$str10text"get_CancellationPending"ascii
$str11text"set_RootFolder"ascii
$str12text"add_SettingsLoaded"ascii

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 7 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: 9865daac-f23b-417e-813e-cbed03f45161

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE