Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Biopass_Dropper

Detects Go BioPass dropper

MalwareBiopassditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 75

Ce que détecte cette règle

Detects Go BioPass dropper

Famille de malware associée : Biopass.

Cibles : PE Windows.

Elle définit 16 motifs (16 texte, 0 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

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 )
}

Chaînes (16 motifs)

IdentifiantTypeValeurModificateurs
$gotexte"Go build ID:"ascii
$s1texte"main.NetWorkStatus"ascii
$s2texte"main.NoErrorRunFunction"ascii
$s3texte"main.FileExist"ascii
$s4texte"main.execute"ascii
$s5texte"main.PsGenerator"ascii
$s6texte"main.downFile"ascii
$s7texte"main.Unzip"ascii
$url1texte"https://flashdownloadserver.oss-cn-hongkong.aliyuncs.com/res/"ascii
$x1texte"SCHTASKS /Run /TN SYSTEM_CDAEMON"ascii
$x2texte"SCHTASKS /Run /TN SYSTEM_SETTINGS"ascii
$x3texte"SCHTASKS /Run /TN SYSTEM_TEST && SCHTASKS /DELETE /F /TN SYSTEM_TEST"ascii
$x4texte".exe /install /quiet /norestart"ascii
$x5texte"exec(''import urllib.request;exec(urllib.request.urlopen(urllib.request.Request(\\''http"ascii
$x6texte"powershell.exe -Command $"ascii
$x7texte".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 )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $s* ) doivent être trouvés.
  • Au moins 5 motifs de ( $x* ) doivent être trouvés.
  • Au moins 1 motifs de ( $url* ) doivent être trouvés.
  • Au moins 9 motifs de la règle doivent être trouvés.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

Licence et attribution

Auteur : ditekSHen

Dépôt source : ditekSHen detection @ e76c93dcde

Licence : BSD 2-Clause License (licence du dépôt)

Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: 56037c79-59f7-587c-8f54-c9618e871f34

Tags:FILE