(YARA) Detect GetForegroundWindow Usage
import "pe"
rule UNPROTECT_Possible_GetForegroundWindow_Evasion
{
meta:
description = "Attempts to detect possible usage of sandbox evasion techniques using GetForegroundWindow API, based on module imports."
author = "Kyle Cucci"
date = "2020-09-30"
condition:
uint16(0) == 0x5A4D and
pe.imports("user32.dll", "GetForegroundWindow") and
pe.imports("kernel32.dll", "Sleep")
}
Associated Techniques
No associated technique found so far.
Matching Samples 10 most recent
| Sample Name | Matching Techniques | First Seen | Last Seen |
|---|---|---|---|
| new.exe | 8 | 2026-09-29 | 2 weeks, 1 day ago |
| Sotfgmc.exe | 3 | 2026-08-26 | 1 month, 2 weeks ago |
| enigma.dll | 4 | 2026-08-09 | 2 months ago |
| ietabhelper.exe | 5 | 2026-08-01 | 2 months, 2 weeks ago |
| Activator.exe | 10 | 2026-07-30 | 2 months, 2 weeks ago |
| prestige.dll | 8 | 2026-07-01 | 3 months, 2 weeks ago |
| 2m96.exe | 6 | 2026-06-30 | 3 months, 2 weeks ago |
| KincoBuilderV85En.exe | 4 | 2026-06-24 | 3 months, 3 weeks ago |
| nopggplus.dll | 5 | 2026-06-12 | 4 months ago |
| superman.exe | 6 | 2026-04-20 | 5 months, 3 weeks ago |
Created
June 20, 2022
Last Revised
March 27, 2026