Part II -
Okay this is entirely up to you if you wish to use this and if you do I highly recommend you save your current known good configuration. This may not work for you. I would recommend only using this if you plan to not use your system for sharing anything or accessing anything on a home LAN or other LAN. I have set my configuration this way because I want to be as secure as possible at home and if I trave and use a public connection etc. If you do this it is at your own risk and choice! This is only my recommendation of how to secure a system and is what works well for me.
1. Windows' Services:
If you consider a fresh install of Windows XP Professional with Blink installed only, these are the settings I have for my Windows Services:
Items Set to Automatic -
Automatic Updates
Crytographic Services
DCOM Server Process Launcher
DHCP Client
Event Log
IPSEC Services
Plug and Play
Remote Procedure Call (RPC)
Secondary Logon
Security Accounts Manager
Themes
Windows Audio
Windows Firewall/Internet Connection Sharing
Windows Management Instrumentation
Windows Time
Items Set to Manual -
.NET Runtime Optimization Service v2.0.50727_X86
ASP.NET State Service
Background Intelligent Transfer Service
Logical Disk Manager
Logical Disk Manager Administrative Service
Network Connections
Protected Storage
Remote Procedure Call (RPC) Locator
Removable Storage
Shell Hardware Detection
Uniterruptable Power Supply
Windows Driver Foundation - user mode
Windows Installer
Everything else has been disabled. This includes the "Security Center" because I got tired of it barking at me about firewalls, A/V, and Windows update being turned off. I have my Windows update turned off because I want to manually check for updates myself and I do not want it going out whenever it wants to on its own to check for updates. I have also disabled Windows' Wifi service because I use something else in its place.
2. NETBIOS -
If your not sharing anything or trying to access shared resources on a LAN or remotely you should disable all the junk dealing with NETBIOS and Microsoft's Sharing services. To do this do the folllowing:
1 . Go to My Network Places
2. View Network Connections
3. On each Local Area Connection icon you have (anything for Wifi too or a VPN adapter if you have one) complete the following:
A. Right click on the icon
B. Select "Properties"
C. In the This Connection uses the following items field in the middle un-install the "File and Printer Sharing for Microsoft Networks" and the "Client for Microsoft Networks". You may be prompted to restart your system after doing this, wait until you are done with all of these steps and then do it.
D. Next, Click on the Internet Protocol (TCP/IP) in the middle area field, select "Properties" on it.
E. Select the "Advanced" button in the lower right and then on the new screen that appears select the "WINS" tab at the top.
F. Under the WINS tab at the bottom, select Disable NETBIOS over TCP/IP. The "Enable LMHOSTS lookup" box above it can also be unchecked if it is checked.
NOTE 1: You should do this or atleast check to make sure this is done for each connection icon (except for step C above. This only needs to be done on your main Local Area Connection and should duplicate to your other ones by default if you remove something).
NOTE 2: Since you have disable this stuff you may not see a little icon in the lower right of your screen that says it is trying to Obtain an IP Address when in fact your system has already been assigned one. Disabling the stuff you have makes your system kind of "late to the game" of making this icon disappear. Moreless it becomes something I just ignore, but it may be annoying to some. It is just something you have to deal with if you choose to do this.
3. Port 445 -
After you disable all this junk you may notice with your Retina Scans that port 445 is still open or being used shall I say. You can get rid of this too. To do so see this article online at the following website to describe how to properly disable it in your registry: http://www.petri.co.il/what's_port_445_in_w2k_xp_2003.htm
4. Bink's Firewall Settings -
Now on to the part you have been waiting for. The following is a description of what I recommend for both your Application Rules and System Wide Rules sections in Blink.
Application Rules - There are two main points of focus here; "Svchost.exe" and the "System Process"
If you have disabled the DNS Service in Windows' Services as I pointed out in this post: http://forums.eeye.com/forums/t/486.aspx , then you will only need three rules under this category in the Application Firewall. They are as follows (top down):
1. This is for Svchost.exe to assist with DHCP functions
Application - C:\WINDOWS\system32\svchost.exe
Initial Trust - N/A
Trust Application by - MD5
Action - Allow
Protocol - UDP
Direction - Any Direction
Local Address - At the top "Applies to all IP addresses of this computer
At the bottom "Rule Applies to all Local Ports of this computer".
Remote Address: - At the top "Specify remote IP address for this rule" should be selected. To the right of this click on the Add button and then selected the "Determine IP(s) at run-time" selection then from the drop down menu it has select "Default Gateway". Click OK to close this window. At the bottom "Specify Remote Ports" - 67, 68
2. This is for Svchost.exe to assist with Windows Time operations.
Application - C:\WINDOWS\system32\svchost.exe
Initial Trust - N/A
Trust Application by - MD5
Action - Allow
Protocol - UDP
Direction - Any Direction
Local Address - At the top "Applies to all IP addresses of this computer
At the bottom "Specify Local Ports" - 123
Remote Address: - At the top "Applies to all IP addresses of this computer
At the bottom "Specify Remote Ports" - 123
3 . This is for Svchost.exe to carry out other miscellaneous functions that it handles via HTTP and HTTPS.
Application - C:\WINDOWS\system32\svchost.exe
Initial Trust - N/A
Trust Application by - MD5
Action - Allow
Protocol - TCP
Direction - Traffic from this Computer
Local Address - At the top "Applies to all IP addresses of this computer"
At the bottom "Rule Applies to all ports of this computer"
Remote Address - At the top "Applies to all IP addresses of this computer"
At the bottom "Specify Remote Ports" - 80, 443
Now for the "System Process" It needs only the following:
1. Application - System Process is selected
Action - Deny
Protocol - TCP or UDP
Direction - Any Direction
Local Address - At the top "Applies to all IP addresses of this computer"
At the bottom "Specify Local Ports" - 445, 135-139
Remote Address - At the top "Applies to all IP addresses of this computer"
At the bottom "Specify Remote Ports" - 445, 135-139
This ties up anything for NETBIOS.
System Wide Rules - This section really only needs 5 Rules total. Anything else is dropped by default or you are queried for permission on a Application by Application basis.
1. This is for ALL ICMP
Action - Deny
Protocol - ICMP - Select the box that says "This rule will filter all ICMP packets"
Direction - Any Direction from this Computer
Local Address - At the top "Applies to all IP addresses of this computer"
Bottom is greyed out
Remote Address - At the top "Applies to all IP addresses of this computer"
Bottom is greyed out
2. This is for NETBIOS again
Action - Deny
Protocol - TCP or UDP
Direction - Any Direction from this Computer
Local Address - At the top "Applies to all IP addresses of this computer"
At the bottom "Specify Remote Ports" - 445, 135-139
Remote Address - At the top "Applies to all IP addresses of this computer"
At the bottom "Specify Remote Ports" - 445, 135-139
3. This is for eEye Recommended rule for the ICS Vulnerability that was given to me in Retina.
Action - Deny
Protocol - UDP
Direction - Traffic from other computers
Local Address - At the top "Applies to all IP addresses of this computer"
At the bottom "Specify Local Ports" - 53
Remote Address - At the top "Applies to all IP addresses of this computer"
At the bottom "Rule Applies to all remote ports"
4. This is to allow for DNS to function - NOTE: For this to really function properly and actually be used you must uncheck the "Allow DNS Traffic" in the "Advanced Options" section of the Firewall tab in Blink's Options. If you don't there is a chance Blink will just allow DNS queries regardless of the circumstance to possibly anywhere.
Action - Allow
Protocol - UDP
Direction - Any Direction
Local Address - At the top "Applies to all IP addresses of this computer"
At the bottom "Rule Applies to all ports of this computer"
Remote Address: - At the top "Specify remote IP address for this rule" should be selected. To the right of this click on the Add button and then selected the "Determine IP(s) at run-time" selection then from the drop down menu it has select "DNS Server". Click OK to close this window.
At the bottom "Specify Remote Ports" - 53
5 . This rule allows DHCP to function properly
Action - Allow
Protocol - UDP
Direction - Any Direction
Local Address - At the top "Applies to all IP addresses of this computer"
At the bottom "Applies to all ports of this computer."
Remote Address: - At the top "Specify remote IP address for this rule" should be selected. To the right of this click on the Add button and then selected the "Determine IP(s) at run-time" selection then from the drop down menu it has select "Default Gateway". Click OK to close this window.
At the bottom "Specify Remote Ports" - 67, 68
------------------------------------------------------------------------------------------------------------------------
This is the setup I have on my system that seems to lock it down pretty well. Like I said you can try this at your own risk, but for a computer you want to secure from everything else, this is a good way to do it. Some side-effects of this are:
1. Web pages may load a little slower now. This is because now, if a DNS query does not match the DNS rule exactly requesting the remote port of 53 of the DNS server and instead it just simply requests any port (like a DNS trojan would) it will be dropped. Once this happens, it will have to attempt its lookup again.
Second of all if you disabled the DNS service in Windows, which takes the duty away from Svchost.exe doing DNS querys, then your computer will also nolonger cache DNS requests that were made from prior lookups. This is one of the fuctions the DNS service does - store a small cache of known querys.
2. Your browser may take a few extra seconds to open initially
3. You will sometimes have that annoying connection icon in the lower right, as I pointed out before, that says it is attempting to retrieve or renew your IP address (which has already been done obviously).
4. From time to time as Applications start (for the first time) you may see them pop up a Blink alert wanting to make an outbound connection attempt to the DNS servers for the remote IP of 53. I have had this when I connect to my home via OpenVPN, because once it connects, it is now using my home ISP's DNS servers and not the DNS servers of the local connection router where I happen to be anymore (for example in a WiFi spot or something).
The next best thing that I would do, IF you have Windows XP Professional, is to create a Limited User Account for everyday use. This in itself eliminates a lot of the problems out there from installing themselves to begin with. By default when you use Windows XP you are running with Administrative privlages, this you do not want.
If anyone is using Windows XP Professional and is using a Limited User Account and wants to really lock down their Hard Drive permissions let me know. I can give some pointers on that too.
Hopefully some other folks will post their configurations in here too. :)
Another good post to take a look at that will assist with creating rulesets for diffferent environments (i.e. a Trusted or Not Trusted LAN) can be found here: http://forums.eeye.com/forums/p/1040/4503.aspx#4503
UPDATED LAST ON: 09JUL09