Skip to content

Commit 4894a7f

Browse files
committed
feat(rules): Add Process creation via direct syscall rule
Identifies process creation initiated via direct system call, a technique commonly used by malware to bypass user-mode API hooks and evade security monitoring.
1 parent 5de9db7 commit 4894a7f

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Process creation via direct syscall
2+
id: 79627d37-0796-4fe9-afc2-06b9b41563e3
3+
version: 1.0.0
4+
description: |
5+
Identifies process creation initiated via direct system call, a technique
6+
commonly used by malware to bypass user-mode API hooks and evade security
7+
monitoring.
8+
labels:
9+
tactic.id: TA0005
10+
tactic.name: Defense Evasion
11+
tactic.ref: https://attack.mitre.org/tactics/TA0005/
12+
technique.id: T1055
13+
technique.name: Process Injection
14+
technique.ref: https://attack.mitre.org/techniques/T1055/
15+
references:
16+
- https://github.com/jthuraisamy/SysWhispers
17+
- https://github.com/klezVirus/SysWhispers3
18+
19+
condition: >
20+
spawn_process and
21+
direct_syscall and
22+
(thread.callstack.summary not imatches 'unbacked|embeddedbrowserwebview.dll|unbacked' and
23+
thread.callstack.modules not imatches ('?:\\Program Files*\\Microsoft\\EdgeWebView\\*\\EmbeddedBrowserWebView.dll')))
24+
action:
25+
- name: kill
26+
27+
severity: high
28+
29+
min-engine-version: 3.0.0

rules/macros/macros.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,10 @@
106106
- macro: create_symbolic_link_object
107107
expr: evt.name = 'CreateSymbolicLinkObject' and evt.arg[status] = 'Success'
108108

109+
- macro: direct_syscall
110+
expr: evt.is_direct_syscall
111+
description: Indicates if the event has been triggered via direct syscall.
112+
109113
- macro: inbound_network
110114
expr: >
111115
(recv_socket or accept_socket) and

0 commit comments

Comments
 (0)