If you are cautious / paranoid about open ports in Windows, you may have noticed port 445 open.
To close it, log in as an administrator, and do the following:
1. In the run box, type "services.msc" and run the Services console
2. Scroll down to find the service "Server"
3. Right-click "Server" and select Properties
4. Stop the service, and then click the drag-down box in the center, and select Disable.
5. Restart the system.
Keep in mind that any services that depend on the Server service (e.g. Homegroups, print sharing) will fail. Consider creating a System Restore point prior to making the change.
Showing posts with label PC Security. Show all posts
Showing posts with label PC Security. Show all posts
Monday, October 3, 2011
How to Close Port 445 in Windows 7 / Vista
Labels:
PC Security,
Windows 7 Tips
Monday, July 4, 2011
How to Detect and Remove TDL4 / TDL3 / TDSS / Alureon Rootkits
Experts are continuing to say scary things about TDL4 and its botnet, throwing around terms like "virtually indestructible". Whether this is true or not, clearly TDL4 is a highly sophisticated piece of crimeware that has top researchers very concerned.
If you think you may be infected, Kaspersky Labs has released a free tool for Windows users (all versions, 32 and 64-bit) called TDSSKiller which will detect and remove TDL4 rootkits / bootkits. It can be downloaded here.
TDSSKiller also detects other TDSS-family rootkits such as TDL2 / TDL3, and unknown rootkits by analyzing for:
If you have no luck with TDSSKiller, you may wish to try Norman TDSS Cleaner, Avast's aswMBR Tool, or HitMan Pro, which also claim to detect and remove TDL3, TDL4 and its variants.
If you think you may be infected, Kaspersky Labs has released a free tool for Windows users (all versions, 32 and 64-bit) called TDSSKiller which will detect and remove TDL4 rootkits / bootkits. It can be downloaded here.
TDSSKiller also detects other TDSS-family rootkits such as TDL2 / TDL3, and unknown rootkits by analyzing for:
- Hidden or Blocked services
- Hidden or Blocked files
- Forged files
- Rootkit.Win32.Backboot.gen (generic / unknown MBR infection)
If you have no luck with TDSSKiller, you may wish to try Norman TDSS Cleaner, Avast's aswMBR Tool, or HitMan Pro, which also claim to detect and remove TDL3, TDL4 and its variants.
Labels:
PC Security
Thursday, June 23, 2011
How to Create Custom / Separate Windows 7 Firewall Policies for Individual Users
How to Create Windows 7 Firewall Policies for Different Users:
For various reasons, you may wish to have an account with strict firewall policies (such as those detailed in this post), and another account with more relaxed policies.
In order to do this, both accounts must be Administrators.This may also work with Vista Firewall, unfortunately I don't currently have a Vista box to test it on. This will not work on Windows Vista.
1. Before doing anything, back up your current firewall policy. Run Windows Firewall with Advanced Security (type firewall in Run box).
2. In the right pane, click Export Policy. Save to c:\, as firewallstd.wfw.
3. Create the policies you wish to implement, and export as c:\firewallstrict.wfw.
4. Create this batch file, and save as c:\firewallstd.bat:
------------------------
netsh advfirewall import c:\firewallstd.wfw
pause
------------------------
5. Create this batch file, as save as c:\firewallstrict.bat:
------------------------
netsh advfirewall import c:\firewallstrict.wfw
pause
------------------------
6. Open Task Scheduler (type task in Run box).
7. Choose Create a Basic Task.
8. Name this rule as you see fit.
9. For task trigger, select When I Log on.
10. Choose Start a Program.
11. Choose the .BAT file you created earlier. The finishing dialog will appear. Before clicking Finish, tick "Open the Properties dialog for this task when I click Finish".
12. In the resulting window, select Run with Highest Privileges.
Once this is complete, log on to the other account and repeat steps 6 through 12, with the policies you desire for that account. You can remove the "pause" from the batch file if you prefer, but it is helpful to confirm that the policy has properly loaded upon logging in.
For various reasons, you may wish to have an account with strict firewall policies (such as those detailed in this post), and another account with more relaxed policies.
In order to do this, both accounts must be Administrators.
1. Before doing anything, back up your current firewall policy. Run Windows Firewall with Advanced Security (type firewall in Run box).
2. In the right pane, click Export Policy. Save to c:\, as firewallstd.wfw.
3. Create the policies you wish to implement, and export as c:\firewallstrict.wfw.
4. Create this batch file, and save as c:\firewallstd.bat:
------------------------
netsh advfirewall import c:\firewallstd.wfw
pause
------------------------
5. Create this batch file, as save as c:\firewallstrict.bat:
------------------------
netsh advfirewall import c:\firewallstrict.wfw
pause
------------------------
6. Open Task Scheduler (type task in Run box).
7. Choose Create a Basic Task.
8. Name this rule as you see fit.
9. For task trigger, select When I Log on.
10. Choose Start a Program.
11. Choose the .BAT file you created earlier. The finishing dialog will appear. Before clicking Finish, tick "Open the Properties dialog for this task when I click Finish".
12. In the resulting window, select Run with Highest Privileges.
Once this is complete, log on to the other account and repeat steps 6 through 12, with the policies you desire for that account. You can remove the "pause" from the batch file if you prefer, but it is helpful to confirm that the policy has properly loaded upon logging in.
Labels:
PC Security,
Windows 7 Tips
Monday, May 16, 2011
How To Block All Internet Traffic / Connections If Not Connected to a VPN
This post will outline a method using the Windows 7 Firewall to block all Internet traffic unless you are connected to your VPN.
This post assumes you have already followed the steps in the earlier post, How to only use the VPN Connection and Block ISP.
If you implement these rules, your system will have no Internet access unless you are connected to your VPN. That is to say, your system will be connected to the Internet, but no traffic can get in or out unless specifically permitted by a separate firewall rule. If a rule allowing an application exists, that application's traffic will still be able to pass through the firewall.
I have used these rules on my system without ill effect (Windows 7 Home Premium 64-bit). Depending on what other applications you use, you will likely have to create additional rules. If you break your system, don't blame me. Always back up before messing with system settings, and take notes as you go.
It is possible this method could still potentially leak data by way of the system process svchost.exe. If you attempt to block svchost.exe, your PC will not be able to communicate with your router/modem, and you really will have blocked all network functionality - i.e. nothing will work.
That being said, I have monitored VPN disconnects using TCPView and spotted no leaks - just all processes (including system processes) engaged in Internet traffic instantly changing from ESTABLISHED to TIME_WAIT, and shortly thereafter vanishing.
Steps:
1. Open Windows Firewall with Advanced Security (in this guide, start at step #4)
2. Select Inbound Rules. The New Inbound Rule Wizard will appear.
3. Select Custom Rule (see below).
4. Select All Programs.
5. Select Any IP Address, for both Local and Remote.
6. Select Block The Connection (see below).
7. Select Domain and Private, leaving Private and Public unticked (see below)
8. Name your rule and click Finish. Repeat steps 1 through 8 for Outbound Rules.
9. In the Windows Firewall with Advanced Security window, select Windows Firewall Properties (see below).
10. In the resulting window, choose to block both inbound and outbound traffic for the Domain and Private profiles (see below). You may also want to block outbound traffic on the Public profile as well, but you will need to create specific allow rules for every application that needs Internet access.
You should test your configuration at this point to ensure it is working. Connect to your VPN, start up some downloads, and disconnect. All traffic should die immediately.
This post assumes you have already followed the steps in the earlier post, How to only use the VPN Connection and Block ISP.
If you implement these rules, your system will have no Internet access unless you are connected to your VPN. That is to say, your system will be connected to the Internet, but no traffic can get in or out unless specifically permitted by a separate firewall rule. If a rule allowing an application exists, that application's traffic will still be able to pass through the firewall.
I have used these rules on my system without ill effect (Windows 7 Home Premium 64-bit). Depending on what other applications you use, you will likely have to create additional rules. If you break your system, don't blame me. Always back up before messing with system settings, and take notes as you go.
It is possible this method could still potentially leak data by way of the system process svchost.exe. If you attempt to block svchost.exe, your PC will not be able to communicate with your router/modem, and you really will have blocked all network functionality - i.e. nothing will work.
That being said, I have monitored VPN disconnects using TCPView and spotted no leaks - just all processes (including system processes) engaged in Internet traffic instantly changing from ESTABLISHED to TIME_WAIT, and shortly thereafter vanishing.
Steps:
1. Open Windows Firewall with Advanced Security (in this guide, start at step #4)
2. Select Inbound Rules. The New Inbound Rule Wizard will appear.
3. Select Custom Rule (see below).
4. Select All Programs.
5. Select Any IP Address, for both Local and Remote.
6. Select Block The Connection (see below).
8. Name your rule and click Finish. Repeat steps 1 through 8 for Outbound Rules.
9. In the Windows Firewall with Advanced Security window, select Windows Firewall Properties (see below).
10. In the resulting window, choose to block both inbound and outbound traffic for the Domain and Private profiles (see below). You may also want to block outbound traffic on the Public profile as well, but you will need to create specific allow rules for every application that needs Internet access.
You should test your configuration at this point to ensure it is working. Connect to your VPN, start up some downloads, and disconnect. All traffic should die immediately.
Labels:
PC Security,
VPN,
Windows 7 Tips
Monday, May 2, 2011
How to Disable IPv6 and Teredo in Windows 7
Steps to Disable IPv6 stack and Teredo Tunnelling Protocol in Windows 7
There are privacy issues abounds related to the Windows 7 implementation of IPv6. I won't get into them here, I'm assuming if you're reading this page, you are aware of these issues and wish to disable it.
If you need a desk reference for tweaking Windows 7, consider Windows 7 Tweaks: A Comprehensive Guide
. It's a lot better than the O'Reilly Windows 7 book
, and it's cheaper too.
(NOTE: You must be logged in as a Administrator to make these changes.)
To Disable IPv6 stack:
1. Open the Registry Editor. (Start -> type "regedit" in search box)
2. Find the following key:
4. Enter the following in the resulting window:
Some web pages say you should enter a "0" here, but that actually will enable IPv6.
To Disable Teredo Tunneling Protocol:
1. Click Start -> Control Panel
2. Click System and Security
3. Click Device Manager (the UAC prompt will appear, click OK)
4. In the Device Manager Windows, click View -> Show Hidden Devices
5. Find the Teredo Tunneling Pseudo-Interface in Network Adapters
6. Right-click Teredo Tunneling Pseudo-Interface, and select Disable.
There are privacy issues abounds related to the Windows 7 implementation of IPv6. I won't get into them here, I'm assuming if you're reading this page, you are aware of these issues and wish to disable it.
If you need a desk reference for tweaking Windows 7, consider Windows 7 Tweaks: A Comprehensive Guide
(NOTE: You must be logged in as a Administrator to make these changes.)
To Disable IPv6 stack:
1. Open the Registry Editor. (Start -> type "regedit" in search box)
2. Find the following key:
- HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip6\Parameters\
4. Enter the following in the resulting window:
- DisabledComponents
- 0xffffffff
Some web pages say you should enter a "0" here, but that actually will enable IPv6.
To Disable Teredo Tunneling Protocol:
1. Click Start -> Control Panel
2. Click System and Security
3. Click Device Manager (the UAC prompt will appear, click OK)
4. In the Device Manager Windows, click View -> Show Hidden Devices
5. Find the Teredo Tunneling Pseudo-Interface in Network Adapters
6. Right-click Teredo Tunneling Pseudo-Interface, and select Disable.
Labels:
PC Security,
Windows 7 Tips
Subscribe to:
Posts (Atom)