Method and apparatus for ensuring control flow integrity
Abstract
A control flow enforcement solution for ensuring that a program or portion thereof behaves as expected during execution upon a processor. A reference control flow is pre-determined for the program using, for example, a control flow graph (CFG). The CFG is then analysed to provide a set of rules which describe how the program should behave under normal execution. As the program executes it is monitored and the rules are evaluated to enable detection of any unexpected control flow. An embodiment of this disclosure is configured to respond upon detection that a rule has been violated. The response can take the form of any appropriate intervention such as a processor interrupt, memory fault, processor reset or generation of an alert. In this way, an embodiment of this disclosure may provide a particularly effective mechanism for detecting and defending against malicious activities such as return oriented programming attacks. The invention can be utilised to effect with any program but may be particularly suited for use with programs executing upon embedded processors.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 16 · Forward citations: 4.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer-implemented method of control flow enforcement, comprising: generating a reference control flow during an execution of a portion of code under a normal operating condition, wherein the reference control flow indicates expected execution of a portion of code; generating for the portion of code, a plurality of control flow rules and at least one possible attack mechanism for a security attack, each control flow rule being associated to the possible attack mechanism of the portion of code and being based upon the expected execution of the portion of code in accordance with the referenc
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (4 of 4 total)
References Cited — Backward Prior Art (16)
Non-Patent Literature (5)
- Akritidis, P., et al., "Preventing Memory Error Exploits with WIT", 2008 IEEE Symposium on Security and Privacy.
- Davi, L., "MoCFI: A Framework to Mitigate Control-Fiow Attacks on Smartphones", Proceedings of the 19th Network and Distributed System Security Symposium, Feb. 7, 2012.
- Extended European Search Report dated Dec. 18, 2015 in EP Application No. 15177952.7.
- Jacobson, E., "Detecting Code Reuse Attacks with a Model of Conformant Program Execution", Network and Parallel Computing, pp. 1-18, Feb. 26, 2014.
- Krahmer, S., "x86-64 buffer overflow exploits and the borrowed code chunks exploitation technique", SUSE Sep. 29, 2005.