BugTraq
Bypassing Personal Firewalls Feb 21 2003 09:34PM
xenophi1e (oliver lavery sympatico ca) (3 replies)
Re: Bypassing Personal Firewalls Feb 28 2003 05:08AM
Darwin (darwin netmadeira com)
Re: Bypassing Personal Firewalls Feb 22 2003 02:14AM
Shaun Clowes (shaun securereality com au) (2 replies)
Re: Bypassing Personal Firewalls Feb 24 2003 08:18PM
Zow Terry Brugger (zow llnl gov)
Re: Bypassing Personal Firewalls Feb 23 2003 08:13PM
Johan Verrept (jove exelsys be) (1 replies)
Re: Bypassing Personal Firewalls Feb 24 2003 09:24PM
Shaun Clowes (shaun securereality com au)
RE: Bypassing Personal Firewalls Feb 21 2003 11:09PM
Drew Copley (dcopley eeye com) (1 replies)
RE: Bypassing Personal Firewalls Feb 21 2003 11:22PM
Oliver Lavery (oliver lavery sympatico ca) (1 replies)
>(Sidenote: a number of previous apps used to test PFWs or Application
Firewalls --
>http://www.pcflank.com/art21.htm )

Yes, these are great tests. Most PFWs block them all now.

>There are a number of ways to do this, you use the more popular method of
openprocess and
>writeprocess memory. However, there is a limit to the number of api calls
which implement this.
>Ultimately, this kind of code needs to be blocked, first, at the NT API
level... Such blocking
>should use the same method as blocking the network calls, ie, "Do you want
to allow this
>application to ..."

Yes. Before we go prompting users ever time someone calls
CreateFile, though, there are much simpler measures. One of them would make
OpenProcess require a priviledge of some sort (see below).

>Most commonly, this would be used with writeprocess memory.
>Createremotethread would need to be blocked in this manner.
Postremotethreadmessage.
>PostThreadMessage. Are some of the more dangerous calls, in this context.

You'll notice that all of these calls require a handle returned by
OpenProcess (hProcess in my code).

>After that, you are probably talking about having to do somesort of
signature analysis at the
>binary level.

MD5 of the binary memory image! This is probably feasible, but good
god it would resource intensive.

>OpenProcess does require seDebugPrivileges, I believe.

No, and this is very much the point. According to MS docs:
SeDebugPrivilege:
Determines which users can attach a debugger to any process. This privilege
provides powerful access to sensitive and critical operating system
components.

This only prevents users from using OpenProcess on system processes
(winlogon.exe etc.). There need to be tighter restrictions on the use of
OpenProcess.

Cheers,
~ol

[ reply ]
RE: Bypassing Personal Firewalls Feb 21 2003 11:31PM
Drew Copley (dcopley eeye com)


 

Privacy Statement
Copyright 2010, SecurityFocus