BYOKSH is a windows rootkit developed with BYOVD(Bring your own vulnerable device) in mind and hate in hearth.
It uses RTCore64.sys vulnerable driver but can easily adapted to every R/W primitive vulnerable drivers by simply implementing a file like the rtcore.cpp and adding the communication struct inside utils.h.
Right Now it looks pretty stable, stabler than the Rootkit version(tho it has less functionalities).
- Listing and Deleting:
- Process operations kernel callbacks.
- Thread operations kernel callbacks.
- Registry operations kernel callbacks.
- Object operations kernel callbacks.
- Minifilter operations kernel callbacks (NOT IMPLEMENTED Right now).
- Disabling Windows Thread Intelligence kernel ETW provider.
- Bypassing PPL by changing the Protection field of the _EPROCESS struct (Useful for example to bypass lsass dumping protections). (STILL NOT WORKING WITH CredentialGuard ENABLED).
- Elevating a local process by PID. (Elevates process via Token stealing).
- Hide a process from the process linked list.
- Implementing minifilter callbacks removal.
- Improving ppl bypass with CredentialGuard bypass.
- Implementing EDRs termination using another driver or crashing the target process corrupting them.
- More ETW bypassing.
- Token downgrade(?)
Since it calculates offsets by downloading pdb of target file from internet, it needs admin privs to get ntoskrnl.exe and also if you need to load the driver it needs to have admin privs.
