Java Cryptography API Security Enhancement Based on Annotations

Ji-shi ZHOU,Xiao-han ZHANG,Yuan ZHANG,Min YANG
DOI: https://doi.org/10.3969/j.issn.1000-1220.2019.02.022
2019-01-01
Abstract:As Java software becoming more and more sophisticated, developers increasingly rely on cryptographic libraries to protect application data. While cryptographic libraries are secure enough, the complicated Java cryptographic API is often misused, leading to some avoidable security problem. We propose SecureCrypto, an annotation-based framework to help developers securely using cryptographic APIs. SecureCrypto framework can generate code based on user parameters and scenario template, verify user code and raise errors during compile time. To simplify annotation developing, we implemented a template generator based on Java code. Security expert can quickly define newscenarios to extend SecureCrypto. From control experiment, we find that annotation can indeed help developers to write secure and reliable code, template generator is also a necessary tool for security experts to define newannotation scenarios.
What problem does this paper attempt to address?