YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Biopass_Dropper
Detects Go BioPass dropper
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 75
What this rule detects
Detects Go BioPass dropper
Associated malware family: Biopass.
Targets: Windows PE.
It defines 16 patterns (16 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-biopass-dropper.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Biopass_Dropper : FILE
{
meta:
= "Detects Go BioPass dropper"
= "ditekSHen"
= "56037c79-59f7-587c-8f54-c9618e871f34"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L7088-L7111"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "06f3b3ee38349ddcf9be7cbb7627d60fa673962409dde6e4badd112841a3ed19"
= 75
= 75
= "FILE"
strings:
$go = "Go build ID:" ascii
$s1 = "main.NetWorkStatus" ascii
$s2 = "main.NoErrorRunFunction" ascii
$s3 = "main.FileExist" ascii
$s4 = "main.execute" ascii
$s5 = "main.PsGenerator" ascii
$s6 = "main.downFile" ascii
$s7 = "main.Unzip" ascii
$url1 = "https://flashdownloadserver.oss-cn-hongkong.aliyuncs.com/res/" ascii
$x1 = "SCHTASKS /Run /TN SYSTEM_CDAEMON" ascii
$x2 = "SCHTASKS /Run /TN SYSTEM_SETTINGS" ascii
$x3 = "SCHTASKS /Run /TN SYSTEM_TEST && SCHTASKS /DELETE /F /TN SYSTEM_TEST" ascii
$x4 = ".exe /install /quiet /norestart" ascii
$x5 = "exec(''import urllib.request;exec(urllib.request.urlopen(urllib.request.Request(\\''http" ascii
$x6 = "powershell.exe -Command $" ascii
$x7 = ".Path ='-----BEGIN RSA TESTING KEY-----" ascii
condition:
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or 5 of ( $x* ) or ( 1 of ( $url* ) and ( $go ) ) or 9 of them )
}
Strings (16 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $go | text | "Go build ID:" | ascii |
| $s1 | text | "main.NetWorkStatus" | ascii |
| $s2 | text | "main.NoErrorRunFunction" | ascii |
| $s3 | text | "main.FileExist" | ascii |
| $s4 | text | "main.execute" | ascii |
| $s5 | text | "main.PsGenerator" | ascii |
| $s6 | text | "main.downFile" | ascii |
| $s7 | text | "main.Unzip" | ascii |
| $url1 | text | "https://flashdownloadserver.oss-cn-hongkong.aliyuncs.com/res/" | ascii |
| $x1 | text | "SCHTASKS /Run /TN SYSTEM_CDAEMON" | ascii |
| $x2 | text | "SCHTASKS /Run /TN SYSTEM_SETTINGS" | ascii |
| $x3 | text | "SCHTASKS /Run /TN SYSTEM_TEST && SCHTASKS /DELETE /F /TN SYSTEM_TEST" | ascii |
| $x4 | text | ".exe /install /quiet /norestart" | ascii |
| $x5 | text | "exec(''import urllib.request;exec(urllib.request.urlopen(urllib.request.Request(\\''http" | ascii |
| $x6 | text | "powershell.exe -Command $" | ascii |
| $x7 | text | ".Path ='-----BEGIN RSA TESTING KEY-----" | ascii |
Condition
uint16( 0 ) == 0x5a4d and ( all of ( $s* ) or 5 of ( $x* ) or ( 1 of ( $url* ) and ( $go ) ) or 9 of them )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in ( $s* ) must match.
- At least 5 patterns in ( $x* ) must match.
- At least 1 patterns in ( $url* ) must match.
- At least 9 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.
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: 56037c79-59f7-587c-8f54-c9618e871f34
Tags:FILE
Related rules
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- 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