Inference of Security-Sensitive Entities in LibrariesMay 2017
Programming languages such as Java and CRL execute code with different levels of trust in the same process, and rely on an access control model with fine-grained permissions to protect program code. Permissions are checked programmatically, and rely on programmer discipline. This can lead to subtle errors. To enable automatic security analysis about unauthorised access or information flow, it is necessary to reason about security-sensitive entities in libraries that must be protected by appropriate sanitization/declassification via permission checks. Unfortunately, security-sensitive entities are not clearly identified.
In this paper, we investigate security-sensitive entities used in Java-like languages, and develop a static program analysis technique to identify them in large codebases by analysing the patterns of permission checks. Although the technique is generic, our focus is on Java where checkPermission calls are used to guard potential security-sensitive entities. Our inference analysis uses two parameters called proximity and coverage to reduce false positive/negative reports. The usefulness of the analysis is illustrated by the results obtained while checking the OpenJDK7-b147 for conformance to Java Secure Coding Guidelines that relate to the confidentiality and integrity requirements.
Authors: Yi Lu, Sora Bae, Padmanabhan Krishnan, Raghavendra Kagalavadi Ramesh
Venue: LangSec workshop (http://spw17.langsec.org/index.html) which is part of the Security and Privacy Conference