View Full Version : Comodo Defense+ fails to stop drivers from loading
underdog
August 12th, 2009, 08:49 PM
i recently installed comodo defense+ to protect myself from rootkits. i've spent a few days learning the software now, and i think i've found a major weakness: it fails to stop some drivers from loading! it does stop some drivers, but not all of them. to test this out, i installed a product called virtual cd. virtual cd is basically a virtual dvd rw burner (whereas daemon tools is just a virtual dvd rom). according to eqsecure 3.41, the trial version of virtual cd 9 ( http://www.virtualcd-online.com/vcd/apps/download/vcddownload.cfm?lg=0 ) installs 4 drivers:
HH9Help.sys
VC9SecS.exe
VDRV9000.SYS
vdrv9000.sys
comodo stops 1: VC9SecS.exe and lets all the others through without even saying anything about a device driver installation. to confirm this, simply download and install that trial version and see which drivers your hips can catch! is this a weakness in comodo defense+? if it will let 3 drivers from a non malicious app through, then it can easily allow any rootkit through, right? i stopped using eqsecure because they are no longer updating the old version. they released a new version of eqsecure (version 4) but it's no longer free, and i can't read the chinese on their webpage anyways even if i wanted to. i have had serious trouble finding a replacement. i tried online armor already, but it doesn't allow you to detect only specific types of behavior like comodo does, and it also doesn't seem to have a mechanism for blocking drivers.
CogitoTesting
August 12th, 2009, 10:04 PM
Have you tried Outpost Security Suite 2009. It has excellent HIPS. Download a free trial at www.agnitum.com and do the test again and compare results. If you decide to try OSS 2009 please uncheck train agnitum for 7 days; since in that mode OSS 2009 is actually learning rather fully blocking. Good Luck and keep us posted on the result.
underdog
August 12th, 2009, 10:21 PM
i haven't tried outpost security suite, but i tried its free version to see how it would be like. for some reason, it's showing 300 kb/sec i/o in process hacker (this would probably be "I/O Delta Total Bytes" in process explorer). i would be ok with this, but it's making my fan spin a lot more. i googled for solutions but could not find a solution. actually, in 2005, a super moderator named paranoid2000 posted in outpost's forums (i think he's here on wilders as well) about the problem being related to virus scanners scanning outpost's logs. however, i disabled my only on demand scanner (eset nod32), and the i/o was still very high. in any case, i think his solution was for an older version of outpost anyways, since it was so long ago.
if anyone knows a solution to this problem, i would be more than happy to test the other features of outpost. a pity...i really liked its menus and settings. in fact, i liked everything about it except for its abnormally high i/o :(
underdog
August 13th, 2009, 01:23 AM
-{ Quote: "Like with any classical HIPS, you just need to configure Defense+ to suit your needs mate:
1. Open CIS
2. Click "DEFENSE+" tab
3. Click "Image Execution Control Settings"
4. Click "Files to check" tab
5. Click "Add > File Groups > Executables"
6. Click "OK" (notice this will add .sys, and thus your problem should be solved)
Hope that helps, and enjoy using this very powerful, very light-weighted and very free HIPS!" }-
great suggestion! unfortunately, i don't want .exe files in the list. is there a way to have only .bat, .com, and .sys? i allow .exe files to run automatically to minimize the number of alerts. only when they try to do something suspicious do i want comodo to alert me.
edit: i figured out how to add .sys manually. i browsed and then entered *.sys, but does comodo distinguish between .exe files simply running and .exe files being "loaded as drivers" (whatever that means)?
Kees1958
August 13th, 2009, 02:40 AM
-{ Quote: "Like with any classical HIPS, you just need to configure Defense+ to suit your needs mate:
1. Open CIS
2. Click "DEFENSE+" tab
3. Click "Image Execution Control Settings"
4. Click "Files to check" tab
5. Click "Add > File Groups > Executables"
6. Click "OK" (notice this will add .sys, and thus your problem should be solved)
Hope that helps, and enjoy using this very powerful, very light-weighted and very free HIPS!" }-
Well that would be a bummer. Image execution is intended to check whether code is changed. That has nothing to do with driver loading or driver installation.
When a driver access ring 0 it has at least the same 'priveledges' as Comodo, so would be an interesting an unpredicted battle between say an installed rootkit and Comodo.
Does not have Comodo a better solution for that (just doing what it suppoesed to do when you check monitor driver loading/creation). So I would post this in the comodo forums.
aigle
August 13th, 2009, 02:48 AM
-{ Quote: "i recently installed comodo defense+ to protect myself from rootkits. i've spent a few days learning the software now, and i think i've found a major weakness: it fails to stop some drivers from loading! it does stop some drivers, but not all of them. to test this out, i installed a product called virtual cd. virtual cd is basically a virtual dvd rw burner (whereas daemon tools is just a virtual dvd rom). according to eqsecure 3.41, the trial version of virtual cd 9 ( http://www.virtualcd-online.com/vcd/apps/download/vcddownload.cfm?lg=0 ) installs 4 drivers:
HH9Help.sys
VC9SecS.exe
VDRV9000.SYS
vdrv9000.sys
comodo stops 1: VC9SecS.exe and lets all the others through without even saying anything about a device driver installation. to confirm this, simply download and install that trial version and see which drivers your hips can catch! is this a weakness in comodo defense+? if it will let 3 drivers from a non malicious app through, then it can easily allow any rootkit through, right? i stopped using eqsecure because they are no longer updating the old version. they released a new version of eqsecure (version 4) but it's no longer free, and i can't read the chinese on their webpage anyways even if i wanted to. i have had serious trouble finding a replacement. i tried online armor already, but it doesn't allow you to detect only specific types of behavior like comodo does, and it also doesn't seem to have a mechanism for blocking drivers." }-
May be you were using safe mode that allowed drivers loading automatically?
blacknight
August 13th, 2009, 02:56 AM
I was going to write the same question: what about these drivers and CIS in Paranoid mode ?
underdog
August 13th, 2009, 02:17 PM
-{ Quote: "May be you were using safe mode that allowed drivers loading automatically?" }-
i'm in paranoid mode. i even deleted the rules of all applications, including system applications so i could control exactly what was loaded. those drivers i listed from virtual cd 9 are not detected at all (except one of them that is).
-{ Quote: "I was going to write the same question: what about these drivers and CIS in Paranoid mode ?" }-
i'm in paranoid mode and i have *.sys added under image execution control. i thought this would do it. unfortunately (or perhaps fortunately), kees1958 has shown that execution and driver loading are not the same, even if they involve the same file. interestingly enough, the one file CIS does detect being loaded as a device driver is an .exe file, not a .sys file.
any thoughts on this?
aigle
August 13th, 2009, 08:30 PM
It's best to post in their forums.
underdog
August 13th, 2009, 09:52 PM
-{ Quote: "It's best to post in their forums." }-
i did already.
Kees1958
August 15th, 2009, 02:00 AM
Anyone ever got a response posting the Comodo forum with a problem?
Kees1958
August 15th, 2009, 02:53 AM
-{ Quote: "Depends what the problem is, but to answer that question: Yes.
I've also got direct responses from the main developer (Egeman) via PM." }-
Well, I problably have made to many jokes on Comodo. Noticed that 3xist is no longer a member of wilders also ???
subset
August 15th, 2009, 12:39 PM
-{ Quote: "
So he's quit from the Comodo forums,... " }-
He's back, like always. He's an Incredible Massive Quitter.
Maybe he suffers of the revolving door effect.
Cheers
underdog
August 16th, 2009, 01:23 AM
here are some related topics on comodo's forum:
https://forums.comodo.com/leak_testingattacksvulnerability_research/defence_failed_against_malware-t19073.0.html
https://forums.comodo.com/leak_testingattacksvulnerability_research/d_give_a_great_alert_about_dns_trojan_dropper_test-t25570.0.html
https://forums.comodo.com/leak_testingattacksvulnerability_research/rootkitdriver_install_not_intercepted-t25663.0.html
https://forums.comodo.com/defense_help/defense_fails_to_stop_driver_loading-t43955.0.html
these threads seem to indicate that comodo currently fails to stop a significant number of drivers from being installed. the only fixes so far have not been to improve the "device driver" loading detection filter, but rather to manually add lines to both the registry protection AND the list of protected files/folders. a rootkit could easily find a line that hasn't yet been added and bypass defense+. these tweaks would not work against an unknown rootkit as well as better protection against driver loading would.
there is also the danger that if you don't enable a fourth filter (namely, COM protection), then you would unknowingly allow a malicious installer to install an innocuous looking driver through services.exe. you already get plenty of alerts about drivers from legitimate applications and windows itself as is, and it would be all too easy to click one more time. put together, these seem to be pretty significant holes in defense+.
aigle
August 18th, 2009, 03:30 PM
CFP intercepts driver loading fine. However there is a problem with alerts about intercetion of driver/ service install. The pop up alerts in these cases are very poor unlike other HIPS.
http://www.wilderssecurity.com/showthread.php?p=1526872#post1526872
211382211383
211384
StevieO
August 18th, 2009, 03:44 PM
You can block things like .BAT.COM etc etc seperately from any HIPS etc.
An App such as the very good and free Script Defender will do this http://www.analogx.com/contents/download/System/sdefend/Freeware.htm
Whenever an included extension trys to launch it will instantly intervene and block it, and ask you if you want it to run or not.
I've been using it for years, and it works every time. Uses NO resources except when blocking, and then hardly any, and only until you allow/deny.
aigle
August 18th, 2009, 04:11 PM
No execution,no infection is the rule ofcourse.
firzen771
August 18th, 2009, 04:19 PM
-{ Quote: "aigle and anyone else, can I just ask your opinion(s) on driver loading in general? Obviously, from your test, you purposefully ran a .exe file right? I mean, in practise, if you don't trust the .exe file or are unsure about it, you shouldn't be running it right? Or at least run it on a VM if you're curious haha.
So my question is how important stopping driver loading is from a classical HIPS or anti-executable point of view. Are you talking about drive-by executions from malicious web-sites? If so, wouldn't a simple anti-executable process be sufficient to stop malicious driver loading? Thanks for any information." }-
pretty sure the test is just to see what the alerts wuld look like if u wer to run the .exe. not to simulate a real life scenario.
underdog
August 19th, 2009, 05:03 PM
I consider this matter resolved now based on Aigle's tests. They seem to show that Comodo was not bypassed as a result of it being blind to driver loading. However, the way in which Comodo alerts the user needs serious improvement for many reasons, not the least of which is that the registry alert corresponding to the driver install could easily be mixed in with many other more trivial alerts. I have made the relevant suggestion in Defense+'s wishlist forum. If you have any thoughts, please post them here :) :
https://forums.comodo.com/defense_wishlist/on_driver_install_say_driver_install_not_registry_modification-t43954.0.html
Even though Comodo itself may have been able to see the activity, I still consider it a serious problem if it does not alert the user in a way that gives the user to respond appropriately. Driver loading is very different from registry intrusion, and should be kept separate by Defense+.
Another alert type that should be kept separate from driver installation alerts is the protected file/folder alert, for the same reason. Please see the thread on Comodo's forums at the link above for details.
Finally, on COM access and similar situations in which one program invokes a system process to load a driver, an appropriate alert should be given to the user. Once again, the link above provides all the details.
Dregg Heda
August 19th, 2009, 11:05 PM
Script Defender sounds like a fantastic little app. And I can configure it to intercept any extension I want?
StevieO
August 20th, 2009, 12:13 PM
Dregg Heda
Glad you like Script Defender, yes it's a fab little App, and very effective at what it can do.
Einsturzende
August 20th, 2009, 08:50 PM
-{ Quote: "I consider this matter resolved now based on Aigle's tests. They seem to show that Comodo was not bypassed as a result of it being blind to driver loading. However, the way in which Comodo alerts the user needs serious improvement for many reasons, not the least of which is that the registry alert corresponding to the driver install could easily be mixed in with many other more trivial alerts. I have made the relevant suggestion in Defense+'s wishlist forum. If you have any thoughts, please post them here :) " }-
Your request for wishlist will be good if you want to improve some behavior blocker (thretfire, mamutu....) D+ is pure HIPS, in other words, what you see is what you get...
Read carefully what you are allowing, just suggestion
here, how driver can be easily registered...(Matousecs first kernel test)
211443
subset
August 20th, 2009, 10:29 PM
-{ Quote: "
here, how driver can be easily registered..." }-
... but only because of the KIS prompts, which have pretty much the same quality like the CIS prompts. :what:
Would you like to post the pics for the KIS prompts related to the Virtual CD drivers in this thread?
http://www.wilderssecurity.com/showthread.php?t=251309
Just to see how easy everyone can figure out this actions with KIS. ;)
Cheers
Einsturzende
August 21st, 2009, 12:25 AM
Here, some of KIS prompts:
211444 211445
211446
211447
(not necessarily by that order)
I really dont have problem with quality of Comodo prompts, it can be easily figured out that drivers trying to register...
What about OA prompts?
Autorun warning?
Why not Autorun services, or new services warning, or something similar...
P.S. sorry didnt catch last couple of warnings...
will post it later if find some time...
Dregg Heda
August 21st, 2009, 04:50 AM
-{ Quote: "Dregg Heda
Glad you like Script Defender, yes it's a fab little App, and very effective at what it can do." }-
Hi Steve,
Just to be clear does Script Defender intercept any extension I want it to?
subset
August 21st, 2009, 09:45 AM
-{ Quote: "
P.S. sorry didnt catch last couple of warnings...
will post it later if find some time..." }-
Would be nice, because I tried to catch these prompts also a few days ago and didn't find any... because there are none.
All I have seen was only this "create file" and "modify reg key" stuff from your prompts.
However, I realized, that KIS simply lacks of the needed features...
Just take a look at the Outpost prompts and you'll know what I mean.
http://www.wilderssecurity.com/showpost.php?p=1526985&postcount=18
BTW do you suffer from OA fixation? :dry:
Cheers
Dregg Heda
August 21st, 2009, 10:20 AM
Those Outpost prompts are EXCELLENT imo!
StevieO
August 21st, 2009, 01:29 PM
Dregg Heda
Hi, yes it does, but obviously if for example you set to intercept .EXE's then it would interfere with your normal Apps.
So the idea is to include only the types that arn't usually required, that can still be used by Malware to try and sneak in. EG - .BAT .COM .VBS etc etc.
It comes with several extentions already included, and you add in whatever you want like this.
,.WMF,.
211450
I recommend that you give it a spin as it only takes a few minutes to be up and running, and then you can see for yourself how effective it really is.
It even come complete with a test VBS script - test.vbs - Double click on it and watch SD leap into action.
Dregg Heda
August 21st, 2009, 01:46 PM
Alright, Thanks for that Stevie!
3x0gR13N
August 22nd, 2009, 11:46 AM
-{ Quote: "Would be nice, because I tried to catch these prompts also a few days ago and didn't find any... because there are none.
All I have seen was only this "create file" and "modify reg key" stuff from your prompts.
However, I realized, that KIS simply lacks of the needed features...
Just take a look at the Outpost prompts and you'll know what I mean.
http://www.wilderssecurity.com/showpost.php?p=1526985&postcount=18
BTW do you suffer from OA fixation? :dry:
Cheers" }-
An example of a red HIPS warning regarding driver load (notice the same notation "Prompt for privileges" as in previous popups screens)...
211486
Unrelated to VCD, but some real malware. The popup is red and mentions driver load, instead of yellow and mentions registry access.
PDM warnings about driver load are always red BTW (but PDM doesn't fit the HIPS-only rule)
subset
August 22nd, 2009, 02:17 PM
-{ Quote: "An example of a red HIPS warning regarding driver load (notice the same notation "Prompt for privileges" as in previous popups screens)...
" }-
Yes, this is a PDM prompt about "hidden drivers install".
So your goal is now to modify the Virtual CD installer for a hidden driver installation or to modify KIS to show appropriate prompts for not so hidden driver installations. :)
Cheers
3x0gR13N
August 22nd, 2009, 02:36 PM
-{ Quote: "Yes, this is a PDM prompt about "hidden drivers install".
So your goal is now to modify the Virtual CD installer for a hidden driver installation or to modify KIS to show appropriate prompts for not so hidden driver installations. :)
Cheers" }-
Sorry, but... this has nothing to do with either PDM or VirtualCD. ::) That popup posted in my previous post is a true HIPS (Application Filtering/Control) popup coming as a result of some malware actions (loading a driver).
This is how a PDM driver load popup looks like...
211488
...notice the differences in the popup structure/options/captions? ::) And no, the popups above haven't been tampered with, or any of the HIPS settings changed.
subset
August 22nd, 2009, 08:56 PM
-{ Quote: "Sorry, but... this has nothing to do with either PDM or VirtualCD." }-
Ok, you may be right related 'not a PDM prompt'. :dry:
However, KIS is really a cunning fellow and a master in confusing ambiguity when it comes to prompts.
And as said before, there are no matching prompts for the Virtual CD drivers because KIS simply lacks of the needed features.
Cheers
Julian
August 23rd, 2009, 06:16 AM
Why should a behavior blocker like PDM interfere when a signed driver is loaded via an unsuspicious (?) way?
vBulletin® Copyright ©2000-2012, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2012, Wilders Security Forums