YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_WEBSHELL_ASPX_Fileexplorer_Mar21_1
Detects Chopper like ASPX Webshells
- Autor
- Florian Roth (Nextron Systems)
- Datum
- 2021-03-31
- Geändert
- 2023-12-05
- Score / Qualität
- 80 / 85
Was diese Regel erkennt
Detects Chopper like ASPX Webshells
Sie definiert 8 Muster (6 Text, 2 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
rule SIGNATURE_BASE_WEBSHELL_ASPX_Fileexplorer_Mar21_1 : FILE
{
meta:
= "Detects Chopper like ASPX Webshells"
= "Florian Roth (Nextron Systems)"
= "edcaa2a8-6fea-584e-90c2-307a2dfc9f7f"
= "2021-03-31"
= "2023-12-05"
= "Internal Research"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_hafnium.yar#L363-L397"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "a8c63c418609c1c291b3e731ca85ded4b3e0fba83f3489c21a3199173b176a75"
= "7b4ffd222b38e76455fff2650b72bdcaff281323103f342b427013cd3fffdc21"
= 80
= 85
= "FILE"
strings:
$x1 = "<span style=\"background-color: #778899; color: #fff; padding: 5px; cursor: pointer\" onclick=" ascii
$xc1 = { 3C 61 73 70 3A 48 69 64 64 65 6E 46 69 65 6C 64
20 72 75 6E 61 74 3D 22 73 65 72 76 65 72 22 20
49 44 3D 22 ?? ?? ?? ?? ?? 22 20 2F 3E 3C 62 72
20 2F 3E 3C 62 72 20 2F 3E 20 50 72 6F 63 65 73
73 20 4E 61 6D 65 3A 3C 61 73 70 3A 54 65 78 74
42 6F 78 20 49 44 3D }
$xc2 = { 22 3E 43 6F 6D 6D 61 6E 64 3C 2F 6C 61 62 65 6C
3E 3C 69 6E 70 75 74 20 69 64 3D 22 ?? ?? ?? ??
?? 22 20 74 79 70 65 3D 22 72 61 64 69 6F 22 20
6E 61 6D 65 3D 22 74 61 62 73 22 3E 3C 6C 61 62
65 6C 20 66 6F 72 3D 22 ?? ?? ?? ?? ?? 22 3E 46
69 6C 65 20 45 78 70 6C 6F 72 65 72 3C 2F 6C 61
62 65 6C 3E 3C 25 2D 2D }
$r1 = "(Request.Form[" ascii
$s1 = ".Text + \" Created!\";" ascii
$s2 = "DriveInfo.GetDrives()" ascii
$s3 = "Encoding.UTF8.GetString(FromBase64String(str.Replace(" ascii
$s4 = "encodeURIComponent(btoa(String.fromCharCode.apply(null, new Uint8Array(bytes))));;"
condition:
uint16( 0 ) == 0x253c and filesize < 100KB and ( 1 of ( $x* ) or 2 of them ) or 4 of them
}
Strings (8 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $x1 | Text | "<span style=\"background-color: #778899; color: #fff; padding: 5px; cursor: pointer\" onclick=" | ascii |
| $xc1 | Hex | { 3C 61 73 70 3A 48 69 64 64 65 6E 46 69 65 6C 64 20 72 75 6E 61 74 3D 22 73 65 72 76 65 72 22 20 49 44 3D 22 ?? ?? ?? ?? ?? 22 20 … | |
| $xc2 | Hex | { 22 3E 43 6F 6D 6D 61 6E 64 3C 2F 6C 61 62 65 6C 3E 3C 69 6E 70 75 74 20 69 64 3D 22 ?? ?? ?? ?? ?? 22 20 74 79 70 65 3D 22 72 61 … | |
| $r1 | Text | "(Request.Form[" | ascii |
| $s1 | Text | ".Text + \" Created!\";" | ascii |
| $s2 | Text | "DriveInfo.GetDrives()" | ascii |
| $s3 | Text | "Encoding.UTF8.GetString(FromBase64String(str.Replace(" | ascii |
| $s4 | Text | "encodeURIComponent(btoa(String.fromCharCode.apply(null, new Uint8Array(bytes))));;" |
Bedingung
uint16( 0 ) == 0x253c and filesize < 100KB and ( 1 of ( $x* ) or 2 of them ) or 4 of themIn Worten (Heuristik)
- Die Datei muss kleiner als 100KB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 1 Muster aus ( $x* ) müssen treffen.
- Mindestens 2 Muster aus der Regel müssen treffen.
- Mindestens 4 Muster aus der Regel 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.
Proben-Hashes
Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).
- a8c63c418609c1c291b3e731ca85ded4b3e0fba83f3489c21a3199173b176a75
Lizenz & Namensnennung
Autor: Florian Roth (Nextron Systems)
Quell-Repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Lizenz: Detection Rule License 1.1 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: edcaa2a8-6fea-584e-90c2-307a2dfc9f7f
Tags:FILE
Verwandte Regeln
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-08-25
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-05
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-31
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-11-01
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-12
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-08-13
- WebshellSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-11-23
- APT / AkteurSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16