How To Prevent Data Theft from the Swap File in Windows XP & Vista


The swap file might contain confidential information, but it continues to store data even after the PC has been shut down. Although this data is not easily accessible, hackers are equipped with tools like ‘Poolfinder’, which help them read this data. If your notebook which is often traveling with you is lost or stolen, the risk is huge.

Make sure that Windows destroys the swap data while shutting down. This is especially easy in XP Professional and Vista Ultimate Edition, but you must tweak the registry manually in the Home versions. To do this..

  • Open ‘Start > Control Panel’ and click on ‘Performance and Maintenance’ and then on ‘Administrative Tools’.
  • In the Control Panel classic view, you can directly reach this window by double-clicking on ‘Administrative Tools’.
  • Then open the ‘Local Security Policy’ by double-clicking on it.
  • In the left pane tree structure, navigate to ‘Security Settings > Local Policies > Security Options’.
  • In the right pane, double-click on the policy ‘Shutdown:
  • Clear virtual memory page file’. In the following dialog, select ‘Activated’ and confirm with ‘OK’.
  • In Vista Ultimate, this dialog shows an additional tab that explains the policy.
  • In XP Home and Vista Home, you have to log on with administrator rights.

In Windows XP, open the registry editor with ‘Start > Run…’, ‘regedit.exe’ and a click on ‘OK’.

In the tree structure of the editor navigate to the registry key ‘HKEY_LOCAL_ MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management’.

  • The right side will display the value ‘Clear-PageFileAtShutdown’.
  • Open it by double-clicking on it. In the ‘Edit DWORD Value’ dialog, set the ‘Value data’ field to ‘1’ and confirm with ‘OK’.
  • After restarting the system, Windows will henceforth overwrite the contents of the swap file ‘Pagefle.sys’ when shutting down, with an exception of a reserved area for organization and administration.
  • Depending on the file size and system performance, the shut down takes a few seconds longer.
Filed under: OS Tweaks & Hacks
Tags: , , , , ,
May 28, 2009 by: Prasanth Chandra

Comments

Leave a Reply