发明名称 Counteracting memory tracing on computing systems by code obfuscation
摘要 Method and apparatus for obfuscating computer software code, to protect against reverse-engineering of the code. The obfuscation here is on the part of the code that accesses buffers (memory locations). Further, the obfuscation process copies or replaces parts of the buffer contents with local variables. This obfuscation is typically carried out by suitably annotating (modifying) the original source code.
申请公布号 US8775826(B2) 申请公布日期 2014.07.08
申请号 US201113024273 申请日期 2011.02.09
申请人 Apple Inc. 发明人 Farrugia Augustin J.;Ciet Mathieu;Betouin Pierre
分类号 G06F12/14 主分类号 G06F12/14
代理机构 Adeli LLP 代理人 Adeli LLP
主权项 1. A method of protecting computer program source code, the method comprising: receiving a portion of computer program source code that accesses a set of memory locations in a heap memory structure, the portion comprising a set of references to the set memory locations; protecting the portion of the computer program source code by modifying the portion to include a set of protection functions, the set of protection functions comprising: a set of copy functions that each copies contents of a different one of the set of memory locations in the heap memory structure to an associated variable in a stack memory structure;a set of reference functions that removes and replaces each of a plurality of the references to the memory locations copied by the set of copy functions with new references to the variables in the stack memory structure that are associated with the copied memory locations;a reset function that, after completion of execution of the protected portion using the new references added by the set of reference functions, copies a current value stored in each variable in the stack memory structure that is associated with a copied memory location back to the associated copied memory location in the heap memory structure; and compiling the computer program source code after the portion has been protected.
地址 Cupertino CA US