Preventing stack buffer overflow attacks
Abstract
Improved buffer overflow protection for a computer function call stack is provided by placing a predetermined ShadowKEY value on a function's call stack frame and copying the ShadowKEY, a caller EBP, and a return pointer are pushed onto a duplicate stack. The prologue of the function may be modified for this purpose. The function epilogue is modified to compare the current values of the ShadowKEY, caller EBP, and the return pointer on the function stack to the copies stored on the duplicate stack. If they are not identical, an overflow is detected. The preserved copies of these values may be copied back to the function stack frame thereby enabling execution of the process to continue. A function prologue and epilogue may be modified during compilation of the program.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 43 · Forward citations: 23.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method of protecting a function stack frame on a computer call stack, the function stack frame corresponding to a function, the method comprising: modifying a prologue of the function wherein, when executed, the prologue performs the steps of: creating in the function stack frame a starting ShadowKEY value, a starting extended base pointer (EBP) value, and a starting return pointer value; and creating a duplicate stack frame on a duplicate stack different from the computer call stack, the duplicate stack frame comprising the starting ShadowKEY value, the starting EBP value, and the starting
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 23 total)
References Cited — Backward Prior Art (43)
Non-Patent Literature (5)
- Brandon Bray, "Compiler Security Checks in Depth", http://msdn.microsoft.com/en-us/library/Aa290051, Feb. 2002, pp. 1-13.
- C. Cowan, C. Pu, D. Maier, H. Hinton, J. Walpole, P. Bakke, S. Beattie, A. Grie, P.Wagle, and Q. Zhang, "Stackguard: Automatic adaptive detection and prevention of buffer-overflow attacks," in Proc. of the USENIX Security Symposium, Jan. 1998.
- Canadian Patent Application Serial No. 2,809,516; Office Action dated Sep. 15, 2015.
- Dailey Paulson, Linda, "New Chips Stop Buffer Overflow Attacks", IEEE Computer, Oct. 2004, pp. 28-30.
- Gupta et al., "Dynamic Code Instrumentation to Detect and Recover from Return Address Corruption", WODA '06, May 23, 2006, Shanghai, China, pp. 65-71.