System and method for obfuscation by common function and common function prototype
Abstract
Disclosed herein are systems, methods, and computer-readable storage media for obfuscating by a common function. A system configured to practice the method identifies a set of functions in source code, generates a transformed set of functions by transforming each function of the set of functions to accept a uniform set of arguments and return a uniform type, and merges the transformed set of functions into a single recursive function. The single recursive function can allocate memory in the heap. The stack can contain a pointer to the allocated memory in the heap. The single recursive function can include instructions for creating and explicitly managing a virtual stack in the heap. The virtual stack can emulate what would happen to the real stack if one of the set of functions was called. The system can further compile the source code including the single recursive function.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 17 · Forward citations: 2.
Claims (3 — 1 Independent, 2 Dependent)
- Claim 1Independent Claim
A computer-implemented method of obfuscating by a common function, the method causing a computing device to perform steps comprising: identifying a set of functions in source code; generating a transformed set of functions by transforming each function of the set of functions to accept a uniform set of arguments and return a uniform type; merging the transformed set of functions into a single recursive function; eliminating references to a stack; and translating recursive function calls to push a virtual stack.
- Claim 2Depends on #1
The computer-implemented method of claim 1 , wherein the single recursive function allocates memory in a heap.
- Claim 3Depends on #2
The computer-implemented method of claim 2 , wherein the stack contains a pointer to the allocated memory in the heap.
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (2 of 2 total)
References Cited — Backward Prior Art (17)
Non-Patent Literature (5)
- Arun Lakhotia et al., A Method for Detecting Obfuscated Calls in Malicious Binaries, Nov. 2005, [Retrieved on Sep. 18, 2013]. Retrieved from the internet: <URL: http://ieeexplore.ieee.org/stamp/stamp.jsp?tp=&arnumber=1556554> 14 pp. 955-968.
- Arun Lakhotia et al., A Method for Detecting Obfuscated Calls in Malicious Binaries, Nov. 2005, [Retrieved on Sep. 18, 2013]. Retrieved from the internet: 14 pp. 955-968.
- G. Eberhardt, Z. Nagy, E. Jeges and Z. Hornák, "Copy Protection Through Software Watermarking and Obfuscation," Scientific Association for Infocommunications, Jan. 2007, pp. 2-7, vol. LXII, Budapest, Hungary (Available online at http://www.hiradastechnika.hu/data/upload/file/2007/2007-1a/HT-0701a-2.
- G. Eberhardt, Z. Nagy, E. Jeges and Z. Hornák, "Copy Protection Through Software Watermarking and Obfuscation," Scientific Association for Infocommunications, Jan. 2007, pp. 2-7, vol. LXII, Budapest, Hungary (Available online at http://www.hiradastechnika.hu/data/upload/file/2007/2007—1a/HT—0701a-2.
- Henry Hanping Feng et al., Anomaly Detection Using Call Stack Information, IEEE 2003, [Retrieved on Apr. 24, 2013]. Retrieved from the internet: <URL: http://www-unix.ecs.umass.edu/˜gong/papers/ok—idpc.pdf> 14 pp. 1-14.