YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_MAL_EXPL_Perfctl_Oct24
Detects exploits used in relation with Perfctl malware campaigns
- Author
- Florian Roth
- Date
- 2024-10-09
- Modified
- 2024-12-12
- Score / Quality
- 80 / 85
What this rule detects
Detects exploits used in relation with Perfctl malware campaigns
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule SIGNATURE_BASE_MAL_EXPL_Perfctl_Oct24 : FILE
{
meta:
= "Detects exploits used in relation with Perfctl malware campaigns"
= "Florian Roth"
= "1f525eaf-445c-592e-bfa4-e9846390dd1d"
= "2024-10-09"
= "2024-12-12"
= "https://www.aquasec.com/blog/perfctl-a-stealthy-malware-targeting-millions-of-linux-servers/"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/mal_perfctl_oct24.yar#L2-L21"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "22e4a57ac560ebe1eff8957906589f4dd5934ee555ebcc0f7ba613b07fad2c13"
= "44d4683efc66b3c6c2d32be6b83a2bbc1db39c9a020365dddd27c20667bc6a66"
= 80
= 85
= "FILE"
strings:
$s1 = "Exploit failed. Target is most likely patched." ascii fullword
$s2 = "SHELL=pkexec" ascii fullword
$s3 = "/dump_" ascii fullword
$s4 = ".EYE$" ascii
condition:
uint16( 0 ) == 0x457f and filesize < 30000KB and 2 of them or all of them
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "Exploit failed. Target is most likely patched." | ascii fullword |
| $s2 | text | "SHELL=pkexec" | ascii fullword |
| $s3 | text | "/dump_" | ascii fullword |
| $s4 | text | ".EYE$" | ascii |
Condition
uint16( 0 ) == 0x457f and filesize < 30000KB and 2 of them or all of themIn plain words (Heuristic)
- The file must be smaller than 30000KB (a cheap guard that skips large files).
- All patterns in the rule must match.
- At least 2 patterns in the rule must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 22e4a57ac560ebe1eff8957906589f4dd5934ee555ebcc0f7ba613b07fad2c13
Licence & attribution
Author: Florian Roth
Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 1f525eaf-445c-592e-bfa4-e9846390dd1d
Tags:FILE
Related rules
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-04-15
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2024-02-23
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-02-13
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-02-13
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-04-17
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-04-17
- MalwareSignature Base (Florian Roth / Nextron)· Florian Roth· 2023-11-01