I think you still haven't got the big picture here. Writing code for a kernel driver utilizes only your skills with the
framework (WinDDK). You have to learn the framework to do something useful, like a rootkit.
Rootkits are basically drivers (applications, if you wish) that use subversion techniques using by manipulating undocumented or very poorly documented functions and structures and then hooking key functions in Kernel for concealment.
For instance, you know the syntax of C and want to learn Java, the single most important thing is to learn the JDK, plus adjust some coding habits with a slightly changed syntax.
When coding in Kernel Space, all you have to learn is the framework (WinDDK--analogous to JDK) and C (analogous to C->Java syntax).
The good new is... the book "Rootkit Arsenal" contains all the material needed (from a malicious POV), starting from history, then by WinDDK development, Hardware architecture (Intel x86 only), and rootkits: how they work and everything about them. It also contains real-world implementation, in a step-by-step approach.
Here you have got the advantage of already knowing C.
A note: You WILL need to dig deep into Windows internals and undocumented functions and features. There is good material for that. For examples here is a list of good ones:
- The Definitive Native API Guide
- Microsoft Windows Internals
- Introduction to NT Internals
This is, of course, to be able to use the undocumented information to hide processes, registry entries, files/folders, you name it.
If your code is running in Kernel space, you basically
own that machine, especially if you were writing Kernel-Mode drivers.
Also, google, you may/will find updated things. Plus there is a dedicated undocumented APIs.
Sorry, can't post links yet. I really needed some rep+ :)
Lastly, reading about reversed malware can be pretty much informative too. For example, google
"Ouroboros - The Snake Rootkit.pdf". It was professionally analyzed and I have learned new techniques and stuff from it.
Hope that helps.
MoDs
Signing out...