Malicious code detection is a crucial component of any defense mechanism. In this paper, we present a unique viewpoint on malicious code detection. We regard malicious code detection as an obfuscation-deobfuscation game between malicious code writers and r
StaticAnalysisofExecutablestoDetectMaliciousPatterns
MihaiChristodorescuandSomeshJha
mihai,jha@cs.wisc.edu
10February2003
Abstract
Maliciouscodedetectionisacrucialcomponentofanydefensemechanism.Inthispaper,wepresentauniqueviewpointonmaliciouscodedetection.Weregardmaliciouscodedetectionasanobfuscation-deobfuscationgamebetweenmaliciouscodewritersandresearchersworkingonmaliciouscodedetection.Maliciouscodewritersattempttoobfuscatethemaliciouscodetosubvertthemaliciouscodedetectors,suchasanti-virussoftware.Wetestedtheresilienceofthreecommercialvirusscannersagainstcodeobfuscationattacks.Theresultsweresurprising:thethreecommercialvirusscannerscouldbesubvertedbyverysimpleobfuscationtransformations!Wepresentanarchitecturefordetectingmaliciouspatternsinexecutablesthatisresilienttocommonobfuscationtransformations.Experimentalresultsdemonstratetheef cacyofourprototypetool,SAFE(asnalyzerfxecutables).
1Introduction
Intheinterconnectedworldofcomputers,maliciouscodehasbecomeanomnipresentanddangerousthreat.Maliciouscodecanin ltratehostsusingavarietyofmethodssuchasattacksagainstknownsoftware aws,hiddenfunctionalityinregularprograms,andsocialengineering.Giventhedevastatingeffectmaliciouscodehasonourcyberinfrastruc-ture,identifyingmaliciousprogramsisanimportantgoal.Detectingthepresenceofmaliciouscodeonagivenhostisacrucialcomponentofanydefensemechanism.
Maliciouscodeisusuallyclassi ed[29]accordingtoitspropagationmethodandgoalintothefollowingcategories:virusesareprogramsthatself-replicatewithinahostbyattachingthemselvestoprogramsand/ordocumentsthatbecomecarriersofthemaliciouscode;
wormsself-replicateacrossanetwork;trojanhorsesmasqueradeasusefulprograms,butcontainmaliciouscodetoattackthesystemorleakdata;backdoorsopenthesystemtoexternalentitiesbysubvertingthelocalsecuritypoliciestoallowremoteaccessandcontroloveranetwork;
spywareisausefulsoftwarepackagethatalsotransmitsprivateuserdatatoanexternalentity.
Combiningtwoormoreofthesemaliciouscodecategoriescanleadtopowerfulattacktools.Forexample,awormcancontainapayloadthatinstallsabackdoortoallowremoteaccess.Whenthewormreplicatestoanewsystem(viaemailorothermeans),thebackdoorisinstalledonthatsystem,thusprovidinganattackerwithaquickandeasywaytogainaccesstoalargesetofhosts.Stanifordet.al.havedemonstratedthatwormscanpropagateextremelyquicklythroughanetwork,andthuspotentiallycrippletheentirecyberinfrastructure[40].Inarecentoutbreak,theSapphire/Slammerwormreachedthepeakinfectionrateinabout10minutessincelaunch,doublingevery8.5seconds[30].Oncetheback-doortoolgainsalargeinstalledbase,theattackercanusethecompromisedhoststolaunchacoordinatedattack,suchasadistributeddenial-of-service(DDoS)attack[5].
Inthispaper,wedevelopamethodologyfordetectingmaliciouspatternsinexecutables.Althoughourmethodisgeneral,wehaveinitiallyfocusedourattentiononviruses.Acomputervirusreplicatesitselfbyinsertingacopyofitscode(theviralcode)intoahostprogram.Whenauserexecutestheinfectedprogram,theviruscopyruns,infectsmoreprograms,andthentheoriginalprogramcontinuestoexecute.Tothecasualuser,thereisnoperceiveddifferencebetweenthecleanandtheinfectedcopiesofaprogramuntilthevirusactivatesitsmaliciouspayload.
Theclassicvirus-detectiontechniqueslookforthepresenceofavirus-speci csequenceofinstructions(calledavirussignature)insidetheprogram:ifthesignatureisfound,itishighlyprobablethattheprogramisinfected.Forexample,
Static Analysis of Executables to Detect Malicious Patterns Abstract Malicious code detection is a crucial component of any defense mechanism. In this paper...
Static Analysis of Executables to Detect Malicious Patterns? Mihai Christodorescu mihai@cs.wisc.edu Somesh Jha jha@cs.wisc.edu Computer Sciences Department ...
for Automatic Analysis of Malicious Executables...Static methods deal with the binary codes or ... we detect the existence of known malicious ...
Detection of New Malicious Executables Matthew G. ...patterns to detect a set of new malicious ...This kind of analysis can be time-consuming and...
static ? and ? dynamic ? analysis ? of ? Malicious ? Office, ? Jar, ...and ?detect ?APT ?attacks. ?It ?will ?also ?guide ?you ?to ?the ?...
Malicious executables classification based on behavioral factor analysis Hengli ... as features which reflect diffierent malware families behavioral patterns. ...
Analysis(统计分析) Static detection of malicious code in executable programs(语义结构分析) Static Analysis of Executables to Detect Malicious Patterns(代码结构...
Jha. Static analysis of executables to detect malicious patterns. In Proceedings of the 12th USENIX Security Symposium (Security’03), pages 169–186, ...
The static analysis of a binary executable is ...The reason for targeting binary executables is ...to detect malicious code is often not available....
A total of 67 malware executables were sampled statically disassembled and ...(2003) ‘Static analysis of executables to detect malicious patterns’, ...
热门文档