YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Dlagent09
Detects known downloader agent
- 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:
= "Detects known downloader agent"
= "ditekSHen"
= "90f71ac7-19d9-5a8e-9830-df2f16e12c9b"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L5315-L5328"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "9336507fa4bb9d3a6325d5e9caafc8c4e816a0166fded7d4e53e09a87628bc89"
= 75
= 71
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $h1 | text | "//:ptth" | ascii wide nocase |
| $h2 | text | "//:sptth" | ascii wide nocase |
| $s1 | text | "DownloadString" | fullword ascii wide |
| $s2 | text | "StrReverse" | fullword ascii wide |
| $s3 | text | "FromBase64String" | fullword ascii wide |
| $s4 | text | "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.
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).
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
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06