Windows XP Hardening
Brief Intro....
OS Hardening is the process of securing a system by implementing the latest OS patches, hotfixes and updates and following procedures and policies to reduce system and network attacks that are widespread today.
Thus, the idea of OS hardening is to minimize a computer's exposure to current and future threats by fully configuring the operating system and removing unnecessary applications.
Hardening your system will not cost you anything. However, you will need to spend some time changing your systems default values and adding adequate software.
This document is designed to implement sufficient security measures on the pc’s installed with windows xp operating system.
14 Steps for hardening Windows XP
1. Rename administrator account
Step by Step Procedure for renaming and password protecting in Windows XP Pro computers:
- Right click on ‘My Computer’ then click on ‘Manage’, which opens the Microsoft Management console.
- Open the Users folder under Local users and groups, right click on ‘Administrator’ and click ‘Rename’ and type in the new name or the account.
- Right click the newly named account, click ‘Properties’ and change the description for the account so as not to reveal its true nature.
- Click on ‘OK’
- Right click on the new ‘Administrator’ account, and click ‘Set Password’.
- Click ‘Proceed’ in the message box
- Type in and confirm the new password for the account in the boxes and then click ‘OK’
2. Using strong password
Use both Upper and Lower case letters, numbers, and try to use characters as well. If you have multiple computers, do not repeat the same passwords on each one. Never write down passwords and leave them in plain sight, or send them in email.
3. Use BOOT level BIOS password
4. Use screensaver
Remember to pick a time period for the screensaver to start, perhaps 10 minutes. If you are going to be away for an unknown time period, you can always start the screensaver manually when you are called away. Another quick way to secure things is to simply hit Ctrl-Alt-Delete which brings up the task manager. You then select ‘Lock Computer’ by left clicking the button
- Right click an open area of the desktop
- Left click properties from the choices
- Left click the screensaver tab
- Check the box to "On resume, password protect"
5. Guest Account
Step by step Procedure for renaming and password protecting Guest Account in XP
- Right click on ‘My Computer’, and then click ‘Manage’ which opens the Microsoft Management Console.
- Open the Users folder under Local users and groups, right click on ‘Guest’ and click ‘Rename’ and type in the new name for the account.
- Right click on ‘Guest’, click properties and edit the description for the account so its true nature will not be revealed.
6. Use NTFS file system
7. Disable auto-logins
Step by step Procedure to restrict auto-logins
- Go to the control panel, click on administrative tools,
- Click local security policy. Make sure all users have a password set for the account.
8. Disable enumeration of SIDs
This can be avoided by not allowing the enumeration of Account SIDs.
Step by step Procedure for disabling enumeration of SIDs in XP pro
- Click Start, go to Control Panel, click administrative tools, and click local security policy.
- Click the ‘Security Options’ folder in the left pane
- Double click ‘Network access: Do not allow anonymous enumeration of SAM accounts and shares’ on the right pane.
- Choose ‘Enabled’ and then click ‘Apply’ and ‘OK’ to save your settings
9. Unhide File extensions
By default, Windows XP and Windows 2000 hide known file extensions to simplify displays. The problem with this is that a malware writer can hide a file extension type after the file display and keep you from knowing what kind of file you are about to open. This is especially true for files hiding Trojans. Let’s not let this happen for most file types.
On both Windows XP and Windows 2000, follow these steps:
- Click Start, go to settings, open the Control Panel, and double click ‘Folder Options’
- Left click the ‘View’ tab
- Uncheck the box for ‘Hide extensions for known file types’
There are still three known file extensions that will remain hidden even after the above procedure. They are .shs, .pif, and .lnk so if in doubt, the rule should be not to open or run the file.
10. Disable Remote Desktop and Remote invitations
- Click Start, go to settings, then Control Panel
- Double click on the System icon
- Click on the ‘Remote’ tab, and uncheck the boxes to ‘Allow Remote Assistance invitations to be sent from this computer’, and ‘Allow users to connect remotely to this computer’
- Click ‘Apply’ to save the settings, and close the windows.
11. Clear page file at system shutdown
information, and it is displayed in plain text form.
Step by step Procedure to clear page file at shutdown
- Click Start and go to settings and open the Control Panel
- Open ‘Administrative Tools, and choose ‘Local Security Policy’ followed by ‘Local Policies’ in the left pane, and then ‘Security Options’
- In the right pane, right click on ‘Clear virtual memory pagefile when system shuts down’ , left click ‘Security’, and choose ‘Enabled’
- Left click ‘OK’ to save your settings, and close all open windows.
12. Disable Dump file creation
created and it can be helpful when using debugging tools and software. Like the page file above, it can contain sensitive information and passwords displayed in plain text form. An intruder can definitely make use of it.
Step by step Procedure to disable dump file creation
- Click on Start, go the settings, and open the Control Panel
- Double click the ‘System’ icon and then click the ‘Advanced’ tab
- Click the ‘Startup and Recovery button, and look for ‘Write Debugging Information’ toward the bottom of the window (XP users will have to first click on ‘Settings’)
- Click on the down arrow at the right of the top window. Default setting is Small Memory Dump (64 KB). Choose ‘(none)’
- Click ‘OK’ to save your settings and close all open windows.
13.Disable Dr.Watson dump file creation
Step by step Procedure to disable DR.Watson dump file creation
- Go to start, then run, then type in ‘regedit.exe’ and hit ‘Return’
- Browse to the following location in the left pane:
- HKEY_LOCAL-MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\AeDebug
- Left click on the value ‘Auto’ on the right pane, and change the value from ‘1’ to ‘0’
- Close the registry editor.
- Procedure to delete dump files created by Dr.Watsons on earlier occassions
- Open Windows explorer
- Browse to C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson and delete files named User.dmp and Drwtsn32log.
14. Unhide scrap file extensions
A scrap file is used by Windows machines to transfer data between programs, and it can contain just about anything from data to an executable program. Remember that in our discussion of file types, we chose to uncheck the box to ‘Hide known file extension types’ to show all file extensions and that I told you three file types would still remain hidden, one of them being .shs
A scrap file can be renamed with a different file extension to make it look benign. Windows assigns ‘RUNDLL32.EXESHSCRAP.DLL, OPENSCRAP_RUNDLL %1’ to the .SHS extension by default. When the file is opened, Windows will unpack the scrap file and open or execute whatever is in the file. Once the scrap file is opened, you have absolutely no control over it. The trick here is to get the file to show its true .shs extension.
Step by step procedure to unhide scrap files extensions
- Go to ‘Start’, ‘Run’ and then type in “regedit.exe’
- Left click ‘Edit’, then ‘Find’, and type in: HKEY_CLASSES_ROOT\ShellScrap and click ‘Find’
- Once found, in the right pane, right click on ‘NeverShowExt’ and choose ‘Modify’
- Type in ‘AlwaysShowExt’ and hit ‘Return’
- Close the Registry Editor
- Complete shut-down and re-boot













