YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_Hvs_APT37_Webshell_Img_Thumbs_Asp
Webshell named img.asp, thumbs.asp or thumb.asp used by APT37
- Auteur
- Moritz Oettle
- Date
- 2020-12-15
- Modifiée
- 2023-12-05
- Score / Qualité
- 75 / 85
Ce que détecte cette règle
Webshell named img.asp, thumbs.asp or thumb.asp used by APT37
Elle définit 13 motifs (13 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
rule SIGNATURE_BASE_Hvs_APT37_Webshell_Img_Thumbs_Asp : FILE
{
meta:
= "Webshell named img.asp, thumbs.asp or thumb.asp used by APT37"
= "Moritz Oettle"
= "e45d4507-81de-5f72-9ce2-4f0e3e5c62b1"
= "2020-12-15"
= "2023-12-05"
= "https://www.hvs-consulting.de/media/downloads/ThreatReport-Lazarus.pdf"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_lazarus_dec20.yar#L68-L95"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "94d2448d3794ae3f29678a7337473d259b5cfd1c7f703fe53ee6c84dd10a48ef"
= "58ccee11c08330c8cd4148e623a2e59e024d6d5f3067331dbdd962d0f6a8daa4"
= 75
= 85
= "FILE"
= "Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE"
strings:
$s1 = "strMsg = \"E : F\"" fullword ascii
$s2 = "strMsg = \"S : \" & Len(fileData)" fullword ascii
$s3 = "Left(workDir, InStrRev(workDir, \"/\")) & \"video\""
$a1 = "Server.CreateObject(\"Scripting.FileSystemObject\")" fullword ascii
$a2 = "Dim tmpPath, workDir" fullword ascii
$a3 = "Dim objFSO, objTextStream" fullword ascii
$a4 = "workDir = Request.ServerVariables(\"URL\")" fullword ascii
$a5 = "InStrRev(workDir, \"/\")" ascii
$g1 = "WriteFile = 0" fullword ascii
$g2 = "fileData = Request.Form(\"fp\")" fullword ascii
$g3 = "fileName = Request.Form(\"fr\")" fullword ascii
$g4 = "Err.Clear()" fullword ascii
$g5 = "Option Explicit" fullword ascii
condition:
filesize < 2KB and ( ( 1 of ( $s* ) ) or ( 3 of ( $a* ) ) or ( 5 of ( $g* ) ) )
}
Chaînes (13 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $s1 | texte | "strMsg = \"E : F\"" | fullword ascii |
| $s2 | texte | "strMsg = \"S : \" & Len(fileData)" | fullword ascii |
| $s3 | texte | "Left(workDir, InStrRev(workDir, \"/\")) & \"video\"" | |
| $a1 | texte | "Server.CreateObject(\"Scripting.FileSystemObject\")" | fullword ascii |
| $a2 | texte | "Dim tmpPath, workDir" | fullword ascii |
| $a3 | texte | "Dim objFSO, objTextStream" | fullword ascii |
| $a4 | texte | "workDir = Request.ServerVariables(\"URL\")" | fullword ascii |
| $a5 | texte | "InStrRev(workDir, \"/\")" | ascii |
| $g1 | texte | "WriteFile = 0" | fullword ascii |
| $g2 | texte | "fileData = Request.Form(\"fp\")" | fullword ascii |
| $g3 | texte | "fileName = Request.Form(\"fr\")" | fullword ascii |
| $g4 | texte | "Err.Clear()" | fullword ascii |
| $g5 | texte | "Option Explicit" | fullword ascii |
Condition
filesize < 2KB and ( ( 1 of ( $s* ) ) or ( 3 of ( $a* ) ) or ( 5 of ( $g* ) ) )En clair (Heuristique)
- Le fichier doit faire moins de 2KB (garde-fou peu coûteux qui écarte les gros fichiers).
- Au moins 1 motifs de ( $s* ) doivent être trouvés.
- Au moins 3 motifs de ( $a* ) doivent être trouvés.
- Au moins 5 motifs de ( $g* ) 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é.
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 94d2448d3794ae3f29678a7337473d259b5cfd1c7f703fe53ee6c84dd10a48ef
Licence et attribution
Auteur : Moritz Oettle
Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence : Detection Rule License 1.1 (indiquée dans les métadonnées de la règle)
“Detection Rule License 1.1 https://github.com/Neo23x0/signature-base/blob/master/LICENSE”
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: e45d4507-81de-5f72-9ce2-4f0e3e5c62b1
Tags:FILE
Règles liées
- Web shellSignature Base (Florian Roth / Nextron)· Moritz Oettle· 2021-09-04
- Web shellSignature Base (Florian Roth / Nextron)· Moritz Oettle· 2021-09-04
- Web shellSignature Base (Florian Roth / Nextron)· Moritz Oettle· 2020-12-15
- MalwareSignature Base (Florian Roth / Nextron)· Moritz Oettle· 2022-02-07
- Outil offensifSignature Base (Florian Roth / Nextron)· Moritz Oettle· 2024-10-22