{"id":14,"date":"2022-01-13T22:39:21","date_gmt":"2022-01-13T22:39:21","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/lauramaree\/?p=14"},"modified":"2022-01-13T22:42:55","modified_gmt":"2022-01-13T22:42:55","slug":"pro-tip-dont-do-malware-analysis-directly-on-your-machine","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/lauramaree\/2022\/01\/13\/pro-tip-dont-do-malware-analysis-directly-on-your-machine\/","title":{"rendered":"Pro Tip: Don&#8217;t do Malware Analysis Directly on your Machine."},"content":{"rendered":"\n<p>Some exciting news: the topic I will be focusing on for the Capstone project is malware analysis. This will be a great opportunity to dissect some malicious software, learn from it, gain experience using analysis tools, and report my findings and recommendations. This is all fine and dandy, but there&#8217;s an issue here. Interacting with malware and even having it on your machine could be very harmful and dangerous. So what do we do? <\/p>\n\n\n\n<p>Well, Using virtual machines is not new to me, so I&#8217;m familiar with setting up a VM with VMware. Just doing this is not sufficient due to the risk of the malware escaping to the network your own machine runs on. But after some research, I was able to find a way to define a virtual network separate from my local network with multiple virtual machines. This separate virtual network has not connection to my local network, preventing malware escape.<\/p>\n\n\n\n<p>To set this up, VMware should be installed (you can also create a few VM&#8217;s with your OS of choice). You need to navigate to the <em>Virtual Network Editor<\/em> either via the search bar in Windows, <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1009\" height=\"855\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image.png\" alt=\"\" class=\"wp-image-15\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image.png 1009w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-300x254.png 300w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-768x651.png 768w\" sizes=\"auto, (max-width: 1009px) 100vw, 1009px\" \/><figcaption>Search for Virtual Network Editor App<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>or in VMware via <em>Edit &gt; Virtual Network Editor<\/em>. <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"867\" height=\"593\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-1.png\" alt=\"\" class=\"wp-image-16\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-1.png 867w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-1-300x205.png 300w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-1-768x525.png 768w\" sizes=\"auto, (max-width: 867px) 100vw, 867px\" \/><figcaption>Virtual Network Editor App via VMware<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Now, it&#8217;s really important to either choose a network not being used, or add a new network we can edit the specifications of. Here, I decided to add the VMnet4 network via <em>Add Network<\/em>:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"695\" height=\"657\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-2.png\" alt=\"\" class=\"wp-image-17\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-2.png 695w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-2-300x284.png 300w\" sizes=\"auto, (max-width: 695px) 100vw, 695px\" \/><figcaption>Select\/create VMnet not currently being used<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>Now, we can edit the VMnet information and specifications to fit our use case. First, selected <em>Host-only<\/em> to ensure the virtual network does not connect to the external local network. Second, uncheck <em>Connect a host virtual adapter to this network<\/em> as it is not needed. Lastly, we want to make sure <em>Use local DHCP service to distribute IP address to VMs<\/em> is checked so that IP&#8217;s are assigned automatically to our VM&#8217;s via DHCP (Dynamic Host Configuration Protocol). Select <em>OK<\/em> to setup this new virtual network.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full is-resized\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-3.png\" alt=\"\" class=\"wp-image-18\" width=\"690\" height=\"338\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-3.png 694w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-3-300x147.png 300w\" sizes=\"auto, (max-width: 690px) 100vw, 690px\" \/><figcaption>Edit options for custom VMnet<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>So the network is set up, but we need to assign the VM&#8217;s that we have created to use that network, and that network only. In VMware, before starting a VM, go to <em>VM &gt; Settings<\/em>:<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"517\" height=\"378\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-4.png\" alt=\"\" class=\"wp-image-19\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-4.png 517w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-4-300x219.png 300w\" sizes=\"auto, (max-width: 517px) 100vw, 517px\" \/><figcaption>Navigate to VM Settings<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>This will bring up a Settings window where you can navigate to the <em>Network Adapter <\/em>menu. In this menu, under <em>Network connection<\/em>, select <em>Custom<\/em> and the virtual network we just set up (in this case <em>VMnet4<\/em>). Select <em>OK<\/em>, and the VM is now on our custom virtual network! <\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"885\" height=\"903\" src=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-6.png\" alt=\"\" class=\"wp-image-21\" srcset=\"https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-6.png 885w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-6-294x300.png 294w, https:\/\/osu-wams-blogs-uploads.s3.amazonaws.com\/blogs.dir\/5107\/files\/2022\/01\/image-6-768x784.png 768w\" sizes=\"auto, (max-width: 885px) 100vw, 885px\" \/><figcaption>Select custom VMnet to run on<\/figcaption><\/figure><\/div>\n\n\n\n<p><\/p>\n\n\n\n<p>We can now feel confident that our VM is on a virtual network that is isolated from our local network and that the malware we will be interacting with will stay on this same virtual network. <\/p>\n\n\n\n<p><\/p>\n\n\n\n<p>References:<\/p>\n\n\n\n<p>L. Zeltser, \u201cVirtualized network isolation for a malware analysis lab,\u201d <em>Lenny Zeltser Content<\/em>, 09-Feb-2015. [Online]. Available: https:\/\/zeltser.com\/vmware-network-isolation-for-malware-analysis\/. [Accessed: 13-Jan-2022].<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Some exciting news: the topic I will be focusing on for the Capstone project is malware analysis. This will be a great opportunity to dissect some malicious software, learn from it, gain experience using analysis tools, and report my findings and recommendations. This is all fine and dandy, but there&#8217;s an issue here. Interacting with &hellip; <a href=\"https:\/\/blogs.oregonstate.edu\/lauramaree\/2022\/01\/13\/pro-tip-dont-do-malware-analysis-directly-on-your-machine\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Pro Tip: Don&#8217;t do Malware Analysis Directly on your Machine.<\/span><\/a><\/p>\n","protected":false},"author":11902,"featured_media":26,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-14","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/posts\/14","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/users\/11902"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/comments?post=14"}],"version-history":[{"count":2,"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/posts\/14\/revisions"}],"predecessor-version":[{"id":23,"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/posts\/14\/revisions\/23"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/media\/26"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/media?parent=14"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/categories?post=14"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/lauramaree\/wp-json\/wp\/v2\/tags?post=14"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}