indirectSyscall evasion refers to executing the syscall instruction by diverting the execution flow into a legitimate, clean ntdll stub that performs the syscall on process behalf. This achieves code origin legitimacy, since the execution lands in .text of a signed Microsoft module (ntdll.dll). Sta
| 58 | // of a signed Microsoft module (ntdll.dll). Stack frames look identical to |
| 59 | // a normal API call, which achieves call stack normalization. |
| 60 | type indirectSyscall struct { |
| 61 | offsets map[event.Type]uintptr // stores expected syscall stub offsets |
| 62 | } |
| 63 | |
| 64 | func NewIndirectSyscall() Evasion { |
| 65 | return &indirectSyscall{} |
nothing calls this directly
no outgoing calls
no test coverage detected