Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Biopass_Dropper

Detects Go BioPass dropper

MalwareBiopassditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detects Go BioPass dropper"
		author = "ditekSHen"
		id = "56037c79-59f7-587c-8f54-c9618e871f34"
		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#L7088-L7111"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "06f3b3ee38349ddcf9be7cbb7627d60fa673962409dde6e4badd112841a3ed19"
		score = 75
		quality = 75
		tags = "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)

IdentifierTypeValueModifiers
$gotext"Go build ID:"ascii
$s1text"main.NetWorkStatus"ascii
$s2text"main.NoErrorRunFunction"ascii
$s3text"main.FileExist"ascii
$s4text"main.execute"ascii
$s5text"main.PsGenerator"ascii
$s6text"main.downFile"ascii
$s7text"main.Unzip"ascii
$url1text"https://flashdownloadserver.oss-cn-hongkong.aliyuncs.com/res/"ascii
$x1text"SCHTASKS /Run /TN SYSTEM_CDAEMON"ascii
$x2text"SCHTASKS /Run /TN SYSTEM_SETTINGS"ascii
$x3text"SCHTASKS /Run /TN SYSTEM_TEST && SCHTASKS /DELETE /F /TN SYSTEM_TEST"ascii
$x4text".exe /install /quiet /norestart"ascii
$x5text"exec(''import urllib.request;exec(urllib.request.urlopen(urllib.request.Request(\\''http"ascii
$x6text"powershell.exe -Command $"ascii
$x7text".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.

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: 56037c79-59f7-587c-8f54-c9618e871f34

Tags:FILE