← Back to SOC feed Coverage →

Catches Stampado samples looking for \\r at the beginning of PE overlay section

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

Hunt Hypothesis

This hunt targets adversaries utilizing the Stampado malware family by identifying suspicious Portable Executable (PE) files that exhibit an anomalous carriage return character (\\r) at the start of their overlay sections. Proactively hunting for this specific artifact in Azure Sentinel is critical to detect early-stage infections and potential command-and-control infrastructure, even when initial alert severity is low.

YARA Rule

rule stampado_overlay
{
meta:
description = "Catches Stampado samples looking for \\r at the beginning of PE overlay section"
reference = ""
author = "Fernando Merces, FTR, Trend Micro"
date = "2016-07"
md5 = "a393b9536a1caa34914636d3da7378b5"
md5 = "dbf3707a9cd090853a11dda9cfa78ff0"
md5 = "dd5686ca7ec28815c3cf3ed3dbebdff2"
md5 = "6337f0938e4a9c0ef44ab99deb0ef466"

condition:
pe.characteristics == 0x122 and
pe.number_of_sections == 5 and
pe.imports("VERSION.dll", "VerQueryValueW") and uint8(pe.sections[4].raw_data_offset + pe.sections[4].raw_data_size) == 0x0d

}

Deployment Notes

This YARA rule can be deployed in the following contexts:

References

False Positive Guidance

Here are 4 specific false positive scenarios where legitimate enterprise activities trigger the “Stampado PE Overlay \\r” detection rule, along with suggested filters:

Original source: https://github.com/Yara-Rules/rules/blob/main/malware/RANSOM_Stampado.yar