Hello
@Kardo Kristal,
You've been working really hard and so I thought of a way I could help you, therefore for the past few days I've used some of my spare time to start developing a feature I'd like to donate to you for Crystal Security, I'm sure you'll like it... Process protection!
Currently, I've only made it as far as protecting against process termination from specific functions which are commonly used. The process protection works by protecting the Crystal Security process from user-mode level, which of course means you won't have to worry about kernel-mode drivers. The way it is applied is via injecting the DLL into processes - upon injection, hooks will attempt to be set on specific functions via placing a JMP instruction to the address of the callback function at the address of the function in the IAT (Import Address Table). This means when the function is called, my code will be executed if the hook is present and I can use my callback to check the parameters and if it's trying to request the API call to attack the Crystal Security process, I deny access.
The disadvantage of it working from user-mode is because it can be bypassed more easily. But, you shouldn't worry about this, it's still effective.
I have decided to use Task Manager as an example, however of course it will be just as effective with malware. It's compatible for both x86 and x64 processes.
An example of what would happen if you attempt to terminate the Crystal Security process via Task Manager:
Please bear in mind this is just the first stage of the process protection I have been developing for you... Starting from tomorrow, I'll be away until the 28th of July on holiday... Whilst I am away (no internet connection) I'll improve the process protection I am currently developing for you, such as adding new features like protection against process suspension, termination of the process threads... I'll focus on process protection now for the self defence, maybe in the future when I have more time in the summer, I'll add protection for the Crystal Security registry keys, files, etc.
Let me know what you think, and remember, if you want to use this feature in Crystal Security, it's a gift from me.
Cheers.