(YARA) YARA_Detect_Possible_GetForegroundWindow_Evasion

Download Raw

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

Matching Samples 10 most recent

Sample Name Matching Techniques First Seen Last Seen
FBH.dll 10 2025-03-22 3 weeks, 6 days ago
OutlastDev hackvshack.net.dll 4 2025-03-02 1 month, 2 weeks ago
hmpalert pre-patched.exe 7 2025-02-12 2 months, 1 week ago
weave hackvshack.net.dll 6 2025-02-12 2 months, 1 week ago
cracked-by-txmuxn.exe 6 2025-02-09 2 months, 1 week ago
penis.dll 1 2025-02-05 2 months, 1 week ago
FL Keys_x64.dll 4 2025-02-03 2 months, 2 weeks ago
0b863912f72efc4e514d3165e6ae...821dfa56a1fd545dba5960f6.exe 3 2025-01-11 3 months, 1 week ago
kernel32.dll 13 2024-12-30 3 months, 2 weeks ago
honeypot.exe 5 2024-12-04 4 months, 2 weeks ago
View All

Created

June 20, 2022

Last Revised

June 20, 2022