Cross-Language Taint Analysis: Generating Caller-Sensitive Native Code Specification for Java
- 27 May 2024
- journal article
- research article
- Published by Institute of Electrical and Electronics Engineers (IEEE) in IEEE Transactions on Software Engineering
- Vol. 50 (6) , 1518-1533
Abstract
Cross-language programming is a common practice within the software development industry, offering developers a multitude of advantages such as expressiveness, interoperability, and cross-platform compatibility, for developing large-scale applications. As an important example, JNI (Java Native Interface) programming is widely used in diverse scenarios where Java interacts with code written in other programming languages, such as C or C++. Conventional static analysis based on a single programming language faces challenges when it comes to tracing the flow of values across multiple modules that are coded in different programming languages. In this paper, we introduce CSS, a new Caller-Sensitive Specification approach designed to enhance the static taint analysis of Java programs employing JNI to interface with C/C++ code. In contrast to conservative specifications, this approach takes into consideration the calling context of the invoked C/C++ functions (or cross-language context), resulting in more precise and concise specifications for the side effects of native code. Furthermore, CSS specifically enhances the capabilities of Java analyzers, enabling them to perform precise static taint analysis across language boundaries into native code. The experimental results show that CSS can accurately summarize value-flow information and enhance the ability of Java monolingual static analyzers for cross-language taint flow tracking.Keywords
Funding Information
- Australian Research (DP210101348, FT220100391)
- generous Aspire Gift (Google)
This publication has 35 references indexed in Scilit:
- Detecting Cross-language Memory Management Issues in Rust2022
- A Multilanguage Static Analysis of Python Programs with Native C Extensions2021
- On Multi-language Abstraction2020
- Deep Ground Truth Analysis of Current Android Malware2017
- Finding Reference-Counting Errors in Python/C Programs with Affine Analysis2014
- Automated Inference of Library Specifications for Source-Sink Property Verification2013
- Static Analysis of String Values2011
- Implicit Flows: Can’t Live with ‘Em, Can’t Live without ‘Em2008
- Polymorphic Type Inference for the JNI2006
- Effective representation of aliases and indirect memory operations in SSA form1996