Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Dlagent09

Detects known downloader agent

MalwareDlagent09ditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 71

What this rule detects

Detects known downloader agent

Associated malware family: Dlagent09.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-dlagent09.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlagent09 : FILE
{
	meta:
		description = "Detects known downloader agent"
		author = "ditekSHen"
		id = "90f71ac7-19d9-5a8e-9830-df2f16e12c9b"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5315-L5328"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "9336507fa4bb9d3a6325d5e9caafc8c4e816a0166fded7d4e53e09a87628bc89"
		score = 75
		quality = 71
		tags = "FILE"

	strings:
		$h1 = "//:ptth" ascii wide nocase
		$h2 = "//:sptth" ascii wide nocase
		$s1 = "DownloadString" fullword ascii wide
		$s2 = "StrReverse" fullword ascii wide
		$s3 = "FromBase64String" fullword ascii wide
		$s4 = "WebClient" fullword ascii wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 1 of ( $h* ) and all of ( $s* ) )
}

Strings (6 patterns)

IdentifierTypeValueModifiers
$h1text"//:ptth"ascii wide nocase
$h2text"//:sptth"ascii wide nocase
$s1text"DownloadString"fullword ascii wide
$s2text"StrReverse"fullword ascii wide
$s3text"FromBase64String"fullword ascii wide
$s4text"WebClient"fullword ascii wide

Condition

uint16( 0 ) == 0x5a4d and ( 1 of ( $h* ) and all of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $s* ) must match.
  • At least 1 patterns in ( $h* ) 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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

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

Rule id: 90f71ac7-19d9-5a8e-9830-df2f16e12c9b

Tags:FILE