[Paper Review] WaterRPG: A Graph-based Dynamic Watermarking Model for Software Protection
This paper proposes WaterRPG, a graph-based dynamic watermarking model that embeds software watermarks by structuring program execution traces into isomorphic reducible permutation graphs using function call relationships. The model dynamically embeds watermarks via runtime call-graphs under a secret key input, achieving high resilience against obfuscation, optimization, and decompilation attacks with low overhead and perfect extraction accuracy.
Software watermarking involves embedding a unique identifier or, equivalently, a watermark value within a software to prove owner's authenticity and thus to prevent or discourage copyright infringement. Towards the embedding process, several graph theoretic watermarking algorithmic techniques encode the watermark values as graph structures and embed them in application programs. Recently, we presented an efficient codec system for encoding a watermark number $w$ as a reducible permutation graph $F[π^*]$ through the use of self-inverting permutations $π^*$. In this paper, we propose a dynamic watermarking model, which we call WaterRPG, for embedding the watermark graph $F[π^*]$ into an application program $P$. The main idea behind the proposed watermarking model is a systematic use of appropriate calls of specific functions of the program $P$. More precisely, for a specific input $I_{key}$ of the program $P$, our model takes the dynamic call-graph $G(P, I_{key})$ of $P$ and the watermark graph $F[π^*]$, and produces the watermarked program $P^*$ having the following key property: its dynamic call-graph $G(P^*, I_{key})$ is isomorphic to the watermark graph $F[π^*]$. Within this idea the program $P^*$ is produced by only altering appropriate calls of specific functions of the input application program $P$. We have implemented our watermarking model WaterRPG in real application programs and evaluated its functionality under various and broadly used watermarking assessment criteria. The evaluation results show that our model efficiently watermarks Java application programs with respect to several watermarking metrics like data-rate, bytecode instructions overhead, resiliency, time and space efficiency. Moreover, the embedded watermarks withstand several software obfuscation and optimization attacks.
Motivation & Objective
- Address the growing challenge of software piracy by enabling robust, dynamic watermarking that resists code transformations and reverse engineering.
- Overcome limitations of static watermarking by encoding watermarks in execution traces rather than fixed code structures.
- Develop a model that ensures watermark integrity under common software attacks such as obfuscation, optimization, and decompilation.
- Achieve high data-rate and low computational overhead while maintaining strong stealth and resilience in real Java applications.
- Enable reliable watermark extraction through dynamic call-graph isomorphism with a secret key input, ensuring zero false positives or negatives in unattacked programs.
Proposed method
- Represent the watermark as a reducible permutation graph $ F[/pi^{*}] $ using self-inverting permutations $ /pi^{*} $, enabling efficient encoding of watermark integers.
- Construct the dynamic call-graph $ G(P, I_{key}) $ of the original program $ P $ under a secret key input $ I_{key} $, which serves as the runtime execution trace.
- Embed the watermark graph $ F[/pi^{*}] $ into the program by modifying function calls such that the resulting watermarked program $ P^{*} $ produces a call-graph isomorphic to $ F[/pi^{*}] $ under $ I_{key} $.
- Use a codec algorithm to map watermark values to graph structures, ensuring that the watermark is embedded only through structural changes in function call sequences.
- Ensure the watermark remains intact by preserving the structural properties of $ F[/pi^{*}] $ even when subjected to semantic-preserving transformations or code optimizations.
- Leverage both new and host code in the embedding process to enhance stealth and make the watermark an integral part of the program’s functional behavior.
Experimental results
Research questions
- RQ1Can a dynamic watermarking model embed watermarks via isomorphic runtime call-graphs while maintaining low computational and memory overhead?
- RQ2How resilient is the watermark to common software attacks such as obfuscation, optimization, and decompilation?
- RQ3To what extent does the model preserve program functionality and execution efficiency after watermarking?
- RQ4Can the watermark be reliably extracted with zero false positives or negatives in unmodified programs?
- RQ5How does the model’s data-rate scale with the size of the watermark graph and the number of functions used?
Key findings
- The WaterRPG model achieves 100% watermark extraction accuracy with zero false positives or negatives in unattacked programs, as the dynamic call-graph $ G(P^{*}, I_{key}) $ is always isomorphic to $ F[/pi^{*}] $.
- The model exhibits linear time and space overhead proportional to the size of the watermark graph $ F[/pi^{*}] $, with minimal bytecode instruction overhead.
- WaterRPG successfully withstands a wide range of attacks, including expression reordering, loop reordering, ProGuard obfuscation, and semantic-preserving optimizations.
- The watermark remains intact even after decompilation using tools like Java Decompiler, as the isomorphism between $ G(P^{*}, I_{key}) $ and $ F[/pi^{*}] $ is preserved.
- The model maintains high data-rate when the original program is large, as the number of functions used correlates directly with the size of the watermark graph.
- The embedding process integrates watermark logic seamlessly into host code, enhancing stealth and making removal difficult without full program understanding.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.