Article View: alt.privacy.anon-server
Article #2223Swapfile Wiping [LONG]
From: Iolo Davidson
Date: Wed, 04 Sep 1996 00:00
Date: Wed, 04 Sep 1996 00:00
136 lines
6414 bytes
6414 bytes
My attention has been called to an error in the documentation of
Scorch, my fast file wipe program, regarding the configuration
changes needed to allow the secure wiping of the Windows 95
swapfile.
There are two ways to stop the computer from booting straight
into Windows 95, but only one of them works with the batch file I
recommend for automatically running the swapfile wipe on shutting
down Windows.
I have amended the documentation file on the Real Delete website,
<http://www.bonaventura.co.uk/realdelete>, and I append the
amended advice below. This method will work with other file wipe
programs, including "pgp -w".
You can get Scorch and Real Delete from this website. Both are
free for personal use.
========================================================================
Microsoft Windows uses a swap file which saves snapshots of the computer
memory to disk. This means that any data at all, whether you mean it to
be saved to a file or not, may end up on the disk. The Windows swap
file is ordinarily not deleted, nor overwritten except when Windows
saves new snapshots of memory. The swapfile can save memory from
Windows DOS sessions, as well as when working in Windows.
You can reduce this problem by Scorching the swap file after each
Windows session. Scorch was developed especially for use with the
Windows95 swap file. Swap files are generally very large, so Scorch was
optimised for speed when overwriting large files. It is ten or
twenty times faster than some other file wipers.
Windows95 normally doesn't give you an opportunity to Scorch the swap
file when you shut down, so you will need to alter your computer setup
to use it. You can make the scorching automatic, by following the
instructions below.
There are three things you need to do.
1- Alter your virtual memory (swap file) settings
-------------------------------------------------
The first thing you must do is go into Windows95 and change your
virtual memory settings. If you don't do this, the windows swap file
will have been insecurely "deleted" by the time that the file wiper
gets to it, so the contents will remain on the disk. Also, the
standard Window95 swap file grows and shrinks constantly, so any part
of the disk could have contents of this file on it. To stop this, we
set the file to a constant size, and that stops it being shrunk to
zero when we shut down Windows too.
Here is how to proceed:
Select "My Computer" from the desktop.
Select the "Control Panel" folder.
Select the "System" icon
Select the "Performance" tab
Press the "Virtual Memory" button
That gets you to the Virtual Memory settings. Now:
Click the switch for "Let me specify my own virtual memory settings"
Set both "Minimum" and "Maximum" boxes to the same number. (This
will be the number of megabytes in your swap file, I use 32. Too
small a swap file will affect performance.)
Click "OK"
Shutdown and restart Windows (there will be a prompt inviting this).
After the restart, close all the open folders, panels, etc.
Shut down Windows from the task bar, selecting "Restart the computer
in MSDOS mode" from the panel when it appears. This is in
preparation for the next part of the task.
2- Change the boot sequence to boot into DOS
--------------------------------------------
Next, you have to stop your computer booting straight into Windows95.
There are two different ways to do this, but only one is useful for
our purposes (an earlier edition of this doc file had this wrong).
Edit the C:\MSDOS.SYS file to change "BootGUI=1" to "BootGUI=0". You
can also add a line saying "Logo=0" so you don't get the initial
graphic screen. Essentially this restores the way that Windows used
to work in version 3.x.
MSDOS.SYS is a hidden file, so you must enter:
attrib -h -r -s \msdos.sys
at the command line in order to make it accessible for editing. Use a
plain ASCII DOS editor to edit the file, not a word processor.
Windows95 may not let you do these things in a Windows DOS box, which
is why you were advised above to exit Windows95 via the shut down
command and restart in MSDOS mode.
3- Run Windows via a DOS Batch file
-----------------------------------
Lastly, you must write a DOS batch file to use when you want to run
Windows95. This is so that when you shut Windows down in future,
execution will return to the batch file, and further commands can be
processed, in particular, a secure deletion of the swap file. The
batch file should look like this:
cd \windows
win
mode co80
cd\
scorch [win386.swp] /nodel
I named the batch file W.BAT so that I can run Windows just by typing
"w" and Enter. If you name it WIN.BAT, it could get confused with
WIN.COM in the WINDOWS directory when you come to run it.
The "mode co80" line makes the "it is OK to turn off your computer"
Windows shut down screen go away and returns you to the command line
prompt. Scorch then overwrites the swap file. This takes about one
second per megabyte on my computer. You should wait for Scorch to
finish overwriting before turning off your computer.
========================================================================
You can use a different file wipe program in place of Scorch, by
replacing the Scorch command line with one appropriate for the
other program.
--
FILM PROTECTS SO YOUR RAZOR
YOUR NECK WON'T DIG IN
AND CHIN Burma-Shave
Technical Details
Message-ID:
<841797971snz@mist.demon.co.uk>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.mbox.zip!not-for-mailShow Full Headers
Complete Article Headers
Message-ID: <841797971snz@mist.demon.co.uk> Subject: Swapfile Wiping [LONG] Date: Wed, 04 Sep 1996 00:00:00 +0000 From: Iolo Davidson <io1o@mist.demon.co.uk> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.security.mbox.zip!not-for-mail X-Deja-AN: 178326663 X-mail2news-path: mist.demon.co.uk X-nntp-posting-host: mist.demon.co.uk Organization: Note- junk mail filtering active, use username 'iolo' to mail Reply-to: "iolo at mist dot demon dot co dot uk"@mist.demon.co.uk Newsgroups: alt.security.pgp,alt.security,alt.privacy,alt.privacy.anon-server