Skip to main content
QUICK REVIEW

[Paper Review] Neutaint: Efficient Dynamic Taint Analysis with Neural Networks

Dongdong She, Yizheng Chen|arXiv (Cornell University)|Jul 8, 2019
Advanced Malware Detection TechniquesComputer Science50 references8 citations
TL;DR

Neutaint proposes an end-to-end neural network-based approach for dynamic taint analysis that learns information flow from program traces, using neural program embeddings and saliency maps to achieve high accuracy and low runtime overhead. It reduces false positives and overhead by replacing rule-based propagation with differentiable, gradient-based influence analysis, outperforming state-of-the-art tools with 68% average accuracy and 40× lower runtime overhead.

ABSTRACT

Dynamic taint analysis (DTA) is widely used by various applications to track information flow during runtime execution. Existing DTA techniques use rule-based taint-propagation, which is neither accurate (i.e., high false positive) nor efficient (i.e., large runtime overhead). It is hard to specify taint rules for each operation while covering all corner cases correctly. Moreover, the overtaint and undertaint errors can accumulate during the propagation of taint information across multiple operations. Finally, rule-based propagation requires each operation to be inspected before applying the appropriate rules resulting in prohibitive performance overhead on large real-world applications. In this work, we propose NEUTAINT, a novel end-to-end approach to track information flow using neural program embeddings. The neural program embeddings model the target's programs computations taking place between taint sources and sinks, which automatically learns the information flow by observing a diverse set of execution traces. To perform lightweight and precise information flow analysis, we utilize saliency maps to reason about most influential sources for different sinks. NEUTAINT constructs two saliency maps, a popular machine learning approach to influence analysis, to summarize both coarse-grained and fine-grained information flow in the neural program embeddings. We compare NEUTAINT with 3 state-of-the-art dynamic taint analysis tools. The evaluation results show that NEUTAINT can achieve 68% accuracy, on average, which is 10% improvement while reducing 40 times runtime overhead over the second-best taint tool Libdft on 6 real world programs. NEUTAINT also achieves 61% more edge coverage when used for taint-guided fuzzing indicating the effectiveness of the identified influential bytes.

Motivation & Objective

  • To address the high false positive/negative rates and prohibitive runtime overhead of rule-based dynamic taint analysis (DTA) in real-world applications.
  • To overcome the limitations of manual taint rule specification, which is error-prone and infeasible for complex operations and corner cases.
  • To eliminate error accumulation from composing individual taint rules across multiple operations.
  • To detect implicit control dependencies and non-data-dependent sinks (e.g., return values of external functions) that traditional DTA tools miss.
  • To enable efficient, scalable, and accurate end-to-end information flow tracking using machine learning.

Proposed method

  • Neutaint trains a neural program embedding model on program traces collected via light-weight instrumentation, learning the mapping from taint sources to sinks.
  • It uses backpropagation and gradient analysis to compute saliency maps that quantify the influence of each source on each sink.
  • Two saliency maps are constructed: one for coarse-grained and one for fine-grained influence analysis, summarizing source-sink relationships.
  • The model generalizes across execution traces, enabling accurate inference without re-analyzing each operation at runtime.
  • Saliency maps are used to identify the most influential input bytes for taint-guided fuzzing and vulnerability detection.
  • The approach avoids rule-based propagation by learning end-to-end information flow directly from data, minimizing composition errors.

Experimental results

Research questions

  • RQ1Can a neural network-based approach learn accurate and generalizable information flow patterns from program execution traces?
  • RQ2Can gradient-based saliency maps effectively identify influential taint sources for both data and control dependencies?
  • RQ3Does Neutaint reduce runtime overhead compared to rule-based DTA tools while maintaining or improving accuracy?
  • RQ4Can Neutaint detect vulnerabilities involving implicit control dependencies that traditional tools miss?
  • RQ5How effective is Neutaint in taint-guided fuzzing compared to state-of-the-art DTA tools?

Key findings

  • Neutaint achieves an average accuracy of 68%, representing a 10% improvement over the second-best tool, Libdft.
  • It reduces runtime overhead by 40× compared to Libdft, the next best tool, while maintaining high accuracy.
  • Neutaint detects 98.7% of all information flows, the highest among all evaluated taint analysis tools.
  • In taint-guided fuzzing, Neutaint achieves 61% more edge coverage than state-of-the-art tools, indicating superior identification of influential inputs.
  • Neutaint successfully detects diverse vulnerabilities, including buffer overflows, heap overflows, integer overflows, and division-by-zero errors.
  • The method effectively captures implicit control dependencies—such as those in TinyXML’s parsing logic—where traditional DTA tools fail due to lack of data dependency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.