Welcome Guest. | Log In | Register | Membership Benefits
Dark Reading's evil-bytes Weblog

Topics:   Evil Bytes
  • |   Email this page E-mail
  • |  Print Print
  • |   Bookmark and Share

Detecting Viral Persistence

Persistence is something that malware strives to achieve. If malware cannot survive the monthly reboot due to the Microsoft patch cycle or the usual Windows troubleshooting process (reboot first!), then it's going to have a short lifetime and little effectiveness. There are a few exceptions to the rule in terms of persistence.

Dec 09, 2009 | 03:00 PM | 

By John H. Sawyer
Dark Reading
Persistence is something that malware strives to achieve. If malware cannot survive the monthly reboot due to the Microsoft patch cycle or the usual Windows troubleshooting process (reboot first!), then it's going to have a short lifetime and little effectiveness. There are a few exceptions to the rule in terms of persistence.Things like "downloaders," whose sole function is to grab additional pieces of malware and run them, don't need to stay resident after they've done their job. However, the malware retrieved by the downloader almost always includes functionality for itself to stay resident on a system. A recent experience with a very persistent malware that I'd read about reminded me of a recent blog that listed startup locations in Windows.

"Windows Startup Locations" at Immutable Security shows a list of locations in the Registry that can be used by malware to start upon boot. The list was pulled from the Microsoft Autoruns utility and is pretty comprehensive. There are still a few locations missing like "autoexec.bat" but the location used by the malware I saw last week is something that just about every "startup" checking tool with miss.

Remember the Master Boot Record (MBR)? Years ago, in the days of DOS, we had boot sector viruses that targeted the MBR because it's the first code to be loaded after the firmware boots. It was a trend that died off, but now we're seeing it again where modern malware leveraging the MBR to stay stealthy and avoid detection by antivirus and tools looking for changes in the common startup locations.

Last week, I helped a friend with an infected system that had a new variant of Mebroot. It was a multi-user system similar to what you'd find in a public library where all changes to the system were wiped out when the computer system was rebooted. There are several solutions that do this -- Microsoft Steady State and Faronics Deep Freeze come to mind. What's cool (or maybe I should really say "evil") about this infection is that because Mebroot infects the boot sector, Steady State and Deep Freeze are ineffective at reversing the infection.

This was one of those incidents where it would have gone undetected for a long time had my friend not had multiple layers of defense in place. In this particular case, activity in the intrusion detection system (IDS) led to the investigation; scans with multiple AV products detected nothing; and it was through carving out the MBR with FTK Imager and uploading it to VirusTotal that we confirmed it was indeed infected.

As many times as you will hear the terms "defense in depth" and "layered security" throughout your career, it's something we must practice and live by as a security professional. It also helps to know where to look, which is why tools like Autoruns can be handy at determining if a system is infected (unless it's Mebroot).

John H. Sawyer is a senior security engineer on the IT Security Team at the University of Florida. The views and opinions expressed in this blog are his own and do not represent the views and opinions of the UF IT Security Team or the University of Florida. When John's not fighting flaming, malware-infested machines or performing autopsies on blitzed boxes, he can usually be found hanging with his family, bouncing a baby on one knee and balancing a laptop on the other. Special to Dark Reading.



Currently we allow the following HTML tags in comments:

Single tags

These tags can be used alone and don't need an ending tag.

<br> Defines a single line break

<hr> Defines a horizontal line

Matching tags

These require an ending tag - e.g. <i>italic text</i>

<a> Defines an anchor

<b> Defines bold text

<big> Defines big text

<blockquote> Defines a long quotation

<caption> Defines a table caption

<cite> Defines a citation

<code> Defines computer code text

<em> Defines emphasized text

<fieldset> Defines a border around elements in a form

<h1> This is heading 1

<h2> This is heading 2

<h3> This is heading 3

<h4> This is heading 4

<h5> This is heading 5

<h6> This is heading 6

<i> Defines italic text

<p> Defines a paragraph

<pre> Defines preformatted text

<q> Defines a short quotation

<samp> Defines sample computer code text

<small> Defines small text

<span> Defines a section in a document

<s> Defines strikethrough text

<strike> Defines strikethrough text

<strong> Defines strong text

<sub> Defines subscripted text

<sup> Defines superscripted text

<u> Defines underlined text

Dark Reading encourages readers to engage in spirited, healthy debate, including taking us to task. However, Dark Reading moderates all comments posted to our site, and reserves the right to modify or remove any content that it determines to be derogatory, offensive, inflammatory, vulgar, irrelevant/off-topic, racist or obvious marketing/SPAM. Dark Reading further reserves the right to disable the profile of any commenter participating in said activities.

Disqus Tips To upload an avatar photo, first complete your Disqus profile. | View the list of supported HTML tags you can use to style comments. | Please read our commenting policy.
Subscribe to RSS









  1. Cookies, Social Media And FireSheep
  2. SMB Guide To Credit Card Regulations, Part 2: The Low-Hanging Fruit
  3. HP And The Scary Corporate Fifth Column Concept
  4. Taking USB Attacks To The Next Level
  5. NoSQL: Not Much, Anyway
  1. Taking Cybersecurity Lessons To The Bank
  2. Researchers See Real-Time Phishing Jump
  3. 'BlackSheep' Sniffs Out Firesheep WiFi-Hacking
  4. Slideshow: Ten Free Security Monitoring Tools
  5. A Different Spin On Sleuthing Stuxnet
  6. M&A Activity Muddles Database Security
  1. Secure Managed Web Hosting Saves 960.gs from Malicious Hackers
  2. Access Governance as a Business Service: An Integrated Strategy for Automation with ITSM
  3. Business Driven Access Management and Governance: Simplifying the Delivery and Governance of Access Throughout
 
 


 
  Ars Technica
Boing Boing
Channel 9 Forums
CRN Blogs
Dr.Dobb's Portal: Blogs
Engadget
Gizmodo
GrokLaw
  Lifehacker
Schneier on Security
Slashdot
TechCrunch
Techdirt
Techmeme
Valleywag
 
  February 2012
January 2012
December 2011
November 2011
October 2011
September 2011
August 2011
July 2011
June 2011
May 2011
April 2011
March 2011
February 2011
January 2011
December 2010
November 2010
October 2010
September 2010
August 2010
July 2010
June 2010
  May 2010
April 2010
March 2010
February 2010
January 2010
December 2009
November 2009
October 2009
September 2009
August 2009
July 2009
June 2009
May 2009
April 2009
March 2009
February 2009
January 2009
December 2008
November 2008
October 2008
September 2008