← Back to SOC feed Coverage →

Look for 256-bit key Chacha stream cipher constant

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-05-05T23:00:00Z · Confidence: medium

Hunt Hypothesis

The detection rule identifies potential use of a 256-bit key ChaCha stream cipher constant, which may indicate the presence of encrypted data or communication that could be part of adversarial activity. SOC teams should proactively hunt for this behavior in Azure Sentinel to identify potential data exfiltration or encrypted command and control channels that may evade traditional detection methods.

YARA Rule

rule Chacha_256_constant {
    meta:
		author = "spelissier"
		description = "Look for 256-bit key Chacha stream cipher constant"
		date = "2019-12"
		reference = "https://tools.ietf.org/html/rfc8439#page-8"
	strings:
		$c0 = "expand 32-byte k"
		$split1 = "expand 3"
		$split2 = "2-byte k"
	condition:
		$c0 or ( $split1 and $split2 )
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 3 string patterns in its detection logic.

References

False Positive Guidance

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