CipherXRay: Exposing Cryptographic Operations and Transient Secrets from Monitored Binary Execution
Authors:
- 24 September 2012
- journal article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Dependable and Secure Computing
- Vol. 11 (2) , 101-114
Abstract
Malwares are becoming increasingly stealthy, more and more malwares are using cryptographic algorithms (e.g., packing, encrypting C&C communication) to protect themselves from being analyzed. The use of cryptographic algorithms and truly transient cryptographic secrets inside the malware binary imposes a key obstacle to effective malware analysis and defense. To enable more effective malware analysis, forensics, and reverse engineering, we have developed CipherXRay - a novel binary analysis framework that can automatically identify and recover the cryptographic operations and transient secrets from the execution of potentially obfuscated binary executables. Based on the avalanche effect of cryptographic functions, CipherXRay is able to accurately pinpoint the boundary of cryptographic operation and recover truly transient cryptographic secrets that only exist in memory for one instant in between multiple nested cryptographic operations. CipherXRay can further identify certain operation modes (e.g., ECB, CBC, CFB) of the identified block cipher and tell whether the identified block cipher operation is encryption or decryption in certain cases. We have empirically validated CipherXRay with OpenSSL, popular password safe KeePassX, the ciphers used by malware Stuxnet, Kraken and Agobot, and a number of third party softwares with built-in compression and checksum. CipherXRay is able to identify various cryptographic operations and recover cryptographic secrets that exist in memory for only a few microseconds. Our results demonstrate that current software implementations of cryptographic algorithms hardly achieve any secrecy if their execution can be monitored.Keywords
This publication has 27 references indexed in Scilit:
- Cache Games -- Bringing Access-Based Cache Attacks on AES to Practice2011
- Cryptography in the Web: The Case of Cryptographic Design Flaws in ASP.NET2011
- Automated Identification of Cryptographic Primitives in Binary Programs2011
- Input generation via decomposition and re-stitching2010
- Identifying Dormant Functionality in Malware Programs2010
- Dispatcher2009
- On the Limits of Information Flow Techniques for Malware Analysis and Containment2009
- Prospex: Protocol Specification Extraction2009
- Revealing Packed MalwareIEEE Security & Privacy, 2008
- Polyglot2007