← Back to SOC feed Coverage →

PECompact

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-09-21T23:00:01Z · Confidence: medium

Hunt Hypothesis

This rule detects the use of PECompact, a compression tool often employed by adversaries to reduce the size of malicious executables or legitimate binaries to evade file-based detection mechanisms. Proactively hunting for this behavior in Azure Sentinel allows the SOC team to identify potential stealth techniques used in initial access or persistence stages, ensuring that compressed payloads are not overlooked during incident response.

YARA Rule

rule pecompact2 : Packer
{
	meta:
		author="Kevin Falcoz"
		date_create="25/02/2013"
		description="PECompact"

	strings:
		$str1={B8 [3] 00 50 64 FF 35 00 00 00 00 64 89 25 00 00 00 00 33 C0 89 08 50 45 43} /*EntryPoint*/

	condition:
		$str1 at pe.entry_point
}

Deployment Notes

This YARA rule can be deployed in the following contexts:

This rule contains 1 string patterns in its detection logic.

False Positive Guidance

Original source: https://github.com/Yara-Rules/rules/blob/main/packers/packer.yar