YARA · Costin Raiu yararules
CRAIU_Exploit_CVE_2024_6387
Strings from CVE-2024-6387 exploit PoC by zgzhang.
- Autor
- Costin G. Raiu, TLPBLACK, craiu@noh.ro
- Datum
- 2024-07-02
- Geändert
- 2024-07-03
- Score / Qualität
- 75 / 85
Was diese Regel erkennt
Strings from CVE-2024-6387 exploit PoC by zgzhang.
Ziele: Linux-ELF.
Sie definiert 15 Muster (15 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
rule CRAIU_Exploit_CVE_2024_6387 : CVE_2024_6387 FILE
{
meta:
= "Strings from CVE-2024-6387 exploit PoC by zgzhang."
= "Costin G. Raiu, TLPBLACK, craiu@noh.ro"
= "6ac63016-864d-57af-bb36-3115a0a91021"
= "2024-07-02"
= "2024-07-03"
= "https://github.com/zgzhang/cve-2024-6387-poc/tree/main"
= "https://github.com/craiu/yararules/blob/23cf0ca22021fa3684e180a18416b9ae1b695243/files/exploit_cve_2024_6387.yara#L2-L38"
= "https://github.com/craiu/yararules/blob/23cf0ca22021fa3684e180a18416b9ae1b695243/LICENSE"
= "62b06a6c30a0c891c2246ff87c0ad9ae03d2123601ba5331d6348c43b38d185e"
= "d43a77c2690b5e01639590bc31fa64fa36b1da5efd3cc0761be7369ce80e4253"
= 75
= 85
= "CVE-2024-6387, FILE"
= "1.0"
strings:
$a0 = "Attempting exploitation with glibc base: 0x%lx" ascii wide fullword
$a1 = "Attempt %d of 20000" ascii wide fullword
$a2 = "Failed to establish connection, attempt %d" ascii wide fullword
$a3 = "SSH handshake failed, attempt %d" ascii wide fullword
$a4 = "Possible exploitation success on attempt %d with glibc base 0x%lx!" ascii wide fullword
$a5 = "Received SSH version: %s" ascii wide fullword
$a6 = "Connection closed while receiving SSH version" ascii wide fullword
$a7 = "Received KEX_INIT (%zd bytes)" ascii wide fullword
$a8 = "Connection closed while receiving KEX_INIT" ascii wide fullword
$a9 = "Estimated parsing time: %.6f seconds" ascii wide fullword
$a10 = "Received response after exploit attempt (%zd bytes)" ascii wide fullword
$a11 = "Possible hit on 'large' race window" ascii wide fullword
$a12 = "Connection closed by server - possible successful exploitation" ascii wide fullword
$a13 = "No immediate response from server - possible successful exploitation" ascii wide fullword
$a14 = "Attempt %d of 10000" ascii wide fullword
condition:
( filesize < 5MB ) and ( uint32be( 0 ) == 0x7F454C46 ) and ( 4 of ( $a* ) )
}
Strings (15 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $a0 | Text | "Attempting exploitation with glibc base: 0x%lx" | ascii wide fullword |
| $a1 | Text | "Attempt %d of 20000" | ascii wide fullword |
| $a2 | Text | "Failed to establish connection, attempt %d" | ascii wide fullword |
| $a3 | Text | "SSH handshake failed, attempt %d" | ascii wide fullword |
| $a4 | Text | "Possible exploitation success on attempt %d with glibc base 0x%lx!" | ascii wide fullword |
| $a5 | Text | "Received SSH version: %s" | ascii wide fullword |
| $a6 | Text | "Connection closed while receiving SSH version" | ascii wide fullword |
| $a7 | Text | "Received KEX_INIT (%zd bytes)" | ascii wide fullword |
| $a8 | Text | "Connection closed while receiving KEX_INIT" | ascii wide fullword |
| $a9 | Text | "Estimated parsing time: %.6f seconds" | ascii wide fullword |
| $a10 | Text | "Received response after exploit attempt (%zd bytes)" | ascii wide fullword |
| $a11 | Text | "Possible hit on 'large' race window" | ascii wide fullword |
| $a12 | Text | "Connection closed by server - possible successful exploitation" | ascii wide fullword |
| $a13 | Text | "No immediate response from server - possible successful exploitation" | ascii wide fullword |
| $a14 | Text | "Attempt %d of 10000" | ascii wide fullword |
Bedingung
( filesize < 5MB ) and ( uint32be( 0 ) == 0x7F454C46 ) and ( 4 of ( $a* ) )In Worten (Heuristik)
- Die Datei muss mit dem ELF-Header beginnen — eine Linux/Unix-Programmdatei.
- Die Datei muss kleiner als 5MB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 4 Muster aus ( $a* ) 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).
- 62b06a6c30a0c891c2246ff87c0ad9ae03d2123601ba5331d6348c43b38d185e
Lizenz & Namensnennung
Autor: Costin G. Raiu, TLPBLACK, craiu@noh.ro
Quell-Repository: Costin Raiu yararules @ 23cf0ca220
Lizenz: GNU General Public License v3.0 (Repository-Lizenz)
Gespiegelt über YARA Forge 20260927, das Regelnamen mit der Quelle präfixiert und normalisierte Meta-Felder ergänzt.
Regel-ID: 6ac63016-864d-57af-bb36-3115a0a91021
Metadaten
| version | 1.0 |
|---|
Tags:CVE_2024_6387FILE
Verwandte Regeln
- MalwareCostin Raiu yararules· Costin G. Raiu, TLPBLACK, craiu@noh.ro· 2024-07-03