Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_A310Logger

Detects A310Logger

MalwareA310LoggerditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects A310Logger"
		author = "ditekSHen"
		id = "d2cf2f7b-5710-56ab-b13d-97a70fe7f618"
		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#L7113-L7149"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "8205169c9c78eb784b9d07a5fd85ad3a54763452e1e315f7e7911b8ac49a6c01"
		score = 75
		quality = 73
		tags = "FILE"
		snort_sid = "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)

IdentifierTypeValueModifiers
$s1text"Temporary Directory * for"fullword wide
$s2text"HKCU\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\RunOnce\\*RD_"wide
$s3text"@ENTIFIER="wide
$s4text"ExecQuery"fullword wide
$s5text"MSXML2.ServerXMLHTTP.6.0"fullword wide
$s6text"Content-Disposition: form-data; name=\"document\"; filename=\""wide
$s7text"CopyHere"fullword wide
$s8text"] Error in"fullword wide
$s9text"shell.application"fullword wide nocase
$s10text"SetRequestHeader"fullword wide
$s11text"\\Ethereum\\keystore"fullword wide
$s12text"@TITLE Removing"fullword wide
$s13text"@RD /S /Q \""fullword wide
$en1text"Unsupported encryption"fullword wide
$en2text"BCryptOpenAlgorithmProvider(SHA1)"fullword wide
$en3text"BCryptGetProperty(ObjectLength)"fullword wide
$en4text"BCryptGetProperty(HashDigestLength)"fullword wide
$v1_1text"PW\\FILES\\SC::"wide
$v1_2text"AddAttachment"fullword wide
$v1_3text"Started:"fullword wide
$v1_4text"Ended:"fullword wide
$v1_5text"sharedSecret"fullword wide
$v1_6text"\":\"([^\"]+)\""fullword wide
$v1_7text"\\credentials.txt"fullword wide
$v1_8text"WritePasswords"fullword ascii
$v1_9text"sGeckoBrowserPaths"fullword ascii
$v1_10text"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.

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: d2cf2f7b-5710-56ab-b13d-97a70fe7f618

Metadata

snort_sid920204-920207

Tags:FILE