Write crap, and you end up with crap. That’s the lesson of hooking.
You have not said what the “process” is; is it a service? If it’s a
service, there are already mechanisms for doing this. If it isn’t, maybe
it should be.
If it is a process started in the user’s login session, there may be no
way to prevent this, and that suggests tat the fundamental design is
wrong.
The notion that a process is “unkillable” is, in a login session, a truly
silly idea. I can always kill it by logging off, then logging back in.
Most attempts to do something like this are either easily abused or enable
other abuse. Read Matk Russinovich’s analysis of the Sony malware
incident; Sony essentially enabled a massive attack surface. Hooking is
often tested in only one case (“does it stop this process from being
killed?”) rather than under stress, for example, “If I start another
process of the same name, is it unkillable?”, or “Can I make this process
killable?” Sadly, most “security” kludges are p-baked, largely untested,
solutions with p < 0.1.
So why does your process need to be unkillable? Why is making it
unkillable a Bad Thing? What problem are you REALLY trying to solve?
joe
Is so easy to prevent kill process using x32, for thaht i´m using Hook,
replacing the ZwOpenProcess and returning ACESS_DENIED ! that pretty in
x32 ! But, x64 not allow any patch !
I know that exists any solutions ! i´m seeking several times without
success.
Any Ideas or source code ?
thanks guys
NTDEV is sponsored by OSR
OSR is HIRING!! See http://www.osr.com/careers
For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer