User Mode: Hooking the Enumeration APIs
The trick: intercept the API a tool uses to list things, run the real
call, then filter out rows that mention the rootkit before
returning.
- Windows: hide a process by filtering
NtQuerySystemInformationresults; hide a file by filtering directory-listing results. - The victim tool (Task Manager,
dir,ls) never knows its data was edited.