Comments (3)
I have replaced this function in my in-kernel embedded version of TitanHide. The hooked version of the function is extremely simple and looks like this:
NTSTATUS NTAPI HookedNtSystemDebugControl(
IN SYSDBG_COMMAND Command,
IN PVOID InputBuffer,
IN ULONG InputBufferLength,
OUT PVOID OutputBuffer,
IN ULONG OutputBufferLength,
OUT PULONG ReturnLength)
{
if (Command == SysDbgGetTriageDump) // 0x1D
{
return STATUS_INFO_LENGTH_MISMATCH;
}
return STATUS_DEBUGGER_INACTIVE;
}
It is an SSDT-only function, but I just tried hooking it with TitanHide and the regular SSDT hook functions that are already in place work fine for it. So it's just a matter of adding the typedefs and hooks.
For reference, the full SYSDBG_COMMAND enum is
typedef enum _SYSDBG_COMMAND {
SysDbgQueryModuleInformation,
SysDbgQueryTraceInformation,
SysDbgSetTracepoint,
SysDbgSetSpecialCall,
SysDbgClearSpecialCalls,
SysDbgQuerySpecialCalls,
SysDbgBreakPoint,
SysDbgQueryVersion,
SysDbgReadVirtual,
SysDbgWriteVirtual,
SysDbgReadPhysical,
SysDbgWritePhysical,
SysDbgReadControlSpace,
SysDbgWriteControlSpace,
SysDbgReadIoSpace,
SysDbgWriteIoSpace,
SysDbgReadMsr,
SysDbgWriteMsr,
SysDbgReadBusData,
SysDbgWriteBusData,
SysDbgCheckLowMemory,
SysDbgEnableKernelDebugger,
SysDbgDisableKernelDebugger,
SysDbgGetAutoKdEnable,
SysDbgSetAutoKdEnable,
SysDbgGetPrintBufferSize,
SysDbgSetPrintBufferSize,
SysDbgGetKdUmExceptionEnable,
SysDbgSetKdUmExceptionEnable,
SysDbgGetTriageDump,
SysDbgGetKdBlockEnable,
SysDbgSetKdBlockEnable,
} SYSDBG_COMMAND, *PSYSDBG_COMMAND;
from titanhide.
This will break non-hidden processes that call NtSystemDebugControl
though.
from titanhide.
Yes, that's true. I forgot I was copying from my WRK kernel source which doesn't have a concept of non-hidden processes :P
I created PR #16 that wraps it in an IsHidden() check and logs it like the SystemKernelDebuggerInformation hook.
from titanhide.
Related Issues (20)
- Achilles' heel of SSDT Hook ThreadFromDebugger HOT 2
- The variable is assigned to itself
- Windows 10 x64 (1607) A device attached to the system is not functioning.
- PAGE_FAULT_IN_NONPAGED_AREA on Windows 10 x64(19042) HOT 5
- This driver has been blocked from loading HOT 5
- Failed to compile HOT 3
- "sc start TitanHide " return "Failed 2" HOT 1
- Name : Error starting service (577) HOT 1
- Green screen on win11 x64
- Latest build has been deleted
- SystemKernelDebuggerInformationEx is not hided HOT 1
- VMProtect 3.6 (Build 1406) Anti-debug ——TitanHide HOT 1
- titanhide with ida pro HOT 1
- TitanHideGui does not work HOT 1
- Detect Trojan:Script/Phonzy.A!ml inside (TitanHideGUI.exe) x32
- Fail to Start TitanHide Service HOT 2
- FindCaveAddress bug HOT 2
- NtSystemDebugControl Incomplete HOT 1
- navicat16.2.2 for win 无法激活了,可否帮看看
- [request] Provide builds for x86dbg plugin HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from titanhide.