System and method for dynamic optimizations using security assertions
Abstract
The invention relates to a system and method for efficient security runtime. If the same security demand for permissions occurs twice during the same code path (i.e. execution stack) the latter can be automatically turned (optimized) into a security assertion based on the former demand. A security runtime can determine which assertions to establish in a call stack, using declarative security information kept in an assembly metadata and based on execution history to know what has already been demanded for a specific stack frame. If the method being called has been allowed to execute before then a demand may be replaced with an assertion for the same permissions within the call stack. If that frame was executed then it means the security demand was successfully evaluated. Furthermore, if the permission evaluation result is known to be static (e.g., its result will not change) it can be determined that another check on the same permissions is not required higher on the stack, so this demand can safely be replaced by an assertion, which can effectively speed up the code execution without sacrificing security.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 36 · Forward citations: 3.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A method for dynamic optimizations using security assertions, comprising: initiating a runtime module on a computer, wherein the runtime module is configured to execute an application that includes a call stack having a plurality of sequential stack frames; performing, during the execution of the application in the runtime module, a first stack walk in response to a first runtime call into a first one of the plurality of sequential stack frames in the call stack including a first demand that requests at least one permission, wherein the first stack walk includes: evaluating the plurality of se
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (3 of 3 total)
References Cited — Backward Prior Art (36)
Non-Patent Literature (5)
- Clark, Jason, "Return of the Rich Client-Code Access Security and Distribution Features in .Net Enhance Client-Side Apps", MSDN Magazine, printed from http://msdn.microsoft.com/msdnmag/issues/02/06/rich/default.aspx, Jun. 2002, 16 pages.
- Damianou, Nicodemos C., "A Policy Framework for Management of Distributed Systems", Thesis, Imperial College of Science, Technology and Medicine, University of London, Department of Computing, Feb. 2002, 233 pages.
- MONO, "Assemblies and the GAC-How Mono Finds Assemblies", printed from http://www.mono-project.com/Assemblies-and-the-GAC, Jul. 20, 2005, 11 pages.
- MONO, "MONO:Runtime-The Mono Runtime", printed from http://www.mono-project.com/Mono:Runtime, Jan. 24, 2006, 8 pages.
- Oaks, Scott, "Java Security, 2nd Edition", Publisher O'Reilly Media, Inc., May 17, 2001, 22 pages.