PDA

View Full Version : Why not just AppGuard?


chris1341
October 22nd, 2011, 03:26 PM
Evening All,

I'm getting more and more keen on AppGuard in 'lock-down' mode.

I guess my view is that it prevents guarded apps writing to anywhere that a file can execute (system space) and prevents execution from where they can write to (user space). This to me is pretty bullet-proof so I've been using it on its own with Windows firewall and some OD scanners.

I appreciate my risk is that I have to install something sometime but I'm happy to use OD scanners, lite-virtualisation, VM's and VT/Jotti etc before lowering protection to install.

I'd like some views on what, if any, risk areas AppGuard does not cover and get some suggestions from AppGuard users as to what they pair with this great little programme, preferably in lock-down mode on Win 7 64 bit.

Sandboxie does not work well in 'lock-down' on 64 bit for me or would have been the default choice.

Thanks in advance.

pegr
October 22nd, 2011, 03:54 PM
-{ Quote: "I'd like some views on what, if any, risk areas AppGuard does not cover and get some suggestions from AppGuard users as to what they pair with this great little programme, preferably in lock-down mode on Win 7 64 bit." }-AppGuard pairs very well with a lightweight virtualization application such as Returnil or Shadow Defender. The combination of system-wide policy restriction and system-wide virtualization is about as close to bullet-proof as it's possible to get IMO. Sandboxie is excellent but doesn't run well on my system for some reason.

I use a combination of AppGuard and Shadow Defender with no real-time AV. I also use the Comodo Firewall but that's because I happen to like it; I would feel just as secure using the Windows firewall. Although I'm currently on 32-bit Windows XP, I see no reason to change my setup when I get a 64-bit machine next year.


EDIT: As you also asked about the risk areas of using AppGuard alone, I thought I'd better expand on this a little.

For me, the main risk would be if a banking trojan got onto the system. Although unlikely, the consequences could be severe if my bank credentials or credit card details got stolen while banking or shopping online. I am less concerned about the machine itself getting infected because, in the unlikely event that it did, I can always restore the system from a clean Acronis image.

The main advantage for me of using a disk virtualization application is that a reboot prior to banking or shopping eliminates the small risk that something nasty might have got past AppGuard and onto the virtual system.

chris1341
October 22nd, 2011, 05:34 PM
Thanks. Good points. How is the banking trojan executing with AppGuard (other than me erroneously allowing it)?

pintas
October 22nd, 2011, 07:35 PM
Why not just Comodo's D+? :)
You can do practically the same with more stability, and it's free.
I could never recommend AppGuard, but maybe that's just me.

jmonge
October 22nd, 2011, 07:36 PM
free is better;)

Kernelwars
October 22nd, 2011, 10:43 PM
-{ Quote: "free is better;)" }-
couldn't agree more :thumb:

pegr
October 23rd, 2011, 03:01 AM
-{ Quote: "Thanks. Good points. How is the banking trojan executing with AppGuard (other than me erroneously allowing it)?" }-It shouldn't but I prefer to have that little bit of extra security just in case AppGuard ever gets bypassed. Because I do a lot of banking and shopping online, I prefer not to rely on a single approach to security, however good, as the consequence of getting compromised could be severe even if the risk is low.

One of the things that makes Sandboxie so good is the combination of virtualization and policy restriction within a single application. AppGuard combined with a lightweight virtualization program achieves a similar thing to Sandboxie on a system-wide basis.

pegr
October 23rd, 2011, 04:10 AM
-{ Quote: "Why not just Comodo's D+? :)
You can do practically the same with more stability, and it's free." }-Actually, they complement each other quite well as the feature sets are different. Just to give one example: A feature that AppGuard has, which is missing from Defense+, is the ability to lock down read access to private and confidential data.

I run Comodo Firewall with Defense+ alongside AppGuard, and they're both stable on my system. Both run very light with no conflicts, slowdowns, or other performance issues.

tomazyk
October 23rd, 2011, 05:47 AM
-{ Quote: "free is better;)" }-

Not necessary. IMO Sandboxie Paid is better than Sandboxie Free :)


Back on topic - I agree with OP and also love the lock-down setup. I use combination of MD and SBIE to achieve similar protection. I didn't try Appguard yet but will take it to the test on VM to see if it could be my cup of tea.

I also agree with pegr that adding light virtualisation would make your setup almost impenetrable.

chris1341
October 23rd, 2011, 05:56 AM
-{ Quote: "Why not just Comodo's D+? :)
You can do practically the same with more stability, and it's free.
I could never recommend AppGuard, but maybe that's just me." }-
I find it strange how many threads about seemingly unconnected subjects become Comodo threads, since you ask though I simply don't trust the Comodo whitelist or sandbox and without them D+ is a pop up nightmare. AppGuard is silent. I have experience of both the whitelist and sandbox allowing things I'd rather have blocked, so.......

I'm also using AppGuard on 64 bit so prefer the straightforward 'deny' rather than relying on HIPS that may be restricted in protection scope by Patchguard.

-{ Quote: "free is better;)" }-
Not always, there are some free products talked about here you would have to pay me to use :)

chris1341
October 23rd, 2011, 06:08 AM
-{ Quote: "
I also agree with pegr that adding light virtualisation would make your setup almost impenetrable." }-

Thanks Tomazyk. I was using Shadow Defender (and still do on-demand) but others use this machine to who would not necessarily know how to 'commit' what they want to save and I've had issues with the SD Exclusion folders not saving to the real system causing family members some real issues. Returnil even with the AV part disabled is too heavy for me and the others I tried only protect the system partition I'd like all partitions covered.

Ideally I'd use Sandboxie and I know others have managed it but on Win 7 64 bit it won't happen for me. I did run them both happily on Vista 32.

tomazyk
October 23rd, 2011, 07:01 AM
-{ Quote: "
Ideally I'd use Sandboxie and I know others have managed it but on Win 7 64 bit it won't happen for me. I did run them both happily on Vista 32." }-

I also couldn't get used to have system wide virtualisation, but Sandboxie is just perfect for my security needs.

I hope you'll find the solution to your problem and use it on 64 bit OS.

pegr
October 23rd, 2011, 01:25 PM
-{ Quote: "AppGuard is silent. I have experience of both the whitelist and sandbox allowing things I'd rather have blocked, so......." }-I suspect the reason for this is a difference in philosophy between the two applications.

The basic philosophy behind Comodo Firewall, as I understand it, is 'deny the unknown'. The philosophy behind AppGuard on the other hand could be expressed as 'restrict the unsafe'. There are many Internet-facing applications - browsers, mail clients, etc - that are known good programs but their allowed behaviour needs to be restricted because of their potential to be exploited by malware.

All that's needed with AppGuard is to add high risk programs to the guard list and AppGuard does the rest, silently blocking potentially dangerous behaviour according to a predefined policy chosen by the experts at Blue Ridge Networks. This approach works very well for applications that are already installed, and is potentially stronger than the approach used by Comodo Defense+ which tends be overly permissive towards known good applications on its whitelist.

AppGuard has two weaknesses though. Firstly, if an unguarded application in System-Space gets exploited by malware, AppGuard may not do much to prevent it. Secondly, the AppGuard protection level must be lowered to install new software.

Comodo Defense+ has the advantage that it never needs to be disabled or the protection level lowered; and is constantly monitoring untrusted applications for potentially dangerous behaviour which will be alerted. This is especially useful when installing software where the AppGuard protection level has been lowered.

It's because they are different, that they can be used effectively together. AppGuard provides security for all guarded applications and unguarded applications in User-Space, and Comodo Defense+ provides security for all applications, including unguarded applications in System-Space.

BTW I'm not recommending Comodo Firewall, just analysing and drawing out some of the differences between AppGuard and a classical HIPS like Defense+. Both programs provide excellent security, either separately or together.

chris1341
October 23rd, 2011, 04:06 PM
Thanks Pegr, a good summary of the differences of the 2 approaches.

Actually I had set Comodo to 'block' unknown in the execution control settings and (what I consider at least) an insidious little spyware PUP was allowed to be installed by my daughter without a peep from Comodo because it was signed ('scanned online and found safe'). With AppGaurd that would not have happened. My intervention would have been required and I would have seen that 30/44 vendors on VT flagging it as bad.

I also agree with your previous point that a real time back-up to AppGuard is required hence the OP.

Cheers

buckslayr
October 23rd, 2011, 05:05 PM
What about something like PrivateFirewall? Would that be a good choice to add to AppGuard and allow me to not use a realtime av?

1chaoticadult
October 23rd, 2011, 05:08 PM
-{ Quote: "What about something like PrivateFirewall? Would that be a good choice to add to AppGuard and allow me to not use a realtime av?" }-

I would say for 32-bit OS, privatefirewall would be a nice companion to AppGuard.

buckslayr
October 23rd, 2011, 05:10 PM
-{ Quote: "I would say for 32-bit OS, privatefirewall would be a nice companion to AppGuard." }-

Why not 64-bit? Does it have a weakness that's not present in 32-bit?

chris1341
October 23rd, 2011, 05:32 PM
-{ Quote: "Why not 64-bit? Does it have a weakness that's not present in 32-bit?" }-
PW have not been as successful at getting around the patchgaurd restrictions on 64 bit as others but in conjunction with AppGuard it might work well.

buckslayr
October 23rd, 2011, 05:36 PM
-{ Quote: "PW have not been as successful at getting around the patchgaurd restrictions on 64 bit as others but in conjunction with AppGuard it might work well." }-

Thanks. I'm giving it a try.

chris1341
October 23rd, 2011, 05:39 PM
-{ Quote: "Thanks. I'm giving it a try." }-
Excellent. Feedback on how you get on please.

Thanks

molhopicante
October 24th, 2011, 08:18 AM
May I use OA free instead of Comodo (with AppGuard)?

Thanks.

buckslayr
October 24th, 2011, 09:00 AM
-{ Quote: "Excellent. Feedback on how you get on please.

Thanks" }-
Running good so far. Haven't noticed any conflicts yet. Will be installing on my daughters 64-bit laptop tonight. Will see how privatefirewall fares.

trjam
October 24th, 2011, 09:13 AM
buck, you talked me into it. The reality is this is all you need.

buckslayr
October 24th, 2011, 09:18 AM
-{ Quote: "buck, you talked me into it. The reality is this is all you need." }-

Good choice. It really is awesome.

jmonge
October 24th, 2011, 10:14 AM
agree:thumb:

chris1341
October 24th, 2011, 01:36 PM
-{ Quote: "Running good so far. Haven't noticed any conflicts yet. Will be installing on my daughters 64-bit laptop tonight. Will see how privatefirewall fares." }-
Thanks, I'm not sure both are needed but will give it a go too. Afterall both are ridiculously light and as mentioned earlier PFW (or other fw/HIPS like Comodo for Pegr) will give another layer that looks at system space and network traffic too for fear AppGuard misses something. Nobody has mentioned how that might happen yet though I note :) .

pegr
October 24th, 2011, 03:27 PM
-{ Quote: "for fear AppGuard misses something. Nobody has mentioned how that might happen yet though I note" }-Apart from software installs, the main way I could see this happening would be if an unguarded application in System-Space happened to load a data file that contained malicious executable code.

AppGuard protection of System-Space depends on the list of guarded applications. Apart from a few applications that are automatically added to the list when AppGuard is first installed, System-Space applications are not guarded by default. It is up to the user to identify all relevant applications that need guarding and ensure they are added to the list. Failure to do this could leave the system vulnerable.

chris1341
October 24th, 2011, 03:58 PM
-{ Quote: "Apart from software installs, the main way I could see this happening would be if an unguarded application in System-Space happened to load a data file that contained malicious executable code.

AppGuard protection of System-Space depends on the list of guarded applications. Apart from a few applications that are automatically added to the list when AppGuard is first installed, System-Space applications are not guarded by default. It is up to the user to identify all relevant applications that need guarding and ensure they are added to the list. Failure to do this could leave the system vulnerable." }-
The same applies for Sandboxie etc. It is up to the user to protect the right apps I suppose. With AppGuard though launches from user space are prevented so exploitation of an unguarded apps is less likely I would think unless you routinely give unsafe apps admin privileges. Even then the exploit or data file you mention is likely to run in user space, no? It is the same with HIPS though surely where user error can lead to problems, AppGuard has no user intervention really so less oportunity for error. Browsers, e-mail and USB in my experience are guarded by default and are the big risk areas I would think (?).

Alternative views welcome.

pegr
October 24th, 2011, 08:41 PM
-{ Quote: "With AppGuard though launches from user space are prevented so exploitation of an unguarded apps is less likely I would think unless you routinely give unsafe apps admin privileges. Even then the exploit or data file you mention is likely to run in user space, no?" }-Unguarded applications in System-Space can write executables to System-Space, which can in turn be launched so it would all depend on what the exploit had been designed to do. I'm not saying it's likely to happen - only suggesting a possible way that AppGuard could be breached in response to your question as to how it might happen that AppGuard misses something.
-{ Quote: "AppGuard has no user intervention really so less oportunity for error." }-It is true that, once set up, AppGuard needs no ongoing user intervention to be effective. Silent blocking with no user intervention is definitely one of AppGuard's strong points. AppGuard does require some initial configuration and customization by the user though in order for it work properly and to get the best out of it.
-{ Quote: "Browsers, e-mail and USB in my experience are guarded by default and are the big risk areas I would think (?)." }-Agreed. These are the main risk areas but any application that can load data files which may contain malicious executable code - document viewers, media players, etc - should also be guarded, and this will not always happen by default.

jmonge
October 24th, 2011, 09:02 PM
very true

chris1341
October 25th, 2011, 03:40 AM
-{ Quote: "Unguarded applications in System-Space can write executables to System-Space, which can in turn be launched so it would all depend on what the exploit had been designed to do. I'm not saying it's likely to happen - only suggesting a possible way that AppGuard could be breached in response to your question as to how it might happen that AppGuard misses something.
" }-
Agreed but I had thought that as I'm on Win 7, apps - even from system space, run with medium rights unless you approve elevation via UAC so generally you need to allow access to write to system space (malicious silent elevation aside). I guess I'm not convinced the initial trigger for safe unguarded apps to act maliciously would not come from user space in the first place.

Having said that I had asked for potential gaps which you have highlighted very eloquently so I'm very grateful for that and I am looking at some (light) way to plug that potential (if not likely) threat.

Thanks again

pegr
October 25th, 2011, 08:37 AM
-{ Quote: "Agreed but I had thought that as I'm on Win 7, apps - even from system space, run with medium rights unless you approve elevation via UAC so generally you need to allow access to write to system space (malicious silent elevation aside). I guess I'm not convinced the initial trigger for safe unguarded apps to act maliciously would not come from user space in the first place." }-I think you're right regarding Windows 7 but I'm still on Windows XP, which isn't as secure. Some of the points I raised were more of theoretical interest than of practical concern though. The security model behind AppGuard seems very well thought out so I would be surprised if anything nasty were able to bypass its defenses in practice.

Rmus
October 25th, 2011, 01:49 PM
-{ Quote: "Unguarded applications in System-Space can write executables to System-Space, which can in turn be launched so it would all depend on what the exploit had been designed to do. I'm not saying it's likely to happen - only suggesting a possible way that AppGuard could be breached in response to your question as to how it might happen that AppGuard misses something." }-Is Explore.exe a guarded application?

What about msiexec.exe?

Thanks,

-rich

chris1341
October 25th, 2011, 02:19 PM
-{ Quote: "Is Explore.exe a guarded application?

What about msiexec.exe?

Thanks,

-rich" }-
No. By default only Windows OS items guarded are:

Microsoft Register Server
Windows Command Processor
Windows host process (Rundll32)

Rmus
October 25th, 2011, 09:47 PM
-{ Quote: "No. By default only Windows OS items guarded are:

Microsoft Register Server
Windows Command Processor
Windows host process (Rundll32)" }-

I ask because .msi files (Microsoft Installer) files can be malicious, and if system executables Explorer.exe and/or msiexec.exe are not guarded, I wonder how AppGuard would deal with these files if malicious.

Some references:

1) clamscan - scan files and directories for viruses
clamd.conf(5) - Linux man page:
clamd.conf - Configuration file for Clam AntiVirus Daemon
http://linux.die.net/man/5/clamd.conf

-{ Quote: "ScanOLE2 BOOL

This option enables scanning of OLE2 files, such as

Microsoft Office documents and
.msi files.

Default: yes" }-

2) From a Microsoft technet blog earlier this year:

http://blogs.technet.com/b/fdcc/archive/2011/01/25/alwaysinstallelevated-is-equivalent-to-granting-administrative-rights.aspx
-{ Quote: "Anybody can create an MSI - it doesn't take deep knowledge, expensive developer tools or admin rights." }-

One concern I had about AppGuard when released is (if I understand correctly) that it seems to be the responsibility of the user to configure what applications to guard, which could be a real burden for most users:

-{ Quote: "Apart from a few applications that are automatically added to the list when AppGuard is first installed, System-Space applications are not guarded by default. It is up to the user to identify all relevant applications that need guarding and ensure they are added to the list. Failure to do this could leave the system vulnerable." }-

Whereas an approach (such as Anti-Executable v. 2) that watches for (guards) all unauthorized file types by default, doesn't care what a program does, as long as the file it attempts to execute is authorized (white listed):

229947

My questions are,

1) If this .msi file attemped to launch from user space, even though by a system executable, would AppGuard block?

2) If not, you can argue that you can set up the OS to prevent malware writing to systems folders, but isn't this protection in addition to AppGuard?


You didn't list the Windows script editor as guarded by default. Does this mean that a VBS file could be used to launch an executable?
In the past this has been done by trickery via email, and via web exploits.

To demonstrate, I use a test VBS file and an executable with spoofed file extension:

229948

Now, you can argue that it's easy to disable the Windows Script Host,

229949

but then that would protection added to that of AppGuard, which pertains to this thread topic.

Two questions,

1) Does AppGuard have something else to block malicious VBS scripts?

2) If the executable attempted to run from user space even though by a system executable (windows script host - WSH) would AppGuard handle the situation?

Thanks,

-rich

pegr
October 26th, 2011, 01:20 AM
-{ Quote: "I ask because .msi files (Microsoft Installer) files can be malicious, and if system executables Explorer.exe and/or msiexec.exe are not guarded, I wonder how AppGuard would deal with these files if malicious." }-I'm not sure about Explorer.exe but my experience is that access to msiexec.exe gets blocked by AppGuard unless the protection level is set to Install. Some AppGuard users (including me) reported that Windows Automatic Updates were failing because access to the Windows Installer was automatically blocked by AppGuard, even though msiexec.exe is not in the list of guarded applications. This appears to be one of AppGuard's automatic internal protections.

The solution was to set the AppGuard protection level to Install then manually reapply the updates. I think part of the point of the Trusted Publishers list is to enable signed executables from Trusted Publishers to install updates without first having to set the protection level to Install.

-{ Quote: "One concern I had about AppGuard when released is (if I understand correctly) that it seems to be the responsibility of the user to configure what applications to guard, which could be a real burden for most users:

Whereas an approach (such as Anti-Executable v. 2) that watches for (guards) all unauthorized file types by default, doesn't care what a program does, as long as the file it attempts to execute is authorized (white listed):

My questions are,

1) If this .msi file attemped to launch from user space, even though by a system executable, would AppGuard block?

2) If not, you can argue that you can set up the OS to prevent malware writing to systems folders, but isn't this protection in addition to AppGuard?" }-AppGuard does requires some initial configuration to set up the list of applications located in System-Space that should be guarded. That said, AppGuard protects against all User-Space exploits automatically by default, and this is not dependent on the guarded applications list. Any attempt to exploit an unguarded application located in System-Space would fail if the exploit also involved a launch from User-Space as part of the attack.

Executables in User-Space will either be denied from launching, or launched guarded (not allowed to write to System-Space), depending on a combination of the AppGuard protection level (Medium, High, or Locked Down) and whether or not the executable is signed by a trusted publisher. The only exception where an executable would be allowed to launch unguarded (allowed to write to System-Space) from User-Space would be if it were a signed executable by a trusted publisher and the protection level were set to Medium.

I agree that an anti-executable would also be beneficial, as it will monitor all executables by default, closing a potential gap in AppGuard. The weakness of an AE though, as you say, is that once execution has been allowed, the application can then do what it likes. If on Windows 7, do you think UAC in conjunction with AppGuard would be enough, or is there still a case for a separate AE program to run alongside AppGuard?

Where AppGuard really scores is in applying further restrictions to programs that should be run, but which also need to be restricted. In this respect, it is similar to DefenseWall and GeSWall, but also has the advantage of being able to run on 64-bit systems. I tend to think of AppGuard as being a bit like LUA, but stronger than LUA with additional protections not found in LUA.

-{ Quote: "You didn't list the Windows script editor as guarded by default. Does this mean that a VBS file could be used to launch an executable?
In the past this has been done by trickery via email, and via web exploits.

Two questions,

1) Does AppGuard have something else to block malicious VBS scripts?

2) If the executable attempted to run from user space even though by a system executable (windows script host - WSH) would AppGuard handle the situation?" }-Except when the protection level is set to Install or Off, AppGuard automatically denies the execution of scripts.

Rmus
October 26th, 2011, 02:04 PM
Thanks for your very detailed and informative post. I see that AppGuard has become very robust. Well, it always was, as I found out when intially testing it. There were some weaknesses (DLL protection) which has been added, and the configuration now seems to permit a very secure lockdown.

As to whether it can be used without other protection really depends on each individual user's peace of mind, it seems to me. Protection can include both user policies and procedures, and products.

For example, I've always contended that with a properly configured firewall and browser, most remote code execution exploits don't get out the gate, so to speak. So, most of us already have added protection. (I consider the firewall and browser to be security products)

That leaves the social engineering attack vector, which is defended mostly by user policies and procedures, and if a user is tricked into permitting installation of some malware, of course at that moment the security levels are reduced and the user becomes infected. This is no reflection on the product, for it would happen no matter which security product was in place.

-{ Quote: " If on Windows 7, do you think UAC in conjunction with AppGuard would be enough, or is there still a case for a separate AE program to run alongside AppGuard?" }-I don't have Windows 7 and have never tested UAC, so I can not answer this question.

Without specific testing, I don't find it wise to speculate, nor go on some one else's opinion.

Also, others' tests involving a specific product, say AppGuard, are always suspect in my mind, since I can't know from a distance how the user has configured the product.

A good example is the recent tests showing how Windows XP machines were infected just sitting there, being connected to the internet with no protection except the Windows Firewall. Say what?

Well, in digging around, MrBrian, who posted the link to the tests in another thread, discovered that the Windows Firewall was configured with Services (such as Messenger) with open ports. How about that!

So, if someone tests UAC with Windows 7 + AppGuard and reports an exploit got through, I would want to know specifically how each of those was configured. What levels was UAC set to? Was an ungarded application involved, for example, so that an exploit ran and elevated privileges or used some other trickery to bypass UAC?

In such a case, it wouldn't be fair to say that AppGuard + UAC are weak. Too much room for user error.

So, if you are able to test some exploits with that set up, you will determine for yourself how robust that set up is.

regards,

-rich

chris1341
October 26th, 2011, 06:23 PM
Thanks to those who contributed to the thread particularly Pegr and Rmus. It is the level of scrutiny I was hoping to get. Much appreciated.

For completeness I just want to say in answer to the question 'Why not just AppGuard?' for me there is no compelling reason but I will add a Firewall that is easier to configure (for me at least) than the Win 7 built in one, some form of secure DNS, keep UAC on max, continue to use OD/on-line scanners, light virtualisation and VM's if in any doubt about what I need to reduce protection to install.

For info for others who want more I've found most FW/Hips combo's (OA, Outpost, Comodo & PFW) work Ok with AppGuard on Win 7 x 64 at lock-down as does WSA if you add the exe's to the memory guard list. I had problems with any traditional AV I tried and most disappointingly for me SBIE.

Cheers