Comprehensive shellcode detection using runtime heuristics
Michalis Polychronakis, Kostas G. Anagnostakis, Evangelos P. Markatos · Annual Computer Security Applications Conference · 2010
A promising method for the detection of previously unknown code injection attacks is the identification of the shellcode that is part of the attack vector using payload execution. Existing systems based on this approach rely on the self-decrypting behavior of polymorphic code and can identify only that particular class of shellcode. Plain, and more importantly, metamorphic shellcode do not carry a decryption routine nor exhibit any self-modifications and thus both evade existing detection systems. In this paper, we present a comprehensive shellcode detection technique that uses a set of runtime heuristics to identify the presence of shellcode in arbitrary data streams. We have identified fundamental machine-level operations that are inescapably performed by different shellcode types, based on which we have designed heuristics that enable the detection of plain and metamorphic shellcode regardless of the use of self-decryption. We have implemented our technique in Gene, a code injection attack detection system based on passive network monitoring. Our experimental evaluation and real-world deployment show that Gene can effectively detect a large and diverse set of shellcode samples that are currently missed by existing detectors, while so far it has not generated any false positives.
Cited by 69 works. doi:10.1145/1920261.1920305
Authors
References
- The art of computer virus research and defense
- Polymorphic Worm Detection Using Structural Information of Executables
- Defending Browsers against Drive-by Downloads: Mitigating Heap-Spraying Code Injection Attacks
- Accurate Buffer Overflow Detection via Abstract Pay load Execution
- SigFree: A Signature-Free Buffer Overflow Attack Blocker
- On the infeasibility of modeling polymorphic shellcode
- Emulation-Based Detection of Non-self-contained Polymorphic Shellcode
- Network-level polymorphic shellcode detection using emulation
- A Fast Static Analysis Approach to Detect Exploit Code Inside Network Flows
- Network–Level Polymorphic Shellcode Detection Using Emulation