Patent ID: 11893113
Assignee: C2A-SEC, LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 6:
7. A return-oriented programming (ROP) attack protection method, the method comprising:
providing a region of memory having stored therein a plurality of operation functions, the region of memory set as non-executable;
responsive to a call to one of the plurality of operation functions and further responsive to at least one predetermined rule, allowing execution of the called operation function; and
after receiving a return from the executed operation function, setting the executed operation function as non-executable,
wherein the plurality of operation functions comprises the called function and a caller function, the call to the called function received from the caller function,
wherein the method further comprises:
responsive to said call, setting the caller function as non-executable; and
responsive to said received return, allowing execution of the caller function, and
wherein responsive to said at least one predetermined rule, the method further comprises:
determining whether a return address of said call is valid, said allowance of said execution of the called operation function being responsive to the return address of the call being determined to be valid;
responsive to the return address of the call being determined to not be valid, not allowing said execution of the called operation function and outputting a notification regarding the non-valid return address.