Free Computer Courses Training Tutorials Intelligentedu.com Home  ->  Learn About Computers, Software Development & Information Technology  ->  Table of Contents



Chapter 8:

Securing Microsoft Windows


 

Introduction to Securing Microsoft Windows

Almost every computer system runs Microsoft Windows.In fact, over 85% of the world's computers run windows.Everyone who runs Windows knows that at least once a week or so, Microsoft will send out computer updates.� Possibly you think you don't need them so much, since installing updates requires turning the computer off and then back on and it's such a bother.While many people have that line of thinking, it is nevertheless totally wrong.Windows will not run properly without the updates.Sometimes they are noticeable, such as when a co-worker didn't allow Microsoft to update her system and all of a sudden, Word documents won't print.Sometimes, the lack of updates erodes the ability of the computer, making it run more slowly and making it more susceptible to bugs and viruses.While it may seem like a nuisance, even if the computer is brand new or just recently re-installed, it is important to take these very simple steps to avoid problems.


Windows Updates & Service Packs

Besides installing the updates, which the computer will prompt you to do, it is also important to install what Microsoft refers to as Service Packs.Service Packs contain hundreds of fixes for bugs and updates for security systems.Because they are packaged together they are installed and begin working their magic in one fell swoop.The service packs are truly the first line of defense.You can check to see which security pack to install, if any, by clicking on the Start button, selecting Settings, then selecting Control Panel, then System and finally, select General.

The service packs and the updates are a good first step, but they are just that -- a first step.The computers, as well as the computer's users still need additional protection from powerful software like Spyware and Scumware.In order to protect your computer from prying eyes, more frequent downloads are necessary.Microsoft makes hotfixes available to Windows customers to provide this additional protection.One thing about hotfixes though is that they must be installed individually, unlike the service pack where the patches are bundled.Hotfixes are published soon after the problem the particular hotfix is addressing was discovered.Because they are released so often, it is important to keep up to date on the hotfixes that are being released.To that end, you might consider subscribing to Microsoft's Security Bulletin.You can do so at this MS web page.Or, you can also sign up to be placed on the CERT Advisory Mailing List, which will send you regular e-mail notifications about recently discovered vulnerabilities and fixes that should be put on the operating system.

Since there are a lot of hotfixes and they all need to be installed one by one, which can take up a lot of time, there are several tools now available that can help you to decide on which hotfixes your computer needs, so you can dispense with the arduous task of looking through all the hotfixes yourself and trying to figure out which one to use.  One of these new tools is the Microsoft Baseline Security Analyzer.It allows you to check your operating system (Windows NT4, 2000, or XP) for vulnerabilities, bad passwords and missing hotfixes.More about MSBA can be found at on this MS web page and at this one.  Once the software tells you what fixes you need, it is then possible to match install multiple hotfixes, saving a lot of time and a lot of headaches.For a good primer on how to use MSBA, go to this page at the University of California Berkeley. 

Besides installing security packs and hotfixes, there are several more common sense approaches to securing your computer.

  1. Keep your computer in a safe place.This might seem like a no-brainer, but it is important nonetheless.Keep your computer where only authorized people can access it.Children may delete something important by accident, or a coworker might be making a power play and stealing your ideas or deleting your work.If you must keep important files where many people can access your computer, make sure you back your work up onto a disk and place the files in an extra-secure location on the computer.

  2. Disable the guest account. Windows 2000 disables the guest account by default, but you should still double check frequently to see that the guest account is not enabled.Assign complex passwords to any guest account that you choose to enable and restrict access to it at all times.

  3. Limit the number of accounts. Make sure to get rid of old accounts, test accounts, etc.Basically, if an active team member does not use the account, it should not exist.

  4. Create good passwords. How many people use their child's name or their anniversary or other such non-random combination for their password?This is a grave mistake because the password is the ultimate in security, your first and best line of defense against those who would steal files or go snooping where they don't belong. Take care in creating your own password.

  5. Have the anti-virus software on constantly.By having the anti-virus software running constantly in the background, you can avoid downloading a virus and not knowing it.This can help because the software should catch the bug before it does any real damage.

  6. Secure back-up copies.This also sounds very simple, but when you make a copy of a file, to get sensitive material off of your computer, it is important to make sure only authorized people can get to the disk or the CD.

  7. Try Encryption. Encryption is a powerful tool.� Go to this Microsoft page for more on encryption and Windows.You may also want to review the Microsoft Knowledge Base for even more information on encrypted files.

If you already knew to do these things, then great, if you did not, then know you know.Security packs, hotfixes, encryption and common sense will only get you so far.Once again, I encourage you to review the list of useful websites at the beginning of this chapter.As you can see, there is more information at the beginning of this one chapter than can possibly be covered in one book.


Windows Security Overview

The latest versions of highly successful Microsoft Windows operating system, Windows XP and Windows Server 2003, are the successor to the Windows 95, 98 and ME Operating Systems offering a cleaner look, customization for multiple users, new audio and video capabilities, more integration with the Internet, and a steadier, less crash-prone structure. Although Windows XP Professional is built on the Windows 2000 kernel, there are significant differences between the operating systems - especially when it comes to security. Windows Server 2003 offers improved security and faster file and web server performance compared with Windows 2000. In Windows 2003, basic security is improved because most server features, including the IIS web server, are disabled when the operating system is installed. This reduces the impact of automated attacks such as the Nimda and Code Red worms.

The earlier version of Windows was Windows 2000. Originally named as Windows NT 5.0, this version was later renamed Windows 2000 due to marketing reasons. It is believed by many that Windows 2000 is a better and enhanced version of Windows 98, which is not true. Contrary to Windows 95 and 98, both of which have virtually no meaningful security mechanisms, Windows 2000 is an upgrade to Windows NT 4.0. Windows NT 4.0 was designed with a security model in mind; Windows 2000 modifies and extends that model. And Windows XP is built on the Windows 2000 code base and technology.

The newer version of Windows, Windows XP, is the most dependable version of Windows ever, with the best security and privacy features Windows has ever provided. Windows XP Home Edition comes with built-in (and now on as default) Internet Connection Firewall software that provides a resilient defense to security threats when the computer is connected to the Internet, especially always-on connections such as cable modems and DSL. The other version of Windows XP, Windows XP Professional includes all of the security capabilities of Windows XP Home Edition, plus other security management features. Below is a checklist of some security measures that are recommended while installing Windows XP.


Security Policies in Windows

Windows security underlies all the security considerations in applications that run on Windows. In Windows many security features have been implemented to aid in securing computers and the network with use of policies and tighter security protocols. Security is enforced on Windows systems through a number of different mechanisms.

Window 2000 security technologies span a much greater distance than the NT 4.0 platform and any previous versions of Windows. The Windows 2000 platform has introduced: single sign-on, integrated security, secure administration, better authentication methods, interoperability standards and very in depth auditing of your systems and access of those systems. With the advent of Active Directory Windows 2000, directory services can now use a domain policy that can be distributed over the whole organization. Using domain policies, Windows 2000 environment can be harden, both on the hardware side as well as the application/software side. These policies in effect can "harden" a computer to the point that it would be very difficult to be compromise via outside attack. Only a person with proper rights would have access to a system under such a restrictive policy.


Kerberos for User Authentication

Kerberos is an open standard protocol that had been introduced for authentication between Windows 2000 machines on a network. In a Windows 2000 domain the user should have an account to access the system. The account information entered by the user is checked against the database, which holds the information. The information is then verified using the Active directory and the Kerberos. The settings define whether the user can be granted certain privileges. They also tell whether a person belongs to a specified group that has rights to perform certain operations in the 2000 domain.

Winlogon and Graphical Identification and Authentication (GINA) are important elements in the logon process. These are the elements that handle the authentication from the user's perspective. GINA is called upon by using three keys CLTR ALT DELETE together. It is used to send information from the logon to the Local Security Authority. LSA validates the user. Winlogon manages the logon and logoff process of the users. It loads the user's profile. It also protects the machine screensaver and handles the remote performance monitor requests. GINA and Winlogon are used to authenticate the user. They are also to start the windows.

Kerberos ver5 used to authenticate the user by using standard shared secret key but in 2000, the authentication can be done by using public key certificates. This allows interactive logons to use Smart Cards. Kerberos supports four authentication systems. Those are Windows NT LAN Manager (NTLM), Distributed Password Authentication (DPA), Extensible Authentication Protocol (EAP) and Secure Channel (SChannel). NTLM is used to authenticate users in Windows NT environment. DPA, EAP and Schannel are used to authenticate Dial up networks and Internet.

Schannel, which is designed to provide secure communication over the Internet, includes four protocols:

Windows 2000 has moved from proprietary mechanisms to open standard mechanisms for authentication. This allows it to support a wider range of clients and access a wider range of environments.


Windows System Security Tools

There is a possibility that in spite of all the security measures there is a weakness in the system. Hackers can use this security lapse to enter the system. It is also sometimes difficult to keep track of every machine located at different geographical locations. There are some applications that can be used to check system security vulnerabilities. Tools such as Internet Security Scanner can be used for determining the security level of a computer. A user that has domain administrator privileges can run these tools from his computer.

 

System Scanner

System Scanner for Windows is a security-assessment solution for Windows XP, Windows 2000, Microsoft Windows NT 4.0, Microsoft Windows 95 and Microsoft Windows 98. It performs approximately 300 vulnerability checks. These include scanning for the registry, Java, Microsoft Office projects and other vulnerabilities. It generates HTML reports to provide detailed descriptions of vulnerabilities detected on the computer and information needed to correct them. There are seven types of scans and the configuration options that System Scanner offers. They are:

System Scanner 2000 is available for free and can be downloaded from here.


Microsoft Baseline Security Analyzer (MBSA)

MBSA is a tool that allows a user to scan one or more Windows-based computers for common security problems. The MBSA can be executed from any machine that is running Windows 2000 Professional, Windows 2000 Server, Windows XP Home or Windows XP Professional. After scanning MBSA generates a report based on its findings, which is divided into categories based on installations on the system.

Key areas that are scanned are:

 

 

MBSA uses the HFNetChk tool to identify if security updates have been applied to a system. HFNetChk does this by referring to an XML security hotfix database that's constantly updated by Microsoft. This XML database contains information about the hotfixes that are available for each Microsoft product.

MBSA Version 1.1.1 is available for download at the Microsoft website.

 

Security Configuration Templates

Windows 2000 Server has Security Templates tool that makes it easier to set up and manage the security settings for an organization's network. A security template is a physical representation of a security configuration; in other words, it is a file where a group of security settings may be stored. Microsoft Management Console (MMC) snap-in lets administrators define standard templates and apply them uniformly to multiple computers or users. The templates range from security settings for low security domain clients to highly secure domain controllers. These templates can be modified or serve as a basis for creating custom security templates. The Security Configuration and Analysis tool is a companion to the Security Templates snap-in. It is used to apply the restrictions defined in a security template to actual systems. It can also be used to analyze a system's security and to compare the settings on computers.

 

Windows  Security Tips

 

Do not secure computer equipment in publicly accessible areas. The physical security should not be compromised and equipment should be secured against access, tampering, or removal.

If you run Windows, select Windows 2000 Professional and Windows XP Professional both of which offer features such as secure logon, file level security, and the ability to encrypt data.
Install software security packages that use passwords to ensure only authorized users have access to the computers and servers.
Only the system administration group should have the rights to implement any of the security policies that are part of the User Manager for Domains utility.
Choose passwords that are difficult or impossible to guess. Give different passwords to different accounts and change the passwords from time to time.
Encrypt sensitive and confidential information wherever appropriate.
Do not use pirated, hacked, or otherwise illegal copies of programs.
If others use your computer, carry out regular audits of the software on it and check any software that you discover that you haven't installed yourself.
Do not keep computers online when not in use.
Use anti-virus software and keep it up to date. Also regularly download security patches from the software vendors.
Do not open e-mail attachments from strangers.
Use firewall and proxy servers to restrict the unauthorized users from entering and using network resources.
Take regular backups of the systems and servers.
Raise the security awareness among users, friends and other people.


Windows Installation Security Checklist

Windows 2000 and Windows XP include a number of improved security features and options, and when properly configured it can be a very secure Operating System. Microsoft includes a Security Configuration Toolkit, security analyzer, and a number of default security templates with Windows 2000 that can help user in picking the level of security he needs. Below is a checklist of recommended security practices while installing Windows 2000 Professional or Server, or Windows XP Home or Professional.


Limit the number of unnecessary accounts: Eliminate any duplicate user accounts, test accounts, shared accounts, general department accounts, etc., Use group policies to assign permissions as needed, and audit the accounts regularly.


Use the Security Configuration Toolset: Microsoft provides a Security Configuration Toolset, which provides plug in templates for the MMC that allows an easy configuration of the policies based on the level of security required.


Shut down unnecessary ports: Workstations aren't normally at risk behind a firewall, but not always the servers are safe. A hackers' first attempt at rattling the doors and windows usually involves using a port scanner. The list of open ports on a local system can be obtained by opening the file located at %systemroot%\drivers\etc\services. To allow only TCP and ICMP connections, configure the UDP and IP Protocol check boxes to "Permit Only" and leave the fields blank.


Enable Auditing: The most basic form of Intrusion Detection for Windows 2000 is to enable auditing. This will alert whenever any changes are made in account policies, attempted password hacks, unauthorized file access, etc.


Set permissions on the security event log: The event log files are not protected by default, so permissions should be set on the event log files to allow access to Administrator and System accounts only.


Lock down the Registry: In Windows 2000, only Administrators and Backup Operators have default network access to the registry, however this may be tightened down even further.


Disable the default shares: Windows NT and Windows 2000 open hidden shares on each installation for use by the system account. Default Administrative shares can be disabled in two ways.


Use NTFS on all partitions: FAT and FAT32 File systems don't support file level security and give hackers a big wide open door to the system. Make sure all of the system partitions are formatted using NTFS.


Enable EFS (Encrypting File System): Windows 2000 ships with a powerful encryption system that adds an extra layer of security for drives, folders, or files. This will help prevent a hacker from accessing the files by physically mounting the hard drive on another PC and taking ownership of files. Be sure to enable encryption on Folders, not just files. All files that are placed in that folder would be encrypted.


Consider using SmartCard or Biometric devices instead of passwords: The more stringent the password policy is, the more likely the users would begin keeping paper password lists in their desk drawers, or taped to the bottom of their keyboard. Windows 2000 supports these devices Smart Cards and Biometric devices.


Replace the "Everyone" Group with "Authenticated Users" on file shares: Never assign the "Everyone" Group to have access to a file share on the network, use "Authenticated Users" instead. This is especially important for printers that have the "Everyone" Group assigned by default.


Disable Dump File Creation: A dump file can be a useful troubleshooting tool when either the system or application crashes and causes the infamous "Blue Screen of Death". However, they also can provide a hacker with potentially sensitive information such as application passwords. The dump file can be disabled by going to the Control Panel > System Properties > Advanced > Startup and Recovery and change the options for 'Write Debugging Information" to None.


Check Microsoft's web site for the latest hotfixes: Nobody writes 30 million lines of code and is going to have it perfect the first time, so updating service packs and hotfixes can go a long way to plug security holes.


Use passwords on all user accounts: Both Windows XP Professional and Home Edition allow user accounts to utilize blank passwords to log into their local workstations, although in XP Professional, accounts with blank passwords can no longer be used to log on to the computer remotely over the network. In Windows XP Home Edition, all user accounts have administrative privileges and with no password by default. So while installing one should make sure to provide passwords and appropriate privileges to all user accounts.


Use the Administrator Group with care: It's very common for home users and small business administrators to simply give all local accounts full Administrator privileges in order eliminate the inconvenience of logging into another account. However this practice gives a hacker the opportunity to try to crack a greater number of administrator level accounts and increases his/her chance for success. It also increases the odds that malicious code executed via an e-mail attachment or other vector can do more damage to your files. In a workgroup consider placing local users with a greater need for control in the local Power Users group, instead of the Administrators group. And avoid the temptation of using the local administrator account as the default login account.


Use NTFS on all your partitions: The FAT16/FAT32 file systems that were shipped with Windows 95/98/ME offered no security for the data leaving system wide open for intrusions and attacks. The NTFS file system is faster than FAT32 and allows setting permissions down to the file level. In addition, using NTFS on Windows XP Professional allows encrypting files and folders using the Encrypting File System (EFS).


Replace the "Everyone" Group with "Authenticated Users" on file shares: In Windows XP, "Everyone" means anyone who gains access to the network can access the data. Never assign the "Everyone" Group to have access to a file share on the network, use "Authenticated Users" instead. This is especially important for printers, who have the "Everyone" Group assigned by default.


Disable default shares: Windows XP automatically creates a number hidden administrative shares that the operating system uses to manage the computer environment on the network. These default shares can be disabled via the Computer Management console in the Control Panel, but they are re-enabled by the system after restarting the computer.

 

 





 

Copyright 2006 by DeepSearcher Inc. - All rights reserved