Direct System Calls
Also called Direct syscalls.
Invoking the kernel directly to skip monitored user-mode APIs.
What it is
A technique where malware issues system calls itself, by setting up the syscall number and transitioning to the kernel, instead of routing through the documented user-mode functions that endpoint tools usually monitor. It crafts the syscall stub directly.
Why it matters
Because endpoint products often hook the user-mode API layer, calling the kernel directly slips past those hooks. Hard-coded or dynamically resolved syscall numbers in a sample are a recognized evasion indicator.
In practice
Spotting an inline syscall stub that allocates and writes memory without ever touching the hooked user-mode wrapper.
What to look for
- syscall instructions outside ntdll.dll.
- Hardcoded system call numbers in the binary.
- EDR hooks bypassed with no matching API calls.
Common mistake
Relying only on user mode hooks. Kernel telemetry and stack inspection catch what hooks miss.
Practice it nearby
CyberKit has no tool for this term itself. These are the closest places to practice it.
- File Triage
Drop any file. It names the format from its first bytes, hashes it, and opens the parser that reads it: PE, ELF, Mach-O, Office, PDF, plist, or entropy and strings.
- Rule Range
Write a regex, a Sigma rule, a YARA rule and a query pipeline, each graded live against samples, some of which you never see.
In the field
Well-known tools where this shows up on the job. They are listed to show the landscape, not as a recommendation.
-
CrowdStrike Falcon Commercial
An EDR agent that records process, file and network activity on each host and flags this kind of behavior.
-
Microsoft Defender for Endpoint Commercial
Microsoft's EDR, with advanced hunting tables you can query for this activity across Windows, macOS and Linux.
-
Velociraptor Open source
Collects and hunts for artifacts across many hosts at once, often during live response. Our notes.
-
Sysmon Free
Free Windows logging of process starts, network connections and more, which many detections rely on. Our notes.
Read next
- Userland Hooking: Redirecting an API by patching its code or pointer in user space.
- Dynamic API Resolution: Looking up needed functions at runtime instead of importing them.
- Shellcode: Compact, self-contained machine code that runs from an injected buffer.