Feeds

Clearing swap and hibernation files properly

Two neglected open books

  • alert
  • submit to reddit

SANS - Survey on application security programs

If you're lazy, and cheap

Finally, there is a less secure, but convenient and free, approach for Windows users. You can set your swap file for automatic deletion each time you reboot or shut down your system. It's not a secure wipe, but if you've chosen a fixed-size swap file as I recommend, there's a fair chance that old data will gradually be overwritten as a new swap file is created each time you reboot. There's no guarantee that a new file will overwrite a previous one (because there's no guarantee that it will occupy the same physical disk area as a previous one), but this is a very easy thing to do, it costs nothing, and it's certainly better than neglecting the swap file entirely.

To set up your swap file for automatic deletion, go to Start ==> Run ==> and type regedit. The registry editor will launch. Before you make any changes to your registry, make a copy of it. In the left-hand pane of the registry editor, select the top level, labelled "My Computer". Now, in the upper menu bar, go to File ==> Export. In the export dialogue box, be sure to choose "All" in the Export Range option toward the bottom of the box. Now save your registry. If your changes cause any problems, you can re-install your previous registry files simply by opening the editor, choosing File ==> Import from the menu bar, and reversing the process.

Now, to set your swap file for automatic deletion, here's all you need to do:

In the left-hand pane of the registry editor, navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management. Next, in the right-hand pane, select ClearPageFileAtShutdown. Right click on it, choose "Modify", and change the value to 1. Reboot, of course.

Edit Registry

You can tell that it's working because shutting down Windows will take noticeably longer than before. Obviously, if you're in the habit of simply powering off your computer, you won't get much benefit from this. You do have to shut down normally for it to work.

Combat fraud and increase customer satisfaction

More from The Register

next story
Parent gabfest Mumsnet hit by SSL bug: My heart bleeds, grins hacker
Natter-board tells middle-class Britain to purée its passwords
Obama allows NSA to exploit 0-days: report
If the spooks say they need it, they get it
Web data BLEEDOUT: Users to feel the pain as Heartbleed bug revealed
Vendors and ISPs have work to do updating firmware - if it's possible to fix this
Samsung Galaxy S5 fingerprint scanner hacked in just 4 DAYS
Sammy's newbie cooked slower than iPhone, also costs more to build
Mounties always get their man: Heartbleed 'hacker', 19, CUFFED
Canadian teen accused of raiding tax computers using OpenSSL bug
Snowden-inspired crypto-email service Lavaboom launches
German service pays tribute to Lavabit
One year on: diplomatic fail as Chinese APT gangs get back to work
Mandiant says past 12 months shows Beijing won't call off its hackers
prev story

Whitepapers

Designing a defence for mobile apps
In this whitepaper learn the various considerations for defending mobile applications; from the mobile application architecture itself to the myriad testing technologies needed to properly assess mobile applications risk.
3 Big data security analytics techniques
Applying these Big Data security analytics techniques can help you make your business safer by detecting attacks early, before significant damage is done.
Five 3D headsets to be won!
We were so impressed by the Durovis Dive headset we’ve asked the company to give some away to Reg readers.
The benefits of software based PBX
Why you should break free from your proprietary PBX and how to leverage your existing server hardware.
Securing web applications made simple and scalable
In this whitepaper learn how automated security testing can provide a simple and scalable way to protect your web applications.