YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_A310Logger
Detects A310Logger
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detects A310Logger
Associated malware family: A310Logger.
Targets: Windows PE.
It defines 27 patterns (27 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-a310logger.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_A310Logger : FILE
{
meta:
= "Detects A310Logger"
= "ditekSHen"
= "d2cf2f7b-5710-56ab-b13d-97a70fe7f618"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7113-L7149"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "8205169c9c78eb784b9d07a5fd85ad3a54763452e1e315f7e7911b8ac49a6c01"
= 75
= 73
= "FILE"
= "920204-920207"
strings:
$s1 = "Temporary Directory * for" fullword wide
$s2 = "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\*RD_" wide
$s3 = "@ENTIFIER=" wide
$s4 = "ExecQuery" fullword wide
$s5 = "MSXML2.ServerXMLHTTP.6.0" fullword wide
$s6 = "Content-Disposition: form-data; name=\"document\"; filename=\"" wide
$s7 = "CopyHere" fullword wide
$s8 = "] Error in" fullword wide
$s9 = "shell.application" fullword wide nocase
$s10 = "SetRequestHeader" fullword wide
$s11 = "\\Ethereum\\keystore" fullword wide
$s12 = "@TITLE Removing" fullword wide
$s13 = "@RD /S /Q \"" fullword wide
$en1 = "Unsupported encryption" fullword wide
$en2 = "BCryptOpenAlgorithmProvider(SHA1)" fullword wide
$en3 = "BCryptGetProperty(ObjectLength)" fullword wide
$en4 = "BCryptGetProperty(HashDigestLength)" fullword wide
$v1_1 = "PW\\FILES\\SC::" wide
$v1_2 = "AddAttachment" fullword wide
$v1_3 = "Started:" fullword wide
$v1_4 = "Ended:" fullword wide
$v1_5 = "sharedSecret" fullword wide
$v1_6 = "\":\"([^\"]+)\"" fullword wide
$v1_7 = "\\credentials.txt" fullword wide
$v1_8 = "WritePasswords" fullword ascii
$v1_9 = "sGeckoBrowserPaths" fullword ascii
$v1_10 = "get_sPassword" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( 7 of ( $s* ) or ( 3 of ( $en* ) and 4 of ( $s* ) ) or ( 5 of ( $s* ) and 1 of ( $en* ) ) or 5 of ( $v1* ) or ( 4 of ( $v1* ) and 2 of ( $s* ) and 2 of ( $en* ) ) )
}
Strings (27 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "Temporary Directory * for" | fullword wide |
| $s2 | text | "HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\*RD_" | wide |
| $s3 | text | "@ENTIFIER=" | wide |
| $s4 | text | "ExecQuery" | fullword wide |
| $s5 | text | "MSXML2.ServerXMLHTTP.6.0" | fullword wide |
| $s6 | text | "Content-Disposition: form-data; name=\"document\"; filename=\"" | wide |
| $s7 | text | "CopyHere" | fullword wide |
| $s8 | text | "] Error in" | fullword wide |
| $s9 | text | "shell.application" | fullword wide nocase |
| $s10 | text | "SetRequestHeader" | fullword wide |
| $s11 | text | "\\Ethereum\\keystore" | fullword wide |
| $s12 | text | "@TITLE Removing" | fullword wide |
| $s13 | text | "@RD /S /Q \"" | fullword wide |
| $en1 | text | "Unsupported encryption" | fullword wide |
| $en2 | text | "BCryptOpenAlgorithmProvider(SHA1)" | fullword wide |
| $en3 | text | "BCryptGetProperty(ObjectLength)" | fullword wide |
| $en4 | text | "BCryptGetProperty(HashDigestLength)" | fullword wide |
| $v1_1 | text | "PW\\FILES\\SC::" | wide |
| $v1_2 | text | "AddAttachment" | fullword wide |
| $v1_3 | text | "Started:" | fullword wide |
| $v1_4 | text | "Ended:" | fullword wide |
| $v1_5 | text | "sharedSecret" | fullword wide |
| $v1_6 | text | "\":\"([^\"]+)\"" | fullword wide |
| $v1_7 | text | "\\credentials.txt" | fullword wide |
| $v1_8 | text | "WritePasswords" | fullword ascii |
| $v1_9 | text | "sGeckoBrowserPaths" | fullword ascii |
| $v1_10 | text | "get_sPassword" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and ( 7 of ( $s* ) or ( 3 of ( $en* ) and 4 of ( $s* ) ) or ( 5 of ( $s* ) and 1 of ( $en* ) ) or 5 of ( $v1* ) or ( 4 of ( $v1* ) and 2 of ( $s* ) and 2 of ( $en* ) ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 7 patterns in ( $s* ) must match.
- At least 3 patterns in ( $en* ) must match.
- At least 4 patterns in ( $s* ) must match.
- At least 5 patterns in ( $s* ) must match.
- At least 1 patterns in ( $en* ) must match.
- At least 5 patterns in ( $v1* ) must match.
- At least 4 patterns in ( $v1* ) must match.
- At least 2 patterns in ( $s* ) must match.
- At least 2 patterns in ( $en* ) 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: d2cf2f7b-5710-56ab-b13d-97a70fe7f618
Metadata
| snort_sid | 920204-920207 |
|---|
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