YARA · Costin Raiu yararules
CRAIU_Susp_Ios_Shutdown
Detect shutdown.log files from sysdiags with suspicious entries
- Author
- Costin G. Raiu, Art of Noh, craiu@noh.ro
- Date
- 2023-12-28
- Modified
- 2024-03-05
- Score / Quality
- 65 / 85
What this rule detects
Detect shutdown.log files from sysdiags with suspicious entries
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
susp-ios-shutdown.yarGNU General Public License v3.0
rule CRAIU_Susp_Ios_Shutdown
{
meta:
= "Detect shutdown.log files from sysdiags with suspicious entries"
= "Costin G. Raiu, Art of Noh, craiu@noh.ro"
= "08aa1fb9-7af0-515a-91a8-09ed35e48155"
= "2023-12-28"
= "2024-03-05"
= "https://securelist.com/shutdown-log-lightweight-ios-malware-detection-method/111734/"
= "https://github.com/craiu/yararules/blob/23cf0ca22021fa3684e180a18416b9ae1b695243/files/susp_ios_shutdown.yara#L2-L25"
= "https://github.com/craiu/yararules/blob/23cf0ca22021fa3684e180a18416b9ae1b695243/LICENSE"
= "936101f2dddb73f6dda41be47d775199c458aa4fecdcf348ed479da620343ea1"
= 65
= 85
= ""
= "1.0"
= "TLP:CLEAR"
strings:
$a1 = "these clients are still here:"
$b1 = "/private/var/db/"
$b2 = "/private/var/tmp/"
$c1 = "After "
condition:
($c1 at 0 ) and $a1 and ( any of ( $b* ) )
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $a1 | text | "these clients are still here:" | |
| $b1 | text | "/private/var/db/" | |
| $b2 | text | "/private/var/tmp/" | |
| $c1 | text | "After " |
Condition
($c1 at 0 ) and $a1 and ( any of ( $b* ) )In plain words (Heuristic)
- At least one pattern in ( $b* ) must match.
- Pattern $c1 must be found at offset 0.
- Pattern $a1 must be present.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
Licence & attribution
Author: Costin G. Raiu, Art of Noh, craiu@noh.ro
Source repository: Costin Raiu yararules @ 23cf0ca220
Licence: GNU General Public License v3.0 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 08aa1fb9-7af0-515a-91a8-09ed35e48155
Metadata
| version | 1.0 |
|---|---|
| tlp | TLP:CLEAR |
Related rules
- MalwareCostin Raiu yararules· Costin G. Raiu, Art of Noh, craiu@noh.ro· 2024-01-11
- GenericCostin Raiu yararules· Costin G. Raiu, Art of Noh, craiu@noh.ro· 2024-07-19
- MalwareCostin Raiu yararules· Costin G. Raiu, Art of Noh, craiu@noh.ro· 2024-03-30
- MalwareCostin Raiu yararules· Costin G. Raiu, Art of Noh, craiu@noh.ro· 2024-03-30