Help - Search - Members - Calendar
Full Version: A Brief History of Malware Detection
Suggest A Fix PC Support Forums > Security > Malicious Code: Viruses, Trojans, Spyware and Browser HiJacking
HKEd
Some of you may be interested in how this whole HijackThis business started, so here's the story from my perspective. It happened in 1999, when I was a regular poster at VirtualDr. Out of the blue, I was contacted by a fellow member named rmbox who asked if I'd be interested in heping him test some DOS-based programs he was working on. Little did I know at the time that this would be the starting point for malware detection.

A BRIEF HISTORY OF MALWARE DETECTION

In the summer of 1999, a strange message started appearing when some computer users tried to open files with an EXE extension:

"Cannot find [Msrexe/Mueexe/Windos/Win32].exe. This program is needed for opening files of type: Application"

Soon, computer help boards were being swamped by users whose systems were rendered unusable because EXE files could not be opened.

The cause was a new generation of the SubSeven trojan, a more versatile and malicious development of the remote access trojan, NetBus. In its earlier versions, the SubSeven file was activated by appending the file name to the Load= or Run= lines in Win.ini, the Shell=Explorer.exe line in System.ini or writing its startup call to the HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run key in the main body of the Windows registry. This was very difficult for the average user to detect, and most were unaware that their computer and the information stored on it could easily be accessed by outsiders, or that a network of infected systems could be utilised for nefarious purposes, such as Distributed Denial of Service attacks against specific sites.

Ironically, the most versatile development of SubSeven - version 2.1, also known as Gold or SubStealth - was the catalyst for the development of malware detections methods simply because it tried a new kind of trojan activation - the insertion of the trojan file name in the .EXE file type handler: HKEY_CLASSES_ROOT\exefile\shell\open\command. The reason for that was that even if the other registry startup locations were detected and deleted, the trojan file would be activated by opening any file with an EXE extension. At around this time, antivirus programs were beginning to include SubSeven and other trojan patterns in their heuristic technology, so the trojan file name and location became evident when an antivirus program deleted the trojan file itself. As that file name was part of the path to open EXE files, the 'Cannot find...' message appeared when attempting to open any EXE file while the trojan file was missing. Later developments of SubSeven 2.1 allowed random trojan file names to be generated. However, the author of SubSeven, MobMan, and the SubSeven developers had effectively shot themselves in the foot by trying to be too clever with the 'sneaky' startup.

EXE-Fix programs were compiled to restore the registry defaults. By far the most comprehensive of these fixes was EXEFix08, written by a DOS programmer who went by the name of rmbox. EXEFix08 quickly became the standard fix for this infection - it allowed the registry defaults for all registry file extension handlers to be restored (in addition, correctly anticipating the release of other 'sneaky' malware activation methods that used the defaults for other file types such as BAT, COM and JPG. For example, the Blebla worm corrupted 22 file extension handlers, including DOC, XLS and ZIP). For the fix to work, all that needed to be done was to run EXEFix08, then locate and delete the trojan file.

While EXEFix08 solved the immediate problem, SubSeven was just the beginning of the avalanche to come. More and more areas of the arcane Windows registry were identified by malware writers for more and more esoteric startup locations. There was a need for a DOS-based program for Windows 95/98/ME that could enumerate all the known program startup locations of the Windows registry and write them to a text file, enabling helpers to identify where the malware program(s) were being called from. Having finished the development of EXEFix08 (we tested eight versions from v.01 onwards before the final v.08 was released in early 2000), rmbox wrote the first version of StartUp Log for Win 9.x/ME and I continued with the testing and development of the new program.

This was the birth of malware detection as we know it today. StartUp Log was finally made available to the public in the summer of 2000 after further testing and improvements, as well as verification that it worked on Windows 98 as it did on Windows 95. While StartUp Log was in development, rmbox released two tiny programs - Edit-SI and Edit-WI - to simplify the process of dealing with trojan startups in both System.ini and Win.ini.

SubSeven was still the king of the trojans at the time, although Bymer, Qaz, PrettyPark and others were widespread. They all had one thing in common: they wrote their startup calls to the registry (which includes system.ini and win.ini), sometimes very aggressively with multiple startup locations.

Now that malware startups could be enumerated to a text file, helpers had a very powerful tool with which to identify not only the malware involved, but also the various startup locations it was loading from. EXEFix08 could fix the 'signature' (file extension handler) trojans, System.ini and Win.ini could be easily edited with rmbox's tools, but the registry startup calls had to be fixed manually using Windows native Regedit.exe (or a custom REG file).

Malware programmers continued to find and use little-known and little-understood areas of the registry where they could write their malware startup calls to. Startup Log was continually developed during 2000/01 and rmbox also released DOS-Delete for files that were reported as being in use by Windows. DOS-Delete, some would say the predecessor to Option^Explicit's KillBox, ingeniously used a NUL= statement in Wininit.ini to delete the rogue file at reboot as Wininit.ini kicks in very early in the boot process.

June 2000 saw the birth of automated spyware removal with the release of OptOut by Steve Gibson of Gibson Research (grc.com). OptOut was limited in the sense that it only targeted Aureate/Radiate and Conducent Timesink. However, shortly afterwards the first version of Lavasoft's AdAware was released, targeting a wider scope of adware and spyware and incorporating a larger database of known malware. Some time later, Patrick Kolla released Spybot Search & Destroy to add to the helpers' arsenal. With manual and automated detection, these were the 'salad days' for helpers - they knew what they were dealing with, and could easily identify and get rid of new malware almost as soon as it appeared, something the antivirus companies were either unable or unwilling to deal with. The helpers were winning the battle...but not the war as it would turn out.

The introduction of Windows XP in late 2001 was a turning point for all concerned. Arguably, it was the most insecure operating system that Microsoft had ever released. One security expert, on first using XP. likened it to a monolithic trojan such was its ability to attract malware.

StartUp Log, which had been instrumental in helping clean so many Windows DOS-based systems, was rendered ineffective by XP's DOS emulation, and its tortuous and sometimes user-defined paths. The desktop, for example was, no longer located at %SystemRoot%\Windows\Desktop, but %SystemRoot%\Documents & Settings\"User Name"\Desktop. Services were introduced, adding further complexity for the home user, as well as myriad opportunities for malware writers.

But XP's DOS emulation was not what many had feared. In fact, some of the commands had been enhanced with extra switches. This would prove to be very useful for future DOS-based detection programs such as FindNFix and FindIt.

It only takes a few vulnerabilities in the software of an operating system or browser for attacks on it to be successful, and the first release of XP had many 'holes' that could be exploited. Attackers are opportunistic, take the easiest and most convenient route, and exploit the best-known flaws with the most effective and widely available attack tools. They count on organizations not fixing the problems, and they often attack indiscriminately, scanning the Internet for any vulnerable systems. The easy and rapid spread of the Code Red and NIMDA worms in 2001 can be traced to exploitation of unpatched vulnerabilities.

It's hard to believe now that it took the best part of a year from the release of XP before there was an alternative to StartUp Log - especially since all that needed to be done was to rewrite StartUp Log's DOS code in Visual Basic! During this time, helpers had to deal with adware, spyware, worm and trojan infections on XP systems just from Msinfo32 logs. Fixes were made using direct registry editing and on-the-fly REG and BAT files. We were struggling. There was no way of knowing what exactly was loading from where, and the malware writers were finding more 'holes' that could be exploited. The 'salad days' were over. This was the point where we were no longer dealing with script kiddies writing the likes of LoveBug for 'fun' - there was a malicious, even criminal intent on the part of a new breed of coders who were now in it for the money.

[As an aside, the first piece of spyware as we know it was released in mid-1998. It was a toolbar called Dashbar, and its founder and Executive Vice President of Client Services was Joshua A. Abram. After Dash folded, he went to work for Direct-Revenue.com and is listed as the co-owner of none other than VX2.org, abetterinternet.com and Stop-popup-ads-now.com, among others.]

In September of 2002, Merijn Bellekom, a member at Spywareinfo, came up with the first version of StartupList that essentially acted the same as StartUp Log. It worked in Windows 2000 and XP! The 'dark ages' were over and a new era of malware detection began.

A development of StartupList was released shortly afterwards - HijackThis. What differentiated HijackThis from StartupList was the fact that it was not just a text file generator - it was in fact a registry interface. No more direct registry editing - helpers had enumeration of baddies and a fix in just a few clicks! Not many helpers realised the awesome capability that HJT had; we felt comfortable with what we were used to. But HijackThis quickly necame the standard for malware identification and removal, and it continues to be the standard to this day.


END

Copyright HKEd 2005

This document or any part of it may not be used without the author's permission.
the kid
QUOTE(Ironbender @ Aug 4 2009, 11:15 PM) *

1 - Download HijackThis and Rename C:\Program Files\Trend Micro\HijackThis\HijackThis.exe to anything.exe you feel comfortable with (not starting with the word "Hijack"), as new baddies are now able to detect and hide from hijackthis.exe.
Check here if you are unsure on how to do it: http://www.suggestafix.com/index.php?showtopic=16053

Notes:
if you have Spybot S&D installed, please uninstall it. You can reinstall it later.
if you are using Vista, run all fixtools "as Administrator".

2 - Download and run CrapCleaner from http://www.ccleaner.com/
Note: in CCleaner: go to <options/advanced> Uncheck "Only delete files in Windows Temp folders older than 48 hours").

3 - Download Malwarebytes Anti-Malware from http://www.majorgeeks.com/Malwarebyte'...ware_d5756.html to the desktop.

- Double-click on Download_mbam-setup.exe to install the application.
- When the installation begins, follow the prompts and do not make any changes to default settings.
- When installation has finished, make sure you leave both these checked:
- Update Malwarebytes Anti-Malware
- Launch Malwarebytes Anti-Malware
- Then click Finish.

- MBAM will automatically start and you will be asked to update the program before performing a scan. If an update is found, the program will automatically update itself. Press the OK button to close that box and continue.
- On the Scanner tab:
- Make sure the "Perform Full Scan" option is selected.
- Then click on the Scan button.
- The next screen will ask you to select the drives to scan. Leave all the drives selected and click on the Start Scan button.

- The scan will begin and "Scan in progress" will show at the top. It may take some time to complete so please be patient.

When the scan is finished, a message box will say "The scan completed successfully. Click 'Show Results' to display all objects found".
- Click OK to close the message box and continue with the removal process.
- Back at the main Scanner screen, click on the Show Results button to see a list of any malware that was found.
- Make sure that everything is checked, and click Remove Selected.
- When removal is completed, a log report will open in Notepad and you may be prompted to restart your computer. (see Note below)

The log is automatically saved and can be viewed by clicking the Logs tab in MBAM.

Copy and paste the contents of that report in your next reply along with a fresh HijackThis log and exit MBAM.

NB - If MBAM encounters a file that is difficult to remove, you will be presented with 1 of 2 prompts. Click OK to either and let MBAM proceed with the disinfection process and, if asked to restart the computer, please do so immediately.

Start a new topic and post the mbam report along with a fresh HJT log.

Note: Don't think that this pre-clean action has resolved your problem, even if your system seems to be running fine. There may be other baddies/virus hidden.

Chris

the kid
Hello. I am new to the forum but if you have trouble deleting stubborn files you could try unlocker.
http://ccollomb.free.fr/unlocker/
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.