Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Osx_Macsearch

Detects MacSearch adware

MalwareMacsearchditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 71

What this rule detects

Detects MacSearch adware

Associated malware family: Macsearch.

It defines 14 patterns (14 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-osx-macsearch.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Osx_Macsearch : FILE
{
	meta:
		description = "Detects MacSearch adware"
		author = "ditekSHen"
		id = "facdf05c-5ee4-54c6-9ca3-01978af2b6e6"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L3071-L3092"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "973b7215fc8d04685a46d05b53b4092e7b81ed0d64d6982b534f2b89d0a59443"
		score = 75
		quality = 71
		tags = "FILE"

	strings:
		$s1 = "open -a safari" ascii
		$s2 = "/INDownloader" ascii
		$s3 = "/safefinder" ascii
		$s4 = "/INEncryptor" ascii
		$s5 = "/INInstallerFlow" ascii
		$s6 = "/INConfiguration" ascii
		$s7 = "/INChromeAndFFSetter" ascii
		$s8 = "/INSafariSetter" ascii
		$s9 = "/bin/launchctl" fullword ascii
		$s10 = "/usr/bin/csrutil" fullword ascii
		$s11 = "_Tt%cSs%zu%.*s%s" fullword ascii
		$s12 = "_Tt%c%zu%.*s%zu%.*s%s" fullword ascii
		$s13 = "/macap/safefinder_Obf/safefinder/" ascii
		$s14 = "/safefinder.build/Release/macsearch.build/" ascii

	condition:
		uint16( 0 ) == 0xfacf and 10 of them
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$s1text"open -a safari"ascii
$s2text"/INDownloader"ascii
$s3text"/safefinder"ascii
$s4text"/INEncryptor"ascii
$s5text"/INInstallerFlow"ascii
$s6text"/INConfiguration"ascii
$s7text"/INChromeAndFFSetter"ascii
$s8text"/INSafariSetter"ascii
$s9text"/bin/launchctl"fullword ascii
$s10text"/usr/bin/csrutil"fullword ascii
$s11text"_Tt%cSs%zu%.*s%s"fullword ascii
$s12text"_Tt%c%zu%.*s%zu%.*s%s"fullword ascii
$s13text"/macap/safefinder_Obf/safefinder/"ascii
$s14text"/safefinder.build/Release/macsearch.build/"ascii

Condition

uint16( 0 ) == 0xfacf and 10 of them

In plain words (Heuristic)

  • At least 10 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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: facdf05c-5ee4-54c6-9ca3-01978af2b6e6

Tags:FILE