JSidentify-V2: Leveraging Dynamic Memory Fingerprinting for Mini-Game Plagiarism Detection

Zhihao Li, Chaozheng Wang, Zongjie Li, Xinyong Peng, Qun Xia, Haochuan Lu, Ting Xiong, Shuzheng Gao, Cuiyun Gao, Shuai Wang, Yuetang Deng, Huafeng MaarXiv 2025 · DOI

Abstract

The rapid growth of the mini-game ecosystem has been accompanied by a surge in sophisticated plagiarism. Traditional static analysis tools, which rely on code structure, are increasingly bypassed by "deep obfuscation" and encryption techniques. This paper presents JSidentify-V2, a dynamic analysis framework that identifies core game logic through runtime memory fingerprinting. By constructing Memory Dependency Graphs (MDGs) from "hot objects," the system achieves 100% precision and 99.8% recall in production environments, effectively neutralizing advanced obfuscation methods.

The Challenge of Deep Obfuscation

Mini-games, particularly on platforms like WeChat, are highly susceptible to source code theft due to their JavaScript-based nature. Malicious actors employ advanced obfuscation, including identifier renaming, dead code injection, and cloud-based decryption keys. In these scenarios, the core game logic remains encrypted until execution, appearing as meaningless ciphertext to static analyzers.

Comparison of plagiarism detection tools against various obfuscation techniques.

As shown in the comparison above, traditional tools like Stanford Moss or JsInspect fail entirely when faced with control flow-based obfuscation or code decryption. JSidentify-V2 is the first framework to provide comprehensive coverage across all mainstream obfuscation and encryption methods.

The JSidentify-V2 Framework

To overcome the limitations of static analysis, JSidentify-V2 shifts the focus from what the code looks like to what the program does in memory. The framework utilizes a four-stage pipeline to extract a "computational essence" that plagiarists cannot easily alter.

The JSidentify-V2 dynamic analysis pipeline, from static pre-analysis to graph-based similarity.
  1. Static Pre-analysis and Instrumentation: The system identifies potential invariants and injects monitoring probes.
  2. Adaptive Hot Object Slicing: To maintain performance, the system focuses on "hot objects"—frequently executed functions or domain-specific identifiers (e.g., physics or scoring logic).
  3. Memory Dependency Graph (MDG) Construction: Runtime data is organized into a graph where nodes represent memory locations and edges represent data flow and temporal dependencies.
  4. Graph-based Similarity Analysis: Suspect games are compared against a database using a multi-stage matching process to calculate a final similarity score.

Evaluation and Real-World Impact

The framework was tested against a benchmark of 400 obfuscated samples and a real-world dataset of 1,200 mini-games. While existing tools showed near 0% detection rates against decryption-based obfuscation, JSidentify-V2 maintained over 90% similarity detection.

In its deployment on the WeChat platform since June 2024, the tool has demonstrated:

  • High Accuracy: 100% precision and 99.8% recall.
  • Efficiency: An average processing time of 3.1 seconds per pair, an 8x improvement over its predecessor.
  • Deterrence: A reduction in plagiarism complaints by over 80%.

Future Directions

While highly effective, the authors identify two areas for improvement. First, "modular slice-based" detection is being developed to catch stolen components within games that have undergone extensive manual refactoring. Second, the team is building a database of common open-source library fingerprints (e.g., Cocos2d) to prevent false positives arising from legitimate code reuse.

Summary updated

BibTeX
@misc{li2025jsidentify,
  author = {Zhihao Li and Chaozheng Wang and Zongjie Li and Xinyong Peng and Qun Xia and Haochuan Lu and Ting Xiong and Shuzheng Gao and Cuiyun Gao and Shuai Wang and Yuetang Deng and Huafeng Ma},
  title = {{JSidentify-V2: Leveraging Dynamic Memory Fingerprinting for Mini-Game Plagiarism Detection}},
  year = {2025},
  eprint = {2508.01655},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.01655},
}
Figure