{"id":1815,"date":"2011-06-18T16:00:36","date_gmt":"2011-06-18T16:00:36","guid":{"rendered":"http:\/\/really.zonky.org\/?p=1815"},"modified":"2011-06-19T12:04:36","modified_gmt":"2011-06-19T12:04:36","slug":"pc-malware-handling","status":"publish","type":"post","link":"https:\/\/really.zonky.org\/?p=1815","title":{"rendered":"PC Malware Handling"},"content":{"rendered":"<p>This is a series of notes on dealing with PC malware (viruses, worms and the like) gathered because I&#8217;m looking into it and published as a way of reminding myself about this stuff. Bear in mind that I&#8217;m not an expert but neither am I a complete dunce &#8211; I&#8217;m normally a Unix or Linux person but I&#8217;ve been keeping half an eye on Windows infections for years.<\/p>\n<p>Some links to tools are contained within. However you should be aware that tool recommendations change over time; you will need to check how outdated this document is before following any recommendations blindly.<\/p>\n<p>At present this blog entry is a work in progress &#8230; lots of testing needs to be done before being confident this is right.<\/p>\n<h2>Cleanup Process<\/h2>\n<p>This is not :-<\/p>\n<ol>\n<li>How to approach this forensically &#8211; if you&#8217;re dealing with an investigation, it&#8217;s a whole other ball game and you probably need professional assistance to avoid corrupting evidence.<\/li>\n<li>A technical guide as to which tools to use.<\/li>\n<\/ol>\n<h3>1. For The Ultra Cautious Or When Handling Real Important Data<\/h3>\n<p>The process of removal can be destructive, and in the worst cases you can end up cleaning the malware and ending up with a brick. So make an image of the hard disk as it is. Two basic ways this can be done :-<\/p>\n<ol>\n<li>Removing the hard disk from the infected machine, attaching to an appropriate machine (USB-&gt;SATA, USB-&gt;IDE\u00a0converters are handy here), and making an image of the disk.<\/li>\n<li>Booting off a &#8220;rescue&#8221; CD on the infected machine, and imaging the hard disk to a network share of some kind. This is the preferred option.<\/li>\n<\/ol>\n<p>This will be <em>slow<\/em>. So be it. Cleaning an infected PC is not going to be a quick job whatever you do. The best you can hope for is that there are many periods where you can leave it churning away and get on with something else.<\/p>\n<h3>2. Boot A Rescue CD<\/h3>\n<p>There are those who tell you that there is no need to boot off a known uninfected disk to clean an infected machine; their anti-malware\/virus product can clean an infected machine &#8220;live&#8221;. There are others who claim that the only way to be sure is to boot off that disk and clean the machine that way. Both are wrong.<\/p>\n<p>If you are paranoid (and in the presence of malware paranoia is fully justifiable), you will do both.<\/p>\n<h3>3. Boot Infected Machine and Clean<\/h3>\n<p>As suggested previously after booting off a rescue disk and cleaning, boot the infected machine and clean again.<\/p>\n<h2>Tools<\/h2>\n<p>The following is a list of rescue CD&#8217;s that have been suggested :-<\/p>\n<ul>\n<li><a href=\"http:\/\/www.ubcd4win.com\/\">UBD4Win<\/a>. Has to be &#8220;built&#8221; with the assistance of an XP installation; somewhat tedious but it isn&#8217;t the end of the world. However it does need preparing in advance &#8211; building a rescue CD with the assistance of an infected machine isn&#8217;t the most sensible idea!<\/li>\n<li><a href=\"http:\/\/www.knopper.net\/knoppix\/index-en.html\">Knoppix<\/a>. Graphical, pretty, feature packed, but seems to be lacking in anti-malware tools (for instance the only AV tool included is Clam).<\/li>\n<li><a href=\"http:\/\/trinityhome.org\/Home\/index.php?wpid=1&amp;front_id=12\">Trinity Rescue Disk<\/a>. Menu interface. Virus definitions update over the net; choice of Clam, F-Prot, Bitdefender, Vexira, AVast (need to obtain license key). Various other utilities.<\/li>\n<li><a href=\"http:\/\/www.f-secure.com\/en_EMEA-Labs\/security-threats\/tools\/rescue-cd\/\">F-Secure Rescue CD<\/a>.<\/li>\n<\/ul>\n<p>Some of the above are Windows based; some are Linux based. The choice of which to use should be based on <em>results<\/em> not whether they tickle your prejudices (or mine!).<\/p>\n<p>The following is a list of &#8220;live&#8221; tools to be installed that have been suggested :-<\/p>\n<ul>\n<li><a href=\"http:\/\/www.malwarebytes.org\/\">Malwarebytes<\/a>.<\/li>\n<li><a href=\"http:\/\/www.avira.com\/en\/index\">AntiVir<\/a>.<\/li>\n<\/ul>\n<h2>Asides<\/h2>\n<p>Nothing to do with the main subject. Merely some notes worth mentioning.<\/p>\n<p>It seems that at least some malware can detect it is running within a virtual environment. In some cases it ceases to do anything, and in others may try to &#8220;break out&#8221;. This indicates that analysing malware within a virtual environment may not give sensible results, and in some cases may be dangerous! That is not to say that using a virtual environment is no longer of any use, but you may need to take special case such as running the virtual environment under Linux and\/or ESX rather than Windows. And be careful about negative results.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>This is a series of notes on dealing with PC malware (viruses, worms and the like) gathered because I&#8217;m looking into it and published as a way of reminding myself about this stuff. Bear in mind that I&#8217;m not an expert but neither am I a complete dunce &#8211; I&#8217;m normally a Unix or Linux <a href='https:\/\/really.zonky.org\/?p=1815' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2},"_share_on_mastodon":"0"},"categories":[489,226],"tags":[43,817,844,370],"class_list":["post-1815","post","type-post","status-publish","format-standard","hentry","category-security","category-working-notes","tag-linux","tag-malware","tag-rescue","tag-windows","category-489-id","category-226-id","post-seq-1","post-parity-odd","meta-position-corners","fix"],"share_on_mastodon":{"url":"","error":""},"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1f2KI-th","_links":{"self":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/1815","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1815"}],"version-history":[{"count":9,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/1815\/revisions"}],"predecessor-version":[{"id":1819,"href":"https:\/\/really.zonky.org\/index.php?rest_route=\/wp\/v2\/posts\/1815\/revisions\/1819"}],"wp:attachment":[{"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1815"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1815"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/really.zonky.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1815"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}