YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Agentteslav3
AgentTeslaV3 infostealer payload
- Autor
- ditekSHen
- Datum
- 2020-11-06
- Geändert
- 2024-11-01
- Score / Qualität
- 75 / 73
Was diese Regel erkennt
AgentTeslaV3 infostealer payload
Zugehörige Malware-Familie: Agenttesla.
Ziele: Windows-PE.
Sie definiert 24 Muster (24 Text, 0 Hex, 0 Regex).
YARA-X meldet: warning[unintended_pattern_in_set]: pattern `$g1` may be unintendedly or redundantly included in pattern set `$*`
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
rule DITEKSHEN_MALWARE_Win_Agentteslav3 : FILE
{
meta:
= "AgentTeslaV3 infostealer payload"
= "ditekSHen"
= "c44c69dd-5e95-595c-88c7-89e243648198"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L1448-L1481"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "6c62b2f601eba3c83b60f7f6dbd3d0ec3c01af30f4312df897bb5e902c36fdac"
= 75
= 73
= "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* ) )
}
Strings (24 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $s1 | Text | "get_kbok" | fullword ascii |
| $s2 | Text | "get_CHoo" | fullword ascii |
| $s3 | Text | "set_passwordIsSet" | fullword ascii |
| $s4 | Text | "get_enableLog" | fullword ascii |
| $s5 | Text | "bot%telegramapi%" | wide |
| $s6 | Text | "KillTorProcess" | fullword ascii |
| $s7 | Text | "GetMozilla" | ascii |
| $s8 | Text | "torbrowser" | wide |
| $s9 | Text | "%chatid%" | wide |
| $s10 | Text | "logins" | fullword wide |
| $s11 | Text | "credential" | fullword wide |
| $s12 | Text | "AccountConfiguration+" | wide |
| $s13 | Text | "<a.+?href\\s*=\\s*([\"'])(?<href>.+?)\\1[^>]*>" | fullword wide |
| $g1 | Text | "get_Clipboard" | fullword ascii |
| $g2 | Text | "get_Keyboard" | fullword ascii |
| $g3 | Text | "get_Password" | fullword ascii |
| $g4 | Text | "get_CtrlKeyDown" | fullword ascii |
| $g5 | Text | "get_ShiftKeyDown" | fullword ascii |
| $g6 | Text | "get_AltKeyDown" | fullword ascii |
| $m1 | Text | "yyyy-MM-dd hh-mm-ssCookieapplication/zipSCSC_.jpegScreenshotimage/jpeg/log.tmpKLKL_.html<html></html>Logtext/html[]Time" | ascii |
| $m2 | Text | "%image/jpg:Zone.Identifier\\tmpG.tmp%urlkey%-f \\Data\\Tor\\torrcp=%PostURL%127.0.0.1POST+%2B" | ascii |
| $m3 | Text | ">{CTRL}</font>Windows RDPcredentialpolicyblobrdgchrome{{{0}}}CopyToComputeHashsha512CopySystemDrive\\WScript.ShellRegReadg401" | ascii |
| $m4 | Text | "%startupfolder%\\%insfolder%\\%insname%/\\%insfolder%\\Software\\Microsoft\\Windows\\CurrentVersion\\Run%insregname%SOFTWARE\\Microsoft\\Windows\\CurrentVersio … | ascii |
| $m5 | Text | "\\WindowsLoad%ftphost%/%ftpuser%%ftppassword%STORLengthWriteCloseGetBytesOpera" | ascii |
Bedingung
( uint16( 0 ) == 0x5a4d and ( 8 of ( $s* ) or ( 6 of ( $* ) and all of ( $g* ) ) ) ) or ( 2 of ( $m* ) )In Worten (Heuristik)
- Die Datei muss mit „MZ“ beginnen — eine Windows-Programmdatei (PE).
- Alle Muster aus ( $g* ) müssen treffen.
- Mindestens 8 Muster aus ( $s* ) müssen treffen.
- Mindestens 6 Muster aus ( $* ) müssen treffen.
- Mindestens 2 Muster aus ( $m* ) müssen treffen.
Diese Regel im Browser testen
Legen Sie eine Datei ab, um sie mit dieser Regel und YARA-X als WebAssembly zu scannen. Nichts wird hochgeladen.
Referenzen
Lizenz & Namensnennung
Autor: ditekSHen
Quell-Repository: ditekSHen detection @ e76c93dcde
Lizenz: BSD 2-Clause License (Repository-Lizenz)
Copyright-Hinweis: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: c44c69dd-5e95-595c-88c7-89e243648198
Tags:FILE
Verwandte Regeln
- MalwareEmbee Research· Matthew @embee_research· 2023-09-21
- MalwareCAPE Sandbox (CAPEv2)· ClaudioWayne· 2023-09-13
- Verdächtig / HuntingCod3nym detection-rules· Jonathan Peters· 2024-01-05
- 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