Sophos

Online support

Product maintenance

Contact support

Support services

Disinfecting PE executables

Note: These instructions do not apply to all executable file viruses. Check the virus analysis of any individual virus for full details of how it should be treated. If a virus identity file (IDE) is necessary, download and save it to floppy disk.

  1. Using Enterprise Console or Sophos Control Center
  2. Disinfecting PE executables with Sophos Anti-Virus for Windows, version 7
  3. Disinfecting PE executables in Windows NT/2000/XP/2003
  4. Disinfecting PE executables in Windows 95/98
  5. Disinfecting or removing PE executables on other platforms

1. Using Enterprise Console or Sophos Control Center

You can disinfect PE executable viruses over a network using Enterprise Console or Sophos Control Center.

2. Disinfecting PE executables with Sophos Anti-Virus for Windows, version 7

To disinfect a PE executable virus:

If Sophos Anti-Virus cannot disinfect files because they are held open by the operating system, make a note of the names of the files, then do as follows.

  1. Download an emergency copy of SAV32CLI. On an uninfected Windows computer, run this file to extract the contents into a SAV32CLI folder on a medium that can be write-protected. Copy the SAV32CLI folder produced onto a medium that can be write-protected. Add any relevant IDEs to this folder and write-protect the disk (on a CD/R or CD/RW close the session).
  2. Restart the computer in Safe Mode with command prompt.
  3. At the infected computer, place the CD in the CD drive (D: in this example). At the command prompt type

    D:

    to access the CD drive. Type:

    CD SAV32CLI

    Then type:

    SAV32CLI -DI -P=C:\LOGFILE.TXT

    to disinfect the virus.

    All other files must be deleted. Some of these were dropped by the virus and need not be restored. Others should be recovered from backups.

    SAV32CLI -REMOVE -P=C:\REMOVLOG.TXT

    This command writes a report to the root of the C: drive. This report can be used to check which deleted files should be restored from backups.

    In Windows 2000/XP/2003/Vista, when disinfection and deletion have finished, restart the computer in Windows.

    Install or reinstall Sophos Anti-Virus then run an 'All files' scan to check that the virus has gone.

  4. Before leaving Safe Mode, check any registry entries mentioned in the virus analysis recovery instructions, and edit them if necessary. If problems persist, contact support.

3. Disinfecting PE executables in Windows NT/2000/XP/2003

On a lightly infected computer running Windows NT/2000/XP/2003, where no significant services have become infected, it may be possible to run SAV32CLI from a command prompt with the -DI switch.

First, check the recovery instructions in the virus analysis for any extra measures you should take before (and after) disinfecting. Also, check to see if you need an IDE file. If you do, download it and save it to a floppy disk.

Download an emergency copy of SAV32CLI. On an uninfected Windows computer, run this file to extract the contents into a SAV32CLI folder on a medium that can be write-protected. Copy the SAV32CLI folder produced onto a medium that can be write-protected. Add any relevant IDEs to this folder and write-protect the disk (on a CD/R or CD/RW close the session).

Now close down all possible programs and services, then open a command prompt.

On Windows NT

On Windows 2000 and later

At the command prompt type

E:

where E: is the drive in which you placed the SAV32CLI disk.

Type:

CD SAV32CLI

Now type:

SAV32CLI -DI -P=C:\VIRUSLOG.TXT

to disinfect all fixed drives.

The command above runs SAV32CLI, which scans all of the directories and files on your PC, including subdirectories. Files which the virus has infected are cleaned and a report is made of them in the root of the C: drive. SAV32CLI will disinfect all files that can be disinfected.

All other files must be deleted. Some of these were dropped by the virus and need not be restored. Others should be recovered from backups.

SAV32CLI -REMOVE -P=C:\REMOVLOG.TXT

This command writes a report to the root of the C: drive. This report can be used to check which deleted files should be restored from backups.

In Windows NT when disinfection and deletion have finished, type 'Explorer' to restart the Windows Desktop.

In Windows 2000 or later, when disinfection and deletion have finished, restart the computer in Windows.

Install or reinstall Sophos < >Anti-Virus then run an 'All files' scan to check that the virus has gone.

System Restore and Windows XP

Note: This will delete any previously created restore points.

If the virus has not gone, contact Sophos technical support.

Infected files may not always be restored to their original state. A file that has been disinfected cannot be guaranteed to function correctly. In order to recover files to their original state, they should be subsequently restored from backups, new media or a clean computer.

[TOP]

4. Disinfecting PE executables in Windows 95/98

To disinfect PE executables in Windows 95/98 and in DOS, use DOS SWEEP with the -DIPE switch.

Download DOS SWEEP, extract the files, and copy them into a C:\Sophtemp directory on your computer. Add any relevant IDEs to this folder.

First, check the recovery instructions in the virus analysis for any extra measures you should take before (and after) disinfecting.

Before running DOS SWEEP under Windows 95/98, it is vital that you ensure that the virus is not resident in memory. For this, you must disinfect in a 16-bit environment under which you can be sure that the 32-bit virus is completely paralysed.

On Windows 95/98

5. Disinfecting or removing PE executables on other platforms

PE executable files are Windows 95/98/NT/2000/XP programs. On other platforms in the majority of circumstances, you should delete the infected files and replace them from backups, new media or a clean computer.

DOS

NetWare

Contact Sophos technical support.

3.3. Disinfecting PE executables in Linux

UNIX

OS/2

OpenVMS

For details on the use of these command line qualifiers and sample batch files using them, see the Sophos Anti-Virus for OpenVMS manual.

Note: If problems persist, contact Sophos technical support.

[TOP]