← Back to SOC feed Coverage →

MASM32 / TASM32

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-23T11:00:00Z · Confidence: medium

Hunt Hypothesis

This rule detects the execution of legacy 32-bit assembly compilers like MASM or TASM, which adversaries may use to compile custom shellcode or low-level payloads that bypass standard language-based detections. Proactively hunting for these rare compiler invocations in Azure Sentinel helps identify stealthy post-exploitation activities where attackers attempt to minimize their footprint by avoiding common scripting or interpreted languages.

YARA Rule

rule masm32_tasm32
{
	meta:
		author = "PEiD"
		description = "MASM32 / TASM32"
		group = "20"
		function = "0"
	strings:
		$a0 = { 6A ?? E8 ?? ?? ?? ?? A3 }
	condition:
		$a0
}

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_compiler_signatures.yar