Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Rat_Win_Asbit

Finds Asbit samples based on characteristic strings

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

What this rule detects

Finds Asbit samples based on characteristic strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

rat-win-asbit.yarDetection Rule License 1.1
rule SEKOIA_Rat_Win_Asbit : FILE
{
	meta:
		description = "Finds Asbit samples based on characteristic strings"
		author = "Sekoia.io"
		id = "b2d60eff-3dc8-4857-a0ea-d4fcd34c40bc"
		date = "2022-09-19"
		modified = "2024-12-19"
		reference = "https://blogs.juniper.net/en-us/threat-research/asbit-an-emerging-remote-desktop-trojan"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rat_win_asbit.yar#L1-L18"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "1362ebe89a4d2645eb687d92510daa355a16f05da7f5513817f8439f29722827"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$str01 = "/build?project=libexpat&_={0}" wide
		$str02 = "/resolve?name={0}&short=true&_={1}" wide
		$str03 = "/c ping 127.0.0.1 & del {0} /q & del /a:H {0} /q" wide

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

Strings (3 patterns)

IdentifierTypeValueModifiers
$str01text"/build?project=libexpat&_={0}"wide
$str02text"/resolve?name={0}&short=true&_={1}"wide
$str03text"/c ping 127.0.0.1 & del {0} /q & del /a:H {0} /q"wide

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 1 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: b2d60eff-3dc8-4857-a0ea-d4fcd34c40bc

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE