Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Agentteslav3

AgentTeslaV3 infostealer payload

MalwareAgenttesladitekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X (avertissements)
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 73

Ce que détecte cette règle

AgentTeslaV3 infostealer payload

Famille de malware associée : Agenttesla.

Cibles : PE Windows.

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

YARA-X indique : warning[unintended_pattern_in_set]: pattern `$g1` may be unintendedly or redundantly included in pattern set `$*`

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-agentteslav3.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Agentteslav3 : FILE
{
	meta:
		description = "AgentTeslaV3 infostealer payload"
		author = "ditekSHen"
		id = "c44c69dd-5e95-595c-88c7-89e243648198"
		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#L1448-L1481"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "6c62b2f601eba3c83b60f7f6dbd3d0ec3c01af30f4312df897bb5e902c36fdac"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$s1 = "get_kbok" fullword ascii
		$s2 = "get_CHoo" fullword ascii
		$s3 = "set_passwordIsSet" fullword ascii
		$s4 = "get_enableLog" fullword ascii
		$s5 = "bot%telegramapi%" wide
		$s6 = "KillTorProcess" fullword ascii
		$s7 = "GetMozilla" ascii
		$s8 = "torbrowser" wide
		$s9 = "%chatid%" wide
		$s10 = "logins" fullword wide
		$s11 = "credential" fullword wide
		$s12 = "AccountConfiguration+" wide
		$s13 = "<a.+?href\\s*=\\s*([\"'])(?<href>.+?)\\1[^>]*>" fullword wide
		$g1 = "get_Clipboard" fullword ascii
		$g2 = "get_Keyboard" fullword ascii
		$g3 = "get_Password" fullword ascii
		$g4 = "get_CtrlKeyDown" fullword ascii
		$g5 = "get_ShiftKeyDown" fullword ascii
		$g6 = "get_AltKeyDown" fullword ascii
		$m1 = "yyyy-MM-dd hh-mm-ssCookieapplication/zipSCSC_.jpegScreenshotimage/jpeg/log.tmpKLKL_.html<html></html>Logtext/html[]Time" ascii
		$m2 = "%image/jpg:Zone.Identifier\\tmpG.tmp%urlkey%-f \\Data\\Tor\\torrcp=%PostURL%127.0.0.1POST+%2B" ascii
		$m3 = ">{CTRL}</font>Windows RDPcredentialpolicyblobrdgchrome{{{0}}}CopyToComputeHashsha512CopySystemDrive\\WScript.ShellRegReadg401" ascii
		$m4 = "%startupfolder%\\%insfolder%\\%insname%/\\%insfolder%\\Software\\Microsoft\\Windows\\CurrentVersion\\Run%insregname%SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Explorer\\StartupApproved\\RunTruehttp" ascii
		$m5 = "\\WindowsLoad%ftphost%/%ftpuser%%ftppassword%STORLengthWriteCloseGetBytesOpera" ascii

	condition:
		( uint16( 0 ) == 0x5a4d and ( 8 of ( $s* ) or ( 6 of ( $* ) and all of ( $g* ) ) ) ) or ( 2 of ( $m* ) )
}

Chaînes (24 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"get_kbok"fullword ascii
$s2texte"get_CHoo"fullword ascii
$s3texte"set_passwordIsSet"fullword ascii
$s4texte"get_enableLog"fullword ascii
$s5texte"bot%telegramapi%"wide
$s6texte"KillTorProcess"fullword ascii
$s7texte"GetMozilla"ascii
$s8texte"torbrowser"wide
$s9texte"%chatid%"wide
$s10texte"logins"fullword wide
$s11texte"credential"fullword wide
$s12texte"AccountConfiguration+"wide
$s13texte"<a.+?href\\s*=\\s*([\"'])(?<href>.+?)\\1[^>]*>"fullword wide
$g1texte"get_Clipboard"fullword ascii
$g2texte"get_Keyboard"fullword ascii
$g3texte"get_Password"fullword ascii
$g4texte"get_CtrlKeyDown"fullword ascii
$g5texte"get_ShiftKeyDown"fullword ascii
$g6texte"get_AltKeyDown"fullword ascii
$m1texte"yyyy-MM-dd hh-mm-ssCookieapplication/zipSCSC_.jpegScreenshotimage/jpeg/log.tmpKLKL_.html<html></html>Logtext/html[]Time"ascii
$m2texte"%image/jpg:Zone.Identifier\\tmpG.tmp%urlkey%-f \\Data\\Tor\\torrcp=%PostURL%127.0.0.1POST+%2B"ascii
$m3texte">{CTRL}</font>Windows RDPcredentialpolicyblobrdgchrome{{{0}}}CopyToComputeHashsha512CopySystemDrive\\WScript.ShellRegReadg401"ascii
$m4texte"%startupfolder%\\%insfolder%\\%insname%/\\%insfolder%\\Software\\Microsoft\\Windows\\CurrentVersion\\Run%insregname%SOFTWARE\\Microsoft\\Windows\\CurrentVersio …ascii
$m5texte"\\WindowsLoad%ftphost%/%ftpuser%%ftppassword%STORLengthWriteCloseGetBytesOpera"ascii

Condition

( uint16( 0 ) == 0x5a4d and ( 8 of ( $s* ) or ( 6 of ( $* ) and all of ( $g* ) ) ) ) or ( 2 of ( $m* ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $g* ) doivent être trouvés.
  • Au moins 8 motifs de ( $s* ) doivent être trouvés.
  • Au moins 6 motifs de ( $* ) doivent être trouvés.
  • Au moins 2 motifs de ( $m* ) 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: c44c69dd-5e95-595c-88c7-89e243648198

Tags:FILE

Plus de règles Agenttesla