mirror of
https://github.com/mandiant/capa-rules
synced 2026-06-08 15:41:20 +00:00
43 lines
1.3 KiB
YAML
43 lines
1.3 KiB
YAML
rule:
|
|
meta:
|
|
name: delay execution
|
|
authors:
|
|
- michael.hunhoff@mandiant.com
|
|
- "@ramen0x3f"
|
|
lib: 'true'
|
|
scopes:
|
|
static: basic block
|
|
dynamic: thread
|
|
mbc:
|
|
- Anti-Behavioral Analysis::Dynamic Analysis Evasion::Delayed Execution [B0003.003]
|
|
references:
|
|
- https://docs.microsoft.com/en-us/windows/win32/sync/wait-functions
|
|
- https://github.com/LordNoteworthy/al-khaser/blob/master/al-khaser/TimingAttacks/timing.cpp
|
|
examples:
|
|
- al-khaser_x86.exe_:0x449770
|
|
- B5F85C26D7AA5A1FB4AF5821B6B5AB9B:0x402FA6
|
|
features:
|
|
- or:
|
|
- and:
|
|
- os: windows
|
|
- or:
|
|
- api: kernel32.Sleep
|
|
- api: kernel32.SleepEx
|
|
- api: kernel32.WaitForSingleObject
|
|
- api: kernel32.SignalObjectAndWait
|
|
- api: kernel32.WaitForSingleObjectEx
|
|
- api: kernel32.WaitForMultipleObjects
|
|
- api: kernel32.WaitForMultipleObjectsEx
|
|
- api: kernel32.RegisterWaitForSingleObject
|
|
- api: WaitOnAddress
|
|
- api: user32.MsgWaitForMultipleObjects
|
|
- api: user32.MsgWaitForMultipleObjectsEx
|
|
- api: NtDelayExecution
|
|
- api: KeWaitForSingleObject
|
|
- api: KeDelayExecutionThread
|
|
- and:
|
|
- os: linux
|
|
- or:
|
|
- api: sleep
|
|
- api: usleep
|