Trojan.Sheehy - Removal

Risk Level 1: Very Low

Printer Friendly Page

Discovered: March 2, 2001
Updated: February 13, 2007 11:51:41 AM
Also Known As: Trojan.Sheehy.bat
Type: Trojan Horse


The following instructions pertain to all current and recent Symantec antivirus products, including the Symantec AntiVirus and Norton AntiVirus product lines.
  1. Disable System Restore (Windows Me/XP).
  2. Update the virus definitions.
  3. Run a full system scan. If any files are detected as Trojan.Sheehy, do the following:
    • If the filename is other than Ramsys.exe, delete it.
    • If the filename is Ramsys.exe, and it is located in the \Windows\System folder, do not delete or Quarantine it. You must choose Ignore.
  4. Edit the changes made to the Win.ini and Autoexec.bat files (Windows 95/98/Me).

For specific details on each of these steps, read the following instructions.

1. Disabling System Restore (Windows Me/XP)
If you are running Windows Me or Windows XP, we recommend that you temporarily turn off System Restore. Windows Me/XP uses this feature, which is enabled by default, to restore the files on your computer in case they become damaged. If a virus, worm, or Trojan infects a computer, System Restore may back up the virus, worm, or Trojan on the computer.

Windows prevents outside programs, including antivirus programs, from modifying System Restore. Therefore, antivirus programs or tools cannot remove threats in the System Restore folder. As a result, System Restore has the potential of restoring an infected file on your computer, even after you have cleaned the infected files from all the other locations.

Also, a virus scan may detect a threat in the System Restore folder even though you have removed the threat.

For instructions on how to turn off System Restore, read your Windows documentation, or one of the following articles:
For additional information, and an alternative to disabling Windows Me System Restore, see the Microsoft Knowledge Base article, "Antivirus Tools Cannot Clean Infected Files in the _Restore Folder," Article ID: Q263455.

2. Updating the virus definitions
Symantec Security Response fully tests all the virus definitions for quality assurance before they are posted to our servers. There are two ways to obtain the most recent virus definitions:
  • Running LiveUpdate, which is the easiest way to obtain virus definitions: These virus definitions are posted to the LiveUpdate servers once each week (usually on Wednesdays), unless there is a major virus outbreak. To determine whether definitions for this threat are available by LiveUpdate, refer to the Virus Definitions (LiveUpdate).
  • Downloading the definitions using the Intelligent Updater: The Intelligent Updater virus definitions are posted on U.S. business days (Monday through Friday). You should download the definitions from the Symantec Security Response Web site and manually install them. To determine whether definitions for this threat are available by the Intelligent Updater, refer to the Virus Definitions (Intelligent Updater).

    The Intelligent Updater virus definitions are available: Read "How to update virus definition files using the Intelligent Updater" for detailed instructions.

3. Scanning for and deleting the infected files
  1. Start your Symantec antivirus program and make sure that it is configured to scan all the files.
  2. Run a full system scan.
  3. If any files are detected as Trojan.Sheehy, do the following:
    • If the filename is other than Ramsys.exe, delete it.
    • If the filename is Ramsys.exe, and it is located in the \Windows\System folder, do not delete or Quarantine it. You must choose Ignore.

4. Editing the Win.ini and Autoexec.bat files
If you are running Windows 95/98/Me, follow these steps:
  1. The function you perform depends on your operating system:
    • Windows 95/98: Go to step b.
    • Windows Me: If you are running Windows Me, the Windows Me file-protection process may have made a backup copy of the Win.ini and Autoexec.bat files that you need to edit. If these backup copies exist, they will be in the C:\Windows\Recent folder. Symantec recommends that you delete these files before continuing with the steps in this section. To do this:
      1. Start Windows Explorer.
      2. Browse to and select the C:\Windows\Recent folder.
      3. In the right pane, select the Win.ini and Autoexec.bat files, and delete them. They will be regenerated automatically by Windows.

  2. Click Start, and then click Run.
  3. Type the following, and then click OK.

    edit c:\windows\win.ini

    (The MS-DOS Editor opens.)

    NOTE: If Windows is installed in a different location, make the appropriate path substitution.

  4. Look for a line similar to:

    load=C:\WINDOWS\SYSTEM\RAMSYS.EXE

  5. If this line exists, delete it.
  6. Click File, and then click Save.
  7. Click File, and then click Exit.
  8. Click Start, and then click Run.
  9. Type the following, and then click OK.

    edit c:\autoexec.bat

  10. Look for the following line, and, if found, delete it:

    IF NOT EXIST C:\WINDOWS\SYSTEM\RAMSYS.EXE  DELTREE /Y C:

  11. Click File, and then click Save.
  12. Click File, and then click Exit.


Writeup By: Cary Ng
Search by name
Example: W32.Beagle.AG@mm
Limited Time Offers! Save up to 50%
Windows Vista Security