Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_TOOL_PWS_Keychaindumper

Detects macOS certificate/password keychain dumping tool

Suspicious / huntingditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-09-25
Score / Quality
75 / 71

What this rule detects

Detects macOS certificate/password keychain dumping tool

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-tool-pws-keychaindumper.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_TOOL_PWS_Keychaindumper : FILE
{
	meta:
		description = "Detects macOS certificate/password keychain dumping tool"
		author = "ditekSHen"
		id = "cec094fa-c651-58a6-a306-f16d8603e536"
		date = "2020-11-06"
		modified = "2024-09-25"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L473-L484"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "f606bdd5dba2180ffc552c46373b52801a0bd65a538b381fb9f4240efc5bd458"
		score = 75
		quality = 71
		tags = "FILE"
		clamav_sig = "INDICATOR_Osx.Tool.PWS.KeychainDumper"

	strings:
		$s1 = "_getEmptyKeychainItemString" fullword ascii
		$s2 = "NdumpKeychainEntitlements" fullword ascii
		$s3 = "_dumpKeychainEntitlements" fullword ascii

	condition:
		( uint16( 0 ) == 0xfeca or uint16( 0 ) == 0xfacf ) and all of them
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$s1text"_getEmptyKeychainItemString"fullword ascii
$s2text"NdumpKeychainEntitlements"fullword ascii
$s3text"_dumpKeychainEntitlements"fullword ascii

Condition

( uint16( 0 ) == 0xfeca or uint16( 0 ) == 0xfacf ) and all of them

In plain words (Heuristic)

  • All 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: cec094fa-c651-58a6-a306-f16d8603e536

Metadata

clamav_sigINDICATOR_Osx.Tool.PWS.KeychainDumper

Tags:FILE