Skip to content

YARA · deadbits yara-rules

DEADBITS_Dacls_Trojan_Windows

No description has been set in the source file - DeadBits

Malwaredeadbits yara-rulesThe UnlicenseCompiles with YARA-X
Author
Adam Swanda
Date
2020-01-07
Score / Quality
75 / 80

What this rule detects

No description has been set in the source file - DeadBits

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

dacls-trojan-windows.yarThe Unlicense
rule DEADBITS_Dacls_Trojan_Windows : FILE
{
	meta:
		description = "No description has been set in the source file - DeadBits"
		author = "Adam Swanda"
		id = "424b2c0d-2373-5a72-9a97-52b4bfc5cdcf"
		date = "2020-01-07"
		modified = "2020-01-07"
		reference = "https://github.com/deadbits/yara-rules"
		source_url = "https://github.com/deadbits/yara-rules//blob/d002f7ecee23e09142a3ac3e79c84f71dda3f001/rules/Dacls_Windows.yara#L1-L30"
		license_url = "N/A"
		logic_hash = "b77df7e3be9c264d6a63d40dbf49c41e9dd55b4e570c063b5710b849c36cc166"
		score = 75
		quality = 80
		tags = "FILE"
		Author = "Adam M. Swanda"

	strings:
		$fext00 = ".exe" ascii wide
		$fext01 = ".cmd" ascii wide
		$fext02 = ".bat" ascii wide
		$fext03 = ".com" ascii wide
		$str00 = "Software\\mthjk" ascii wide
		$str01 = "WindowsNT.dll" ascii fullword
		$str02 = "GET %s HTTP/1.1" ascii fullword
		$str03 = "content-length:" ascii fullword
		$str04 = "Connection: keep-alive" ascii fullword
		$cls00 = "c_2910.cls" ascii fullword
		$cls01 = "k_3872.cls" ascii fullword

	condition:
		( uint16( 0 ) == 0x5a4d ) and ( ( all of ( $cls* ) ) or ( all of ( $fext* ) and all of ( $str* ) ) )
}

Strings (11 patterns)

IdentifierTypeValueModifiers
$fext00text".exe"ascii wide
$fext01text".cmd"ascii wide
$fext02text".bat"ascii wide
$fext03text".com"ascii wide
$str00text"Software\\mthjk"ascii wide
$str01text"WindowsNT.dll"ascii fullword
$str02text"GET %s HTTP/1.1"ascii fullword
$str03text"content-length:"ascii fullword
$str04text"Connection: keep-alive"ascii fullword
$cls00text"c_2910.cls"ascii fullword
$cls01text"k_3872.cls"ascii fullword

Condition

( uint16( 0 ) == 0x5a4d ) and ( ( all of ( $cls* ) ) or ( all of ( $fext* ) and all of ( $str* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $cls* ) must match.
  • All patterns in ( $fext* ) must match.
  • All 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: Adam Swanda

Source repository: deadbits yara-rules @ d002f7ecee

Licence: The Unlicense (repository licence)

Original rule

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

Rule id: 424b2c0d-2373-5a72-9a97-52b4bfc5cdcf

Tags:FILE