Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Xworm_V2

Finds XWorm v2 samples based on characteristic strings

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-11-07
Modified
2024-12-19
Score / Quality
75 / 78

What this rule detects

Finds XWorm v2 samples based on characteristic strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

rat-win-xworm-v2.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Xworm_V2 : FILE
{
	meta:
		description = "Finds XWorm v2 samples based on characteristic strings"
		author = "Sekoia.io"
		id = "6cf06f52-0337-415d-8f29-f63d67e228f8"
		date = "2022-11-07"
		modified = "2024-12-19"
		reference = "https://blog.cyble.com/2022/08/19/evilcoder-project-selling-multiple-dangerous-tools-online/"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_xworm_v2.yar#L1-L38"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "58a2dbfbd453855021942902a6d55d150eee3acba67a294da24448cfca4f811e"
		score = 75
		quality = 78
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "XWorm.exe" wide ascii
		$str02 = "ngrok" wide ascii
		$str03 = "Mutexx" ascii
		$str04 = "FileManagerSplitFileManagerSplit" wide
		$str05 = "InstallngC" wide
		$str06 = "downloadedfile" wide
		$str07 = "creatfile" wide
		$str08 = "creatnewfolder" wide
		$str09 = "showfolderfile" wide
		$str10 = "hidefolderfile" wide
		$str11 = "txtttt" wide
		$str12 = "\\root\\SecurityCenter2" wide
		$str13 = "[USB]" wide
		$str14 = "[Drive]" wide
		$str15 = "[Folder]" wide
		$str16 = "HVNC" wide
		$str17 = "http://exmple.com/Uploader.php" wide
		$str18 = "XKlog.txt" wide
		$str19 = "Select * from AntivirusProduct" wide
		$str20 = "runnnnnn" wide
		$str21 = "RunBotKiller" wide
		$str22 = "bypss" wide
		$str23 = "<Xwormmm>" wide

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

Strings (23 patterns)

IdentifierTypeValueModifiers
$str01text"XWorm.exe"wide ascii
$str02text"ngrok"wide ascii
$str03text"Mutexx"ascii
$str04text"FileManagerSplitFileManagerSplit"wide
$str05text"InstallngC"wide
$str06text"downloadedfile"wide
$str07text"creatfile"wide
$str08text"creatnewfolder"wide
$str09text"showfolderfile"wide
$str10text"hidefolderfile"wide
$str11text"txtttt"wide
$str12text"\\root\\SecurityCenter2"wide
$str13text"[USB]"wide
$str14text"[Drive]"wide
$str15text"[Folder]"wide
$str16text"HVNC"wide
$str17text"http://exmple.com/Uploader.php"wide
$str18text"XKlog.txt"wide
$str19text"Select * from AntivirusProduct"wide
$str20text"runnnnnn"wide
$str21text"RunBotKiller"wide
$str22text"bypss"wide
$str23text"<Xwormmm>"wide

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 12 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: 6cf06f52-0337-415d-8f29-f63d67e228f8

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE