Securing Windows XP
What is computer security? And why should I care?
Computer security is the control of access to resources and the steps taken to achieve this.
Why do I need it?
Pretend that someone called Joe buys a personal computer to use the Internet and the concept of computer security does not exist. Any time Joe connects to the Internet, everybody else using the Internet at the same time would have total access to Joe's computer not only severely compromising Joe's privacy but also risking the working integrity of his computer. In short if you care at all about your computer working or any data you enter into it you need your computer to be as secure as possible.
Computer security is the control of access to resources and the steps taken to achieve this.
If you care about your computer working properly and any data you enter into it you need your computer to be as secure as possible.
Users
In Windows XP in order to use the operating system you must login as a user. Each user has information stored in a database (SAM). For each user the database must store a username, a password and at least one group. With these two pieces of information one can login to the operating system.
Permissions
Permissions define what resources may be accessed through Windows. Even for the most trivial tasks Windows XP requires access to computer resources. These resources are defined as "objects" and it is these "objects" that Windows XP screens access for. Common examples of "objects" include a file on a hard disk or the ability to add new users. Access to these objects is restricted to certain users or groups. Every time a user requests a resource or tries to perform an action Windows checks the ACL (Access Control Lists) to see if that particular user is allowed to, if for example the user is not allowed, access will be denied. Permissions are a fundamental concept in Windows XP and almost every other operating system.
Practical Steps To A Secure Windows XP
Provide Physical Security for the machine
This is self-evident. To prevent people from using your computer(s), deny them physical access. If you want to limit or monitor computer usage, physically monitor what they are doing with your computer! These simple steps alone can reduce a large number of potential threats.
Disable or Delete Unnecessary Users
Disable any accounts that are not used. For example always disable the Guest account (disabled by default on brand new computers or a "fresh" Windows XP install).
There are two ways to disable a user in Windows XP.
- Click Start >> Settings >> Control Panel >> User Accounts
- In the User accounts window there are two headings: "Pick a Task..." and "or pick an account to change".
- If you select the user you want to disable under "pick an account to change" new links will appear. Choose "Turn off the [username] account".
or
- Click Start >> Run... >> Enter "lusrmgr.msc" >> Click "Users" >>
- Double-click the user you want to disable, check the "Account is Disabled" box and click "Ok".
Additionally it may well be worth renaming the "Administrator" account as this may be targeted in any attempt to breach security or run/install programs. There are two methods.
XP Home Edition
- At a command prompt type control userpasswords
- Select Administrator and click on Properties. Change the user name, NOT the full name.
XP Professional Edition
- Type secpol.msc at a command prompt
- Open Local Policies/Security Options
- In the details pane, double click Accounts: Rename Administrator Account
- Type the new name for the account
Keep Your OS Updated
Security vulnerabilities are continuously discovered and exploited by virus writers and crackers. Microsoft's policy is to regularly release cumulative patches, available on the Windows Update site.
SP2 Windows has an Automatic updates feature:
- Right click on My Computer
- Choose Properties
- Select the Automatic updates tab.
Use Antivirus Software
A computer virus is a program that when executed attempts to "infect" other programs by modifying them (embedding a copy of themselves in the code) or by changing their execution path system-wise (so that a request to run program X causes the viral code to be executed too). Usually it stays active in memory, infecting programs run by the user.
Being self-replicating is damaging enough (they tend to clog the system's resources) but since virus writers are mostly malicious, they often include a payload - a damaging action triggered by an event the coder decided upon. The payload may cause data loss, damage to Windows' integrity and/or leakage of valuable information (passwords, email addresses, credit card numbers).
An active antivirus is a necessity when connected to the Internet, since some modern viruses try to exploit known security flaws to remotely infect a computer without any user interaction.
> read more on the computer virus here
Windows XP does not include built in antivirus functionality, but many products, free and commercial, exist to protect your computer in real time. Here is a short list of software that does the job.
Kaspersky Labs International Ltd.
is one of the world's top anti-virus companies, and well known all over the world as one of the leaders in the development of advanced anti-virus technologies. We produce anti-virus defense for home users, systems for workstations, file servers and application servers, e-mail gateways, firewalls, and Web servers. Kaspersky Labs also provides anti-spam solution for Small and Medium Businesses.
CA Anti-Virus provides complete protection against viruses, worms and Trojan horse programs. The easy-to-use interface and frequent automatic updates make it effortless to stay protected, and with quick scan times and efficient use of system resources, it won't bog down your PC.
Firewall
A firewall basically monitors and filters network activity directed to and from your computer. It is first of all a security concept which involves a security policy, software and/or hardware components.
The main feature of the personal firewalls (e.g. ZoneAlarm
etc.) is to block open ports so that they cannot be accessed from the Internet. This allows you to deny suspicious requests. The (very basic) Windows XP firewall does this too.
Since software firewalls also check outbound traffic, they should in theory prevent Trojan horse programs that have breached the system from sending data to their creator. Unfortunately certain advanced malware is capable once in control of disabling specific firewalls.
Hardware firewall is a physical device that interfaces two network segments. Most routers have one built-in that is sufficient for most home networks.
Most hardware firewalls also support VPN (Virtual Private Network) connections and are capable of NAT (Network Address Translation), a feature that hides the real IP addresses of your network's computers from the outside world.
Personal firewall programs:
- Anti-Spyware
- Anti-Spam
- Personal Firewall
- PC Pitstop Erase
Anti-Spyware
The term spyware refers to a relatively new breed of malicious software (that first came under scrutiny around 1999) that focuses on stealing personal information and valuable data for unsavory purposes like identity theft. (Adware is a slightly tamer version of spyware that tracks your web surfing and sends you targeted advertisement, usually in the form of popup windows.)
Spyware typically installs on a computer without the user's informed consent, either bundled with another program or by exploiting one of the many bugs of Microsoft's Internet Explorer (the mammoth web browser bundled with Windows) to perform a "drive-by download" on visiting a specially crafted web page.
Antiviruses and firewalls have a hard time with these programs. Once compromised the computer may be instructed to download more spyware. The user will then experience massive slowdowns and system instability.
To cut a long story short, prevention is the best strategy. The point is to try reducing your computer's "window of exposure." A passable, free solution could consist in the following programs that complement each other:
Ad-Aware Can fix most spyware issues. To enable preemptive blocking you would have to buy the payed-for version.
Spybot S&D Slightly glitchy. Detects known malware using euristics. It has several features (mostly accessible in "Advanced mode"). Useful ones are the 'Immunize' function, the download-blocker BHO, and a blacklist of "bad" URLs that can be added to your HOSTS file.
Microsoft's Windows Defender (freely downloadable if you use a "genuine copy" of Windows).
Remove Unnecessary Windows Services
If you have a typical installation, many services are configured as "automatic" (that is, they start automatically when the system starts or when the service is called for the first time). If a service is configured as "manual," you must start the service manually before it can be loaded by the operating system and made available for use. If a service is configured as "disabled," it cannot be started automatically or manually.
A service is a program that is loaded on startup and provides some low-level functionality in the background. It can be started and stopped on request via:
- Control Panel
- Administrative tools
- Services window.
Unneeded Windows services use up a small amount of resources, but may also cause problems. For example, if you do not use TELNET you can disable the service so as to deny other people an opportunity to remotely log on your computer and send commands to it to see what happens.
Deactivating unneeded Windows services requires some caution, since stopping the wrong services may render your computer unusable. Be sure of what you're doing.
The following table lists the default services for a typical installation of Windows XP Professional, along with their default startup settings. Your list of services might be different, depending on the components selected during installation and any additional programs that have been installed.
Default settings for services
| Service | Startup Type | Log On As | Description |
|---|---|---|---|
| Alerter | Manual | Local Service | Notifies selected users and computers of administrative alerts. If the service is stopped, programs that use administrative alerts will not receive them. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Application Layer Gateway | Manual | Local Service | Provides support for 3rd party protocol plug-ins for Internet Connection Sharing and the Windows Firewall. |
| Application Management | Manual | Local System | Provides software installation services such as Assign, Publish, and Remove. |
| Automatic Updates | Automatic | Local System | Enables the download and installation of Windows updates. If this service is disabled, this computer will not be able to use the Automatic Updates feature or the Windows Update Web site. |
| Background Intelligent Transfer Service | Manual | Network Service | Transfers data between clients and servers in the background. If BITS is disabled, features such as Windows Update will not work correctly. |
| ClipBook | Manual | Local System | Enables ClipBook Viewer to store information and share it with remote computers. If the service is stopped, ClipBook Viewer will not be able to share information with remote computers. If this service is disabled, any services that explicitly depend on it will fail to start. |
| COM+ Event System | Manual | Local System | Supports System Event Notification Service (SENS), which provides automatic distribution of events to subscribing Component Object Model (COM) components. If the service is stopped, SENS will close and will not be able to provide logon and logoff notifications. If this service is disabled, any services that explicitly depend on it will fail to start. |
| COM+ System Application | Manual | Local System | Manages the configuration and tracking of Component Object Model (COM)+-based components. If the service is stopped, most COM+-based components will not function properly. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Computer Browser | Automatic | Local System | Maintains an updated list of computers on the network and supplies this list to computers designated as browsers. If this service is stopped, this list will not be updated or maintained. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Cryptographic Services | Automatic | Local System | Provides three management services: Catalog Database Service, which confirms the signatures of Windows files; Protected Root Service, which adds and removes Trusted Root Certification Authority certificates from this computer; and Key Service, which helps enroll this computer for certificates. If this service is stopped, these management services will not function properly. If this service is disabled, any services that explicitly depend on it will fail to start. |
| DHCP Client | Automatic | Local System | Manages network configuration by registering and updating IP addresses and DNS names. |
| Distributed Link Tracking Client | Automatic | Local System | Maintains links between NTFS files within a computer or across computers in a network domain. |
| Distributed Transaction Coordinator | Manual | Network Service | Coordinates transactions that span multiple resource managers, such as databases, message queues, and file systems. If this service is stopped, these transactions will not occur. If this service is disabled, any services that explicitly depend on it will fail to start. |
| DNS Client | Automatic | Network Service | Resolves and caches Domain Name System (DNS) names for this computer. If this service is stopped, this computer will not be able to resolve DNS names and locate Active Directory domain controllers. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Error Reporting | Automatic | Local System | Allows error reporting for services and applictions running in non-standard environments. |
| Event Log | Automatic | Local System | Enables event log messages issued by Windows-based programs and components to be viewed in Event Viewer. This service cannot be stopped. |
| Fast User Switching Compatibility | Manual | Local System | Provides management for applications that require assistance in a multiple user environment. |
| Help and Support | Automatic | Local System | Enables Help and Support Center to run on this computer. If this service is stopped, Help and Support Center will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Human Interface Device Access | Disabled | Local System | Enables generic input access to Human Interface Devices (HID), which activates and maintains the use of predefined hot buttons on keyboards, remote controls, and other multimedia devices. If this service is stopped, hot buttons controlled by this service will no longer function. If this service is disabled, any services that explicitly depend on it will fail to start. |
| IMAPI CD-Burning COM | Manual | Local System | Manages CD recording using Image Mastering Applications Programming Interface (IMAPI). If this service is stopped, this computer will be unable to record CDs. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Indexing Service | Manual | Local System | You can use Indexing Service to index documents and document properties on your disks and store the information in a catalog. |
| Internet Connection Sharing | Manual | Local System | |
| IPSec Services | Automatic | Local System | Manages IP security policy and starts the ISAKMP/Oakley (IKE) and the IP security driver. |
| Logical Disk Manager | Automatic | Local System | Detects and monitors new hard disk drives and sends disk volume information to Logical Disk Manager Administrative Service for configuration. If this service is stopped, dynamic disk status and configuration information may become out of date. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Logical Disk Manager Administrative Service | Manual | Local System | Configures hard disk drives and volumes. The service only runs for configuration processes and then stops. |
| Messenger | Automatic | Local Service | Transmits net send and Alerter service messages between clients and servers. This service is not related to Windows Messenger. If this service is stopped, Alerter messages will not be transmitted. If this service is disabled, any services that explicitly depend on it will fail to start. |
| MS Software Shadow Copy Provider | Manual | Local System | Manages software-based volume shadow copies taken by the Volume Shadow Copy service. If this service is stopped, software-based volume shadow copies cannot be managed. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Net Logon | Automatic | Local System | Supports pass-through authentication of account logon events for computers in a domain. |
| NetMeeting Remote Desktop Sharing | Manual | Local System | Enables an authorized user to access this computer remotely by using NetMeeting over a corporate intranet. If this service is stopped, remote desktop sharing will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Network Connections | Manual | Local System | Manages objects in the Network and Dial-Up Connections folder, in which you can view both local area network and remote connections. |
| Network DDE | Manual | Local System | Provides network transport and security for Dynamic Data Exchange (DDE) for programs running on the same computer or on different computers. If this service is stopped, DDE transport and security will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Network DDE DSDM | Manual | Local System | Manages Dynamic Data Exchange (DDE) network shares. If this service is stopped, DDE network shares will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Network Location Awareness (NLA) | Manual | Local System | Collects and stores network configuration and location information, and notifies applications when this information changes. |
| NT LM Security Support Provider | Manual | Local System | Provides security to remote procedure call (RPC) programs that use transports other than named pipes. |
| Performance Logs and Alerts | Manual | Network Service | Collects performance data from local or remote computers based on preconfigured schedule parameters, then writes the data to a log or triggers an alert. If this service is stopped, performance information will not be collected. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Plug and Play | Automatic | Local System | Enables a computer to recognize and adapt to hardware changes with little or no user input. Stopping or disabling this service will result in system instability. |
| Portable media serial number | Automatic | Local System | Retrieves the serial number of any portable media player connected to this computer. If this service is stopped, protected content might not be down loaded to the device. |
| Print Spooler | Automatic | Local System | Loads files to memory for later printing. If you are having trouble with a printer not responding, you can try restarting this service. This cancels all pending print jobs. |
| Protected Storage | Automatic | Local System | Provides protected storage for sensitive data, such as private keys, to prevent access by unauthorized services, processes, or users. |
| QoS RSVP | Manual | Local System | Provides network signaling and local traffic control setup functionality for QoS-aware programs and control applets. |
| Remote Access Auto Connection Manager | Manual | Local System | Creates a connection to a remote network whenever a program references a remote DNS or NetBIOS name or address. |
| Remote Access Connection Manager | Manual | Local System | Creates a network connection. |
| Remote Desktop Help Session Manager | Manual | Local System | Manages and controls Remote Assistance. If this service is stopped, Remote Assistance will be unavailable. Before stopping this service, see the Dependencies tab of the Properties dialog box. |
| Remote Procedure Call (RPC) | Automatic | Local System | Provides the endpoint mapper and other miscellaneous RPC services. |
| Remote Procedure Call (RPC) Locator | Manual | Network Service | Manages the RPC name service database. |
| Remote Registry | Automatic | Local Service | Enables remote users to modify registry settings on this computer. If this service is stopped, the registry can be modified only by users on this computer. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Removable Storage | Manual | Local System | Removable Storage |
| Routing and Remote Access | Manual | Local System | Offers routing services to businesses in local area and wide area network environments. |
| Secondary Logon | Automatic | Local System | Enables starting processes under alternate credentials. If this service is stopped, this type of logon access will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Security Accounts Manager | Automatic | Local System | Stores security information for local user accounts. |
| Server | Automatic | Local System | Supports file, print, and named-pipe sharing over the network for this computer. If this service is stopped, these functions will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start. Stopping this service disconnects any open sessions with a remote computer. |
| Shell Hardware Detection | Automatic | Local System | Provides notifications for AutoPlay hardware events. |
| Smart Card | Manual | Local Service | Manages access to smart cards read by this computer. If this service is stopped, this computer will be unable to read smart cards. If this service is disabled, any services that explicitly depend on it will fail to start. |
| SSDP Discovery | Manual | Local Service | Enables discovery of UPnP devices on your home network. |
| System Event Notification | Automatic | Local System | Tracks system events such as Windows logon, network, and power events. Notifies COM+ Event System subscribers of these events. |
| System Restore Service | Automatic | Local System | Performs system restore functions. To stop service, turn off System Restore from the System Restore tab in My Computer->Properties |
| Task Scheduler | Automatic | Local System | Enables a user to configure and schedule automated tasks on this computer. If this service is stopped, these tasks will not be run at their scheduled times. If this service is disabled, any services that explicitly depend on it will fail to start. |
| TCP/IP NetBIOS Helper | Automatic | Local Service | Enables support for NetBIOS over TCP/IP (NetBT) service and NetBIOS name resolution. |
| Telephony | Manual | Local System | Provides Telephony API (TAPI) support for programs that control telephony devices and IP based voice connections on the local computer and, through the LAN, on servers that are also running the service. |
| Telnet | Manual | Local System | Enables a remote user to log on to this computer and run programs, and supports various TCP/IP Telnet clients, including UNIX-based and Windows-based computers. If this service is stopped, remote user access to programs might be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Terminal Services | Manual | Local System | Allows multiple users to be connected interactively to a machine as well as the display of desktops and applications to remote computers. The underpinning of Remote Desktop (including RD for Administrators), Fast User Switching, Remote Assistance, and Terminal Server. |
| Themes | Automatic | Local System | Provides user experience theme management. |
| Uninterruptable Power Supply | Manual | Local Service | Manages an uninterruptible power supply (UPS) connected to the computer. |
| UPnP Device Host | Manual | Local System | Provides support to host Universal Plug and Play devices. |
| Upload Manager | Automatic | Local System | |
| Utility Manager | Manual | Local System | |
| Volume Shadow Copy | Manual | Local System | Manages and implements Volume Shadow Copies used for backup and other purposes. If this service is stopped, shadow copies will be unavailable for backup and the backup may fail. If this service is disabled, any services that explicitly depend on it will fail to start. |
| WebClient | Automatic | Local Service | Enables Windows-based programs to create, access, and modify Internet-based files. If this service is stopped, these functions will not be available. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Windows Audio | Automatic | Local System | Manages audio devices for Windows-based programs. If this service is stopped, audio devices and effects will not function properly. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Windows Firewall/Internet Connection Sharing | Automatic | Local System | Provides network address translation, addressing, name resolution and/or intrusion prevention services for a home or small office network. |
| Windows Image Acquisition (WIA) | Manual | Local System | Provides image acquisition services for scanners and cameras. |
| Windows Installer | Manual | Local System | Adds, modifies, and removes applications provided as a Windows Installer (*.msi) package. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Windows Management Instrumentation | Automatic | Local System | Provides a common interface and object model to access management information about operating system, devices, applications and services. If this service is stopped, most Windows-based software will not function properly. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Windows Time | Automatic | Local System | Maintains date and time synchronization on all clients and servers in the network. If this service is stopped, date and time synchronization will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start. |
| Wireless Zero Configuration service | Automatic | Local System | Provides automatic configuration for the 802.11 adapters |
| WMI Performance Adapter | Manual | Local System | Provides performance library information from WMI HiPerf providers. |
| Workstation | Automatic | Local System | Creates and maintains client network connections to remote servers. If this service is stopped, these connections will be unavailable. If this service is disabled, any services that explicitly depend on it will fail to start. |
