Skip to content

YARA · Costin Raiu yararules

CRAIU_Susp_Ios_Shutdown

Detect shutdown.log files from sysdiags with suspicious entries

Suspicious / huntingCostin Raiu yararulesGNU General Public License v3.0Compiles with YARA-X
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:
		description = "Detect shutdown.log files from sysdiags with suspicious entries"
		author = "Costin G. Raiu, Art of Noh, craiu@noh.ro"
		id = "08aa1fb9-7af0-515a-91a8-09ed35e48155"
		date = "2023-12-28"
		modified = "2024-03-05"
		reference = "https://securelist.com/shutdown-log-lightweight-ios-malware-detection-method/111734/"
		source_url = "https://github.com/craiu/yararules/blob/23cf0ca22021fa3684e180a18416b9ae1b695243/files/susp_ios_shutdown.yara#L2-L25"
		license_url = "https://github.com/craiu/yararules/blob/23cf0ca22021fa3684e180a18416b9ae1b695243/LICENSE"
		logic_hash = "936101f2dddb73f6dda41be47d775199c458aa4fecdcf348ed479da620343ea1"
		score = 65
		quality = 85
		tags = ""
		version = "1.0"
		tlp = "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)

IdentifierTypeValueModifiers
$a1text"these clients are still here:"
$b1text"/private/var/db/"
$b2text"/private/var/tmp/"
$c1text"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.

Open in editor

References

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)

Original rule

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

version1.0
tlpTLP:CLEAR