Feeds

Clearing swap and hibernation files properly

Two neglected open books

  • alert
  • submit to reddit

The Power of One eBook: Top reasons to choose HP BladeSystem

Sensitive data asleep

Now for hibernation, or suspend-to-disk, on Windows 2K and XP. Enabled by default on XP, this gimmick takes a snapshot of memory and writes it to disk so your computer can hibernate and "wake up" more quickly than it could from a dead stop. In practice, it's not that much help, and few users express much enthusiasm for it. So its benefits are questionable, while it poses a serious challenge to good data hygiene. The size of the corresponding hidden file, called hiberfil.sys, will roughly match the amount of RAM on the system.

Naturally, an incredible amount of sensitive data could be dumped to disk when hibernation is activated. So if you're at all concerned about privacy and data hygiene, this file has to go, and the area it occupies has to be wiped properly.

1. Begin by disabling hibernation. Go to Control Panel ==> Power Options, to launch the Power Options Properties dialogue box. Select the tab labelled "Hibernate", and clear the tick-box beside the option, "Enable hibernation". Click the Apply button, close the dialogue box, and reboot your machine.

2. Next, open Windows Explorer and navigate to the root directory, i.e., My Computer ==> Local Disk (C:). Look for hiberfil.sys, and delete it if it's present. Now, empty your Recycle Bin.

3. Finally, perform a secure wipe of your disk's free space and file slack space.

As far as I know, current Linux distros do not hibernate or suspend-to-disk by default, although a user can implement it using the swap partition as the hibernate file. In that case you would need a swap partition about twice the size of system RAM, and you will have to recompile your kernel, as certain features need to be built in to the kernel, rather than being loaded as modules. But clearing hibernation data properly is as easy as running the WipeSwap.sh script as described previously.

So once again, when it comes to privacy and security, Linux users have it a lot easier than Windows users. And cheaper, too. ®

The Power of One eBook: Top reasons to choose HP BladeSystem

More from The Register

next story
HIDDEN packet sniffer spy tech in MILLIONS of iPhones, iPads – expert
Don't panic though – Apple's backdoor is not wide open to all, guru tells us
Mozilla fixes CRITICAL security holes in Firefox, urges v31 upgrade
Misc memory hazards 'could be exploited' - and guess what, one's a Javascript vuln
BMW's ConnectedDrive falls over, bosses blame upgrade snafu
Traffic flows up 20% as motorway middle lanes miraculously unclog
LibreSSL RNG bug fix: What's all the forking fuss about, ask devs
Blow to bit-spitter 'tis but a flesh wound, claim team
Manic malware Mayhem spreads through Linux, FreeBSD web servers
And how Google could cripple infection rate in a second
Yorkshire cops fail to grasp principle behind BT Fon Wi-Fi network
'Prevent people that are passing by to hook up to your network', pleads plod
Don't look, Snowden: Security biz chases Tails with zero-day flaws alert
Exodus vows not to sell secrets of whistleblower's favorite OS
Researcher sat on critical IE bugs for THREE YEARS
VUPEN waited for Pwn2Own cash while IE's sandbox leaked
prev story

Whitepapers

Top three mobile application threats
Prevent sensitive data leakage over insecure channels or stolen mobile devices.
Implementing global e-invoicing with guaranteed legal certainty
Explaining the role local tax compliance plays in successful supply chain management and e-business and how leading global brands are addressing this.
Top 8 considerations to enable and simplify mobility
In this whitepaper learn how to successfully add mobile capabilities simply and cost effectively.
Application security programs and practises
Follow a few strategies and your organization can gain the full benefits of open source and the cloud without compromising the security of your applications.
The Essential Guide to IT Transformation
ServiceNow discusses three IT transformations that can help CIO's automate IT services to transform IT and the enterprise.