Access rights analysis for Java
Larry Koved, Marco Pistoia, Aaron Kershenbaum · ACM SIGPLAN Notices · 2002
Java 2 has a security architecture that protects systems from unauthorized access by mobile or statically configured code. The problem is in manually determining the set of security access rights required to execute a library or application. The commonly used strategy is to execute the code, note authorization failures, allocate additional access rights, and test again. This process iterates until the code successfully runs for the test cases in hand. Test cases usually do not cover all paths through the code, so failures can occur in deployed systems. Conversely, a broad set of access rights is allocated to the code to prevent authorization failures from occurring. However, this often leads to a violation of the "Principle of Least Privilege"This paper presents a technique for computing the access rights requirements by using a context sensitive, flow sensitive, interprocedural data flow analysis. By using this analysis, we compute at each program point the set of access rights required by the code. We model features such as multi-threading, implicitly defined security policies, the semantics of the Permission.implies method and generation of a security policy description. We implemented the algorithms and present the results of our analysis on a set of programs. While the analysis techniques described in this paper are in the context of Java code, the basic techniques are applicable to access rights analysis issues in non-Java-based systems.
Cited by 12 works. doi:10.1145/583854.582452
Authors
References
- A unified approach to global program optimization
- Advanced Compiler Design and Implementation
- The University of California
- Java Security: From HotJava to Netscape and Beyond
- From system F to typed assembly language
- Extensible security architectures for Java
- Fast static analysis of C++ virtual function calls
- Verification of control flow based security properties
- Precise concrete type inference for object-oriented languages
- Call graph construction in object-oriented languages