(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 |
|---|---|---|---|
| enigma.dll | 4 | 2026-08-09 | 6 days, 5 hours ago |
| ietabhelper.exe | 5 | 2026-08-01 | 2 weeks ago |
| Activator.exe | 10 | 2026-07-30 | 2 weeks, 2 days ago |
| prestige.dll | 8 | 2026-07-01 | 1 month, 2 weeks ago |
| 2m96.exe | 6 | 2026-06-30 | 1 month, 2 weeks ago |
| KincoBuilderV85En.exe | 4 | 2026-06-24 | 1 month, 3 weeks ago |
| nopggplus.dll | 5 | 2026-06-12 | 2 months ago |
| superman.exe | 6 | 2026-04-20 | 3 months, 3 weeks ago |
| b2a17fbdf536bd79dba9eb5e4ea3...0fdd7eb07ca6c5bdf73de001.exe | 11 | 2026-04-07 | 4 months, 1 week ago |
| FilterKeysSetter.exe | 5 | 2026-03-28 | 4 months, 2 weeks ago |
Created
June 20, 2022
Last Revised
March 27, 2026