Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Arrow_Str

Finds Arrow RAT samples based on the specific malware strings

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

What this rule detects

Finds Arrow RAT samples based on the specific malware strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

rat-win-arrow-str.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Arrow_Str : FILE
{
	meta:
		description = "Finds Arrow RAT samples based on the specific malware strings"
		author = "Sekoia.io"
		id = "69f6572c-91ed-4fb6-b886-5ad2dabef3d3"
		date = "2022-08-19"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_arrow_str.yar#L1-L27"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "faf66a14e563066bb86ceadc787c092a5a13a43f936f0d9d19fbe7d4352ea5d8"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$hvnc01 = "DESKTOP_JOURNALRECORD" ascii
		$hvnc02 = "DESKTOP_ENUMERATE" ascii
		$hvnc03 = "DESKTOP_SWITCHDESKTOP" ascii
		$hvnc04 = "DESKTOP_CREATEWINDOW" ascii
		$hvnc05 = "StartHVNC" ascii
		$str01 = "U29mdHdhcmVcTWljcm9zb2Z0XFdpbmRvd3MgTlRcQ3VycmVudFZlcnNpb25cV2lubG9nb25c" wide
		$str02 = "powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -NoProfile -Command Add-MpPreference -ExclusionPath" wide
		$str03 = "cvtres.exe" wide
		$str04 = "qbkTHriRRbQjaArtJfF" wide
		$str05 = "29mdHdhcmVcTWljcm9zb2Z0XFdpbmRvd3MgTlRcQ3VycmVudFZlcnNpb25cV2lubG9nb24=" wide
		$str06 = "Stub.exe" ascii wide
		$str07 = "DePikoloData" ascii

	condition:
		uint16be( 0 ) == 0x4d5a and 4 of ( $hvnc* ) and 5 of ( $str* )
}

Strings (12 patterns)

IdentifierTypeValueModifiers
$hvnc01text"DESKTOP_JOURNALRECORD"ascii
$hvnc02text"DESKTOP_ENUMERATE"ascii
$hvnc03text"DESKTOP_SWITCHDESKTOP"ascii
$hvnc04text"DESKTOP_CREATEWINDOW"ascii
$hvnc05text"StartHVNC"ascii
$str01text"U29mdHdhcmVcTWljcm9zb2Z0XFdpbmRvd3MgTlRcQ3VycmVudFZlcnNpb25cV2lubG9nb25c"wide
$str02text"powershell.exe -ExecutionPolicy Bypass -WindowStyle Hidden -NoProfile -Command Add-MpPreference -ExclusionPath"wide
$str03text"cvtres.exe"wide
$str04text"qbkTHriRRbQjaArtJfF"wide
$str05text"29mdHdhcmVcTWljcm9zb2Z0XFdpbmRvd3MgTlRcQ3VycmVudFZlcnNpb25cV2lubG9nb24="wide
$str06text"Stub.exe"ascii wide
$str07text"DePikoloData"ascii

Condition

uint16be( 0 ) == 0x4d5a and 4 of ( $hvnc* ) and 5 of ( $str* )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 4 patterns in ( $hvnc* ) 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: 69f6572c-91ed-4fb6-b886-5ad2dabef3d3

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE