<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-5526290249231274316</id><updated>2011-07-29T00:34:08.581-07:00</updated><title type='text'>jha-security</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jha-security.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jha-security.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Somesh</name><uri>http://www.blogger.com/profile/09031833559403573319</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-5526290249231274316.post-4346451608152273162</id><published>2008-06-06T07:49:00.000-07:00</published><updated>2008-06-06T11:31:56.405-07:00</updated><title type='text'>Malware Trend in 2007</title><content type='html'>&lt;pre style="font-family: times new roman;" wrap=""&gt;&lt;span style="font-size:130%;"&gt;I read the report IBM Internet Security System X-Force 2007 Trend&lt;br /&gt;Statistics. This is a report describing trends for various threats in 2007.&lt;br /&gt;This team has been tracking trends since 2000. I found the report&lt;br /&gt;to be quite interesting. In the rest of this post, I highlight some&lt;br /&gt;of the interesting points from the report and what they mean in the&lt;br /&gt;context of malware detection.&lt;br /&gt;&lt;br /&gt;(I) The X-Force team reports continued growth in Web browser exploitation. This&lt;br /&gt;clearly shows that the infection vector is changing to the Web. Earlier&lt;br /&gt;the primary infection vectors were email and the network. Therefore,&lt;br /&gt;for detecting malware, drive-by-downloads (DBD) and other threats targeted at hacking through the Web browser need a lot of attention.&lt;br /&gt;&lt;br /&gt;(II) X-Force also reports a marked increase in obfuscated exploits, i.e.,&lt;br /&gt;exploits that use various code obfuscation techiques (such as encryption).&lt;br /&gt;Here is a quote, "X-Force estimated that nearly 80 percent of Web exploits&lt;br /&gt;used obfuscation and/or self decryption ... By the end of 2007, X-Force&lt;br /&gt;believed this rate had reached 100 percent, ...". This means that going&lt;br /&gt;forward, Web exploits will increasingly harbor indiscernible code rending signature-based techniques less effective. Advanced&lt;br /&gt;techniques (such as behavior-based detection) are clearly needed to detect&lt;br /&gt;such malware. To exacerbate the situation the X-Force report stated that&lt;br /&gt;there was a 30% increase in new malware samples in 2007 over 2006. This&lt;br /&gt;further drives home the point that signature-based detectors will have trouble&lt;br /&gt;in keeping up with the number of malware as they cannot detect new threats.&lt;br /&gt;&lt;br /&gt;(III) There was another very interesting point made by the report. Modern&lt;br /&gt;malware use features from various types of classic malware (such as viruses, worms,&lt;br /&gt;and spyware) by pulling the successful features of each into new strains. To quote the report, "Modern malware is now the digital equivalent&lt;br /&gt;of the Swiss Army knife, and 2007 data continues to support this." This trend&lt;br /&gt;also indicates that the behavior of malware is becoming more sophisticated, which&lt;br /&gt;again supports my claim that detection techniques based on analyzing behavior are&lt;br /&gt;better suited to handle malware of the future. Another interesting tidbit from the&lt;br /&gt;report: "Trojans make up the largest class of malware in 2007 as opposed to downloaders,&lt;br /&gt;which were the largest category in 2006." Recall that a Trojan appears to be a&lt;br /&gt;legitimate file with some hidden functionality (for example, that of a rootkit).&lt;br /&gt;Trojans are historically a problematic class of malware for signature-based&lt;br /&gt;detection.&lt;br /&gt;&lt;br /&gt;Overall, I found the report to be very interesting. Read it for yourself.&lt;br /&gt;You can find the report &lt;a href="http://www.iss.net/x-force_report_images/2008/index.html"&gt;here&lt;/a&gt;.&lt;/span&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5526290249231274316-4346451608152273162?l=jha-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jha-security.blogspot.com/feeds/4346451608152273162/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5526290249231274316&amp;postID=4346451608152273162' title='36 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/4346451608152273162'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/4346451608152273162'/><link rel='alternate' type='text/html' href='http://jha-security.blogspot.com/2008/06/malware-trend-in-2007.html' title='Malware Trend in 2007'/><author><name>Somesh</name><uri>http://www.blogger.com/profile/09031833559403573319</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>36</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5526290249231274316.post-1915693152686184556</id><published>2008-04-23T15:09:00.000-07:00</published><updated>2008-04-23T15:11:25.631-07:00</updated><title type='text'>Zero Day Threat by Acohido and Swartz</title><content type='html'>I read the book &lt;span style="font-style: italic;"&gt;Zero Day Threat (ZDT)&lt;/span&gt; by &lt;span style="font-weight: bold;"&gt;Byron Acohido and Jon Swartz.&lt;/span&gt; I really liked the book! Zero Day Threat is about the underground cyber-economy. It makes some surprising points grounded in real truths. I liked that the book paints a complete picture, i.e., how malware,&lt;br /&gt;identity theft, and "drop off" gangs collaborate to facilitate&lt;br /&gt;a well oiled cyber-economy. Since my research area is security,&lt;br /&gt;I was very familiar with the different types of malware brought up in Zero Day Threat. However, this book gave me a complete picture of the problem.&lt;br /&gt;&lt;br /&gt;I particularly appreciated two features of the book:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Structure: &lt;/span&gt;Each chapter is broken into three sections: exploiters,&lt;br /&gt;enablers, and expeditors. Exploiter sections focus on crooks (such&lt;br /&gt;as scam artists and drug addicts) and how they benefit from the&lt;br /&gt;underground economy. The Enablers sections focus on credit card&lt;br /&gt;companies, banks, and credit bureaus, and how their current practices&lt;br /&gt;enable the underground cyber-economy. Expediters&lt;br /&gt;are guys (good and bad) that allow the cybercrooks to exploit&lt;br /&gt;vulnerabilities in an expeditious manner. I thought this structure&lt;br /&gt;was just brilliant! It really brings out the correlation between&lt;br /&gt;various factors and actors that enable the underground cyber-economy.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Narrative Style:&lt;/span&gt; I really enjoyed various anecdotes in the book.&lt;br /&gt;There are several stories about people being scammed or getting&lt;br /&gt;lured into the profitable cyber-underground. For example, there is a story of&lt;br /&gt;a "drop off" gang in Edmonton which is narrated throughout the&lt;br /&gt;book. These anecdotes make the book very interesting and provide&lt;br /&gt;a "human side" to the cyber-underground.&lt;br /&gt;&lt;br /&gt;I highly recommend this book.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5526290249231274316-1915693152686184556?l=jha-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jha-security.blogspot.com/feeds/1915693152686184556/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5526290249231274316&amp;postID=1915693152686184556' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/1915693152686184556'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/1915693152686184556'/><link rel='alternate' type='text/html' href='http://jha-security.blogspot.com/2008/04/zero-day-threat-by-acohido-and-swartz.html' title='Zero Day Threat by Acohido and Swartz'/><author><name>Somesh</name><uri>http://www.blogger.com/profile/09031833559403573319</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5526290249231274316.post-3168820621833181235</id><published>2008-03-19T10:54:00.000-07:00</published><updated>2008-03-19T11:06:14.052-07:00</updated><title type='text'>Botnets in USA Today</title><content type='html'>I  got a call from Byron Acohido over at the USA Today last weekend, &lt;br /&gt;and we had an interesting talk about botnets. Byron and Jon Swartz ended &lt;br /&gt;up writing an article about botnets which appeared as the cover story&lt;br /&gt;in the Money section of the USA Today on March 17, 2008.  Here's a link to the full &lt;br /&gt;story (&lt;a href="http://www.usatoday.com/money/industries/technology/2008-03-16-computer-botnets_N.htm"&gt;link&lt;/a&gt;). I found the entire article to be a fascinating read&lt;br /&gt;on the nature of botnets. Here are some of the highlights, but&lt;br /&gt;definitely go and read the entire article.&lt;br /&gt;&lt;ul&gt;&lt;li&gt;On a typical day, 40% of the 800 million computers connected to the Internet are bots engaged in various nefarious activities, such as spamming, stealing sensitive data, and engaging in denial-of-service attacks. Think about it. Approximately 320 million computers are engaged these illicit actiivities!&lt;/li&gt;&lt;li&gt;Later on in the article they describe various features of &lt;span style="font-style: italic;"&gt;Storm&lt;/span&gt;, the state-of-the-art for botnets. Storm introduced various innovations into the bot landscape, such as using P2P style communication to converse with the bots and encrypting the &lt;span style="font-style: italic;"&gt;command-and-control (C&amp;amp;C) &lt;/span&gt;traffic. Command-and-control is the traffic from the bot-herder to the bots instructing them to perform various nefarious activities. Note that this means that various network-based botnet solutions that simply look for centralized C&amp;amp;C communication will not work. Moreover, encrypted traffic is a major problem for the network-based solutions. See my earlier blog where I argue that we should move to a cooperative solution. This is looking like a very good idea. Storm also has a self-defense mechanism, i.e., anyone trying to probe the botnet is punished with a denial-of-service attack. I found this self-defense mechanism of Storm to be very interesting.&lt;/li&gt;&lt;/ul&gt;Overall a fascinating article!&lt;br /&gt;I plan to drop by Byron's book signing at the &lt;a href="http://www.rsaconference.com/"&gt;RSA Conference&lt;/a&gt; in San &lt;br /&gt;Francisco on April 7th. Byron also has an interesting &lt;a href="http://zerodaythreat.com/"&gt;blog&lt;/a&gt; which is related to the&lt;br /&gt;material in the book.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5526290249231274316-3168820621833181235?l=jha-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jha-security.blogspot.com/feeds/3168820621833181235/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5526290249231274316&amp;postID=3168820621833181235' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/3168820621833181235'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/3168820621833181235'/><link rel='alternate' type='text/html' href='http://jha-security.blogspot.com/2008/03/botnets-in-usa-today.html' title='Botnets in USA Today'/><author><name>Somesh</name><uri>http://www.blogger.com/profile/09031833559403573319</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5526290249231274316.post-9007463059731604206</id><published>2008-03-05T12:23:00.000-08:00</published><updated>2008-03-05T12:35:32.783-08:00</updated><title type='text'>Model Checking and Security</title><content type='html'>Model checking is a technique of verifying temporal properties of finite-state systems. One of&lt;br /&gt;the attractive features of model checking over other techniques (such as theorem proving)&lt;br /&gt;is that if a property is not true, a model checker provides a counter-example which&lt;br /&gt;explains why the property is not true. Inventors of model checking, Edmund Clarke,&lt;br /&gt;Allen Emerson, and Joseph Sifakis, won the 2008 ACM Turing award (see the announcement &lt;a href="http://www.acm.org/press-room/news-releases/turing-award-07/"&gt;here&lt;/a&gt;). I have a personal connection to two of the recipients. Edmund Clarke was my adviser&lt;br /&gt;at Carnegie Mellon, and Allen Emerson and I have collaborated on few projects and he&lt;br /&gt;has supported me through out my career.&lt;br /&gt;&lt;br /&gt;In this note I try to summarize various applications of model checking to security.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Protocol verification&lt;/span&gt;: Protocols in the realm of security (henceforth referred to&lt;br /&gt;as security protocols) are very tricky to get correct. For&lt;br /&gt;example, flaws in authentication protocols have been discovered several years after they have been published. Techniques based on model checking have been extensively used to verify these protocols. The tricky part in applying these techniques for verifying security protocols is&lt;br /&gt;modeling the capabilities of the attacker. Gavin Lowe used the FDR model checker to find&lt;br /&gt;a subtle attack on the Needham-Schroeder authentication protocol (this&lt;br /&gt;publication can found &lt;a href="http://web.comlab.ox.ac.uk/oucl/work/gavin.lowe/Publications.html"&gt;here&lt;/a&gt;). Following Lowe's work there&lt;br /&gt;was a flurry of activity on this topic. Interested readers can look at the proceedings of&lt;br /&gt;the Computer Security Foundations Symposium (&lt;a href="http://www.cylab.cmu.edu/CSF2008/"&gt;CSF&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Vulnerability assessment&lt;/span&gt;: Imagine you are given an enterprise network with various components (firewalls, routers, and Intrusion Prevention Systems (IPSs)).&lt;br /&gt;Vulnerability assessment tries to ascertain how an attacker can penetrate the specified network. Vulnerability assesment is crucial in updating policies of various security appliances (such as firewalls and IPSs) and ascertaining the risk of various decisions. Traditionally, vulnerability assessment has been  performed by red teams. Red teaming is a very valuable activity but can provide no guarantees that the entire state space of vulnerabilities has been explored. I along with (Oleg Sheyner and Jeannette Wing) explored techniques based on model checking for vulnerability assessment. We formally specify the network and express the negation of the attackers goal (e.g., attacker gets  root access on a critical server) as a property to be verified. If&lt;br /&gt;the specified network is vulnerable, then the model checker will output a counter-example (which is an attack on the network). The innovation we devised was to output the set of all&lt;br /&gt;counter-examples or attacks as an attack graph, which is  succinct representation of all attacks on the network.   Analysis of the attack graph can provide a basis for vulnerability assessment. This paper can be downloaded &lt;a href="http://pages.cs.wisc.edu/%7Ejha/jha-papers/security/oakland_2001.html"&gt;here&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Other applications:&lt;/span&gt; There are several problems in security that can be addressed using model checking.  For example, I and &lt;a href="http://pages.cs.wisc.edu/%7Ereps/"&gt;Tom Reps&lt;/a&gt; have used model checking properties to analyze properties of security policies in trust-management systems. &lt;a href="http://www.cs.purdue.edu/homes/ninghui/"&gt;Ninghui Li&lt;/a&gt; and his collaborators have used  techniques based on model checking to analyze several classes of security properties.&lt;br /&gt;In the context of security, the advantage model checking has over other techniques (such as&lt;br /&gt;testing) is that it exhaustively covers the state-space. After all, if you just have one&lt;br /&gt;vulnerability, an attacker will exploit that vulnerability, i.e., an attacker just needs one&lt;br /&gt;door to get through your system. Thus the completeness guarantee that a model checker provides is very valuable in the context of security.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5526290249231274316-9007463059731604206?l=jha-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jha-security.blogspot.com/feeds/9007463059731604206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5526290249231274316&amp;postID=9007463059731604206' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/9007463059731604206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/9007463059731604206'/><link rel='alternate' type='text/html' href='http://jha-security.blogspot.com/2008/03/model-checking-and-security.html' title='Model Checking and Security'/><author><name>Somesh</name><uri>http://www.blogger.com/profile/09031833559403573319</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5526290249231274316.post-1373170370603513206</id><published>2008-02-13T13:23:00.000-08:00</published><updated>2008-02-13T13:36:39.880-08:00</updated><title type='text'>Cooperating Detectors</title><content type='html'>A malware detector tries to determine whether a program is malicious (examples&lt;br /&gt;of malicious programs are drive-by-downloads, botnets, and keyloggers).&lt;br /&gt;Malware detection is primarily performed at two vantage points: host and&lt;br /&gt;network. This post explains why cooperation between host-based and network-&lt;br /&gt;based detectors is a good thing.&lt;br /&gt;&lt;br /&gt;Traditionally, detection has been performed either at the network or host level, but&lt;br /&gt;not both. First, let me examine both approaches separately.&lt;br /&gt;&lt;br /&gt;A network-based detector monitors events by examining a session or&lt;br /&gt;network flow and tries to determine whether it is malicious.  The&lt;br /&gt;advantage of a network-based detector is ease of deployment -- there&lt;br /&gt;are not that many points of deployment for a network-based detector&lt;br /&gt;(typically they are deployed behind border routers).&lt;br /&gt;&lt;br /&gt;Unfortunately, network-based detectors have a limited view of each&lt;br /&gt;network session. In fact, if a session happens to be&lt;br /&gt;encrypted such as is common with VPNs, Skype, and some bots, a&lt;br /&gt;network-based detector is essentially blind. For example, a botmaster&lt;br /&gt;can hide its communication with the bots by simply encrypting the session.&lt;br /&gt;&lt;br /&gt;By contrast, host-based detectors have a more comprehensive view of system activities, i.e.,&lt;br /&gt;they have the potential to observe every event at the host, including malicious ones. However, the major drawback of a host-based detector is that it has to be widely deployed. Typically in a managed&lt;br /&gt;network (such as in an enterprise), a host-based detector has to be deployed at&lt;br /&gt;every host.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Cooperation between host-based and network-based detectors can potentially&lt;br /&gt;address the shortcomings of each detector. I've come up with three possible scenarios.&lt;br /&gt;&lt;br /&gt;1) &lt;span style="font-style: italic;"&gt;Host-based detector helping the network-based detector&lt;/span&gt;.&lt;br /&gt;A network-based detector can pull alerts from a host-based&lt;br /&gt;detector and a host-based detector can push alerts to a network-based&lt;br /&gt;detector. This is a simple solution and I suspect the easiest&lt;br /&gt;scenario for cooperation.&lt;br /&gt;&lt;br /&gt;2) &lt;span style="font-style: italic;"&gt;Queue up suspicious activity on a virtual machine.&lt;/span&gt;&lt;br /&gt;If a network-based detector determines that a session is&lt;br /&gt;"suspicious," it can divert the suspicious traffic to a virtual machine&lt;br /&gt;with a host-based detector for more in-depth analysis. The trick here&lt;br /&gt;is figuring out what events are indeed "suspicious" (you do not want&lt;br /&gt;too much traffic to go through the "slow path" corresponding to a&lt;br /&gt;host-based detector). There is already a&lt;br /&gt;startup called &lt;a href="http://www.fireeye.com"&gt;Fireeye&lt;/a&gt; adapting this solution. I find this line of work quite intriguing.&lt;br /&gt;&lt;br /&gt;3) &lt;span style="font-style: italic;"&gt;Pushing signatures.&lt;/span&gt;&lt;br /&gt;This third scenario has been explored quite thoroughly in academic&lt;br /&gt;literature. It involves the cooperation of host-based and network-based detectors to&lt;br /&gt;push signatures for malware in real-time. For example, if a host-&lt;br /&gt;based detector recognizes an attack, it pushes out a signature to a&lt;br /&gt;network-based detector. The advantage of this&lt;br /&gt;approach is that, by updating a network-based detector, an entire&lt;br /&gt;enterprise can be protected against that particular threat.  However, in my&lt;br /&gt;view this is not a good approach in the long run. Hackers are creating malware variants at&lt;br /&gt;an alarming rate and signatures won't be able to keep up.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5526290249231274316-1373170370603513206?l=jha-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jha-security.blogspot.com/feeds/1373170370603513206/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5526290249231274316&amp;postID=1373170370603513206' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/1373170370603513206'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/1373170370603513206'/><link rel='alternate' type='text/html' href='http://jha-security.blogspot.com/2008/02/cooperating-detectors.html' title='Cooperating Detectors'/><author><name>Somesh</name><uri>http://www.blogger.com/profile/09031833559403573319</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-5526290249231274316.post-5782494202700726876</id><published>2008-01-30T13:28:00.000-08:00</published><updated>2008-02-04T09:34:21.865-08:00</updated><title type='text'>Case for kernel-level detection</title><content type='html'>&lt;span style="font-style: italic;"&gt;Why kernel-level detection?&lt;/span&gt;&lt;br /&gt;These are my thoughts on why malware detection should performed at the&lt;br /&gt;kernel level. In general, the lower in the system hierarchy your&lt;br /&gt;detector resides, the harder it is for an attacker to evade your detector.&lt;br /&gt;For example, if a detector uses system-call interposition, an attacker can&lt;br /&gt;evade this system by directly using kernel calls. For example,&lt;br /&gt;system-call interposition can be done on Windows using the following&lt;br /&gt;&lt;a href="http://research.microsoft.com/sn/detours/"&gt;package&lt;/a&gt;. In my conversations with&lt;br /&gt;a guy from NSA (name withheld for obvious reasons:-)) he confirmed that&lt;br /&gt;new malware they are observing in their lab are using kernel calls directly.&lt;br /&gt;Also, look at the following &lt;a href="http://activehome.co.uk/vnunet/news/2184047/low-level-malware-rise-say"&gt;article&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;The semantic-gap problem:&lt;/span&gt;&lt;br /&gt;A natural question that comes to mind is: why not perform detection at even a lower layer&lt;br /&gt;in the heirarchy? Say the VM layer or even better at hardware. As you move&lt;br /&gt;down in the system hierarchy, you lose some high-level semantics. Let me explain.&lt;br /&gt;Lets say you are doing detection at the VM layer. A high-level event (such as&lt;br /&gt;opening a file) manifests itself as a sequence of events (such as writing to&lt;br /&gt;memory page or an interrupt). In other words, there is a gap between&lt;br /&gt;the events you observe at the VM level and the corresponding high-level event. To my knowledge&lt;br /&gt;the "semantic gap" issue was first articulated in the following paper:&lt;br /&gt;&lt;br /&gt;   Peter M. Chen, Brian D. Noble,  "When virtual is better than real",&lt;br /&gt;   Proceedings of the 2001 Workshop on Hot Topics in Operating Systems (HotOS),&lt;br /&gt;   May 2001.&lt;br /&gt;   The paper can be downloaded at the following &lt;a href="http://www.eecs.umich.edu/%7Epmchen/papers/"&gt;site&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;As you move down in the hierarchy, the semantic gap problem becomes harder. The&lt;br /&gt;semantic gap problem still exists at the kernel level, but it is more tractable&lt;br /&gt;than at the other layers. Therefore, I think kernel-level detection hits&lt;br /&gt;the "sweet spot". Implementing detectors at kernel level is harder than other&lt;br /&gt;approaches (such as system-call interposition), but then everything good in life takes&lt;br /&gt;effort:-) I strongly believe that detectors that use system-call interposition are very&lt;br /&gt;easy to evade, and so what is the point in having them. The next generation of malware&lt;br /&gt;will definitely use kernel calls directly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/5526290249231274316-5782494202700726876?l=jha-security.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jha-security.blogspot.com/feeds/5782494202700726876/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=5526290249231274316&amp;postID=5782494202700726876' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/5782494202700726876'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/5526290249231274316/posts/default/5782494202700726876'/><link rel='alternate' type='text/html' href='http://jha-security.blogspot.com/2008/01/case-for-kernel-level-detection.html' title='Case for kernel-level detection'/><author><name>Somesh</name><uri>http://www.blogger.com/profile/09031833559403573319</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry></feed>
