← Back to SOC feed Coverage →

Looks for crypt32 CryptBinaryToStringA function

yara LOW Yara-Rules
community
This rule was pulled from an open-source repository and enriched with AI. Validate in a test environment before deploying to production.
View original rule at Yara-Rules →
Retrieved: 2026-04-23T09:00:00Z · Confidence: medium

Hunt Hypothesis

The crypt32 CryptBinaryToStringA function may indicate an adversary attempting to decode or manipulate binary data, potentially as part of credential theft or data exfiltration. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify potential data manipulation or sensitive information processing activities.

YARA Rule

rule Crypt32_CryptBinaryToString_API {
	meta:
		author = "_pusher_"
		description = "Looks for crypt32 CryptBinaryToStringA function"
		date = "2016-08"
	strings:
		$crypt32 = "crypt32.dll" wide ascii nocase
		$CryptBinaryToStringA = "CryptBinaryToStringA" wide ascii
	condition:
		$crypt32 and ($CryptBinaryToStringA)
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 2 string patterns in its detection logic.

False Positive Guidance

Original source: https://github.com/Yara-Rules/rules/blob/main/crypto/crypto_signatures.yar