YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_Hvs_APT37_Smb_Scanner
Unknown smb login scanner used by APT37
- Author
- Marc Stroebel
- Date
- 2020-12-15
- Modified
- 2023-12-05
- Score / Quality
- 75 / 85
What this rule detects
Unknown smb login scanner used by APT37
Targets: Windows PE.
It defines 15 patterns (15 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_Hvs_APT37_Smb_Scanner : FILE
{
meta:
= "Unknown smb login scanner used by APT37"
= "Marc Stroebel"
= "89a5cc32-f151-583d-823d-692de2c2b084"
= "2020-12-15"
= "2023-12-05"
= "https://www.hybrid-analysis.com/sample/d16163526242508d6961f061aaffe3ae5321bd64d8ceb6b2788f1570757595fc?environmentId=2"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_lazarus_dec20.yar#L2-L29"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "0bea71db7052f1c22c01cfbf710d4ed24651cbbd8b0fd29f09dfd49c4e314028"
= 75
= 85
= "FILE"
= "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"
strings:
$s1 = "Scan.exe StartIP EndIP ThreadCount logfilePath [Username Password Deep]" fullword ascii
$s2 = "%s - %s:(Username - %s / Password - %s" fullword ascii
$s3 = "Load mpr.dll Error " fullword ascii
$s4 = "Load Netapi32.dll Error " fullword ascii
$s5 = "%s U/P not Correct! - %d" fullword ascii
$s6 = "GetNetWorkInfo Version 1.0" fullword wide
$s7 = "Hello World!" fullword wide
$s8 = "%s Error: %ld" fullword ascii
$s9 = "%s U/P Correct!" fullword ascii
$s10 = "%s --------" fullword ascii
$s11 = "%s%-30s%I64d" fullword ascii
$s12 = "%s%-30s(DIR)" fullword ascii
$s13 = "%04d-%02d-%02d %02d:%02d" fullword ascii
$s14 = "Share: Local Path: Uses: Descriptor:" fullword ascii
$s15 = "Share: Type: Remark:" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and filesize < 200KB and ( 10 of them )
}
Strings (15 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "Scan.exe StartIP EndIP ThreadCount logfilePath [Username Password Deep]" | fullword ascii |
| $s2 | text | "%s - %s:(Username - %s / Password - %s" | fullword ascii |
| $s3 | text | "Load mpr.dll Error " | fullword ascii |
| $s4 | text | "Load Netapi32.dll Error " | fullword ascii |
| $s5 | text | "%s U/P not Correct! - %d" | fullword ascii |
| $s6 | text | "GetNetWorkInfo Version 1.0" | fullword wide |
| $s7 | text | "Hello World!" | fullword wide |
| $s8 | text | "%s Error: %ld" | fullword ascii |
| $s9 | text | "%s U/P Correct!" | fullword ascii |
| $s10 | text | "%s --------" | fullword ascii |
| $s11 | text | "%s%-30s%I64d" | fullword ascii |
| $s12 | text | "%s%-30s(DIR)" | fullword ascii |
| $s13 | text | "%04d-%02d-%02d %02d:%02d" | fullword ascii |
| $s14 | text | "Share: Local Path: Uses: Descriptor:" | fullword ascii |
| $s15 | text | "Share: Type: Remark:" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and filesize < 200KB and ( 10 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 200KB (a cheap guard that skips large files).
- At least 10 patterns in the rule 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.
Licence & attribution
Author: Marc Stroebel
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (stated in the rule's own meta)
“Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE”
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 89a5cc32-f151-583d-823d-692de2c2b084
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Marc Stroebel· 2020-12-15
- Hack toolSignature Base (Florian Roth / Nextron)· Marc Stroebel· 2024-10-22