信息网络安全 ›› 2023, Vol. 23 ›› Issue (4): 1-9.doi: 10.3969/j.issn.1671-1122.2023.04.001

• 等级保护 • 上一篇    下一篇

基于强度导向的JavaScript代码协同混淆方法

李元章(), 马煜杰, 孙海鹏, 张正   

  1. 北京理工大学计算机学院,北京 100081
  • 收稿日期:2022-10-09 出版日期:2023-04-10 发布日期:2023-04-18
  • 通讯作者: 李元章 E-mail:popular@bit.edu.cn
  • 基金资助:
    国家自然科学基金(62072037)

A Collaborative Obfuscation Method for JavaScript Code Based on Intensity Orientation

LI Yuanzhang(), MA Yujie, SUN Haipeng, ZHANG Zheng   

  1. School of Computer Science & Technology, Beijing Institute of Technology, Beijing 100081, China
  • Received:2022-10-09 Online:2023-04-10 Published:2023-04-18
  • Contact: LI Yuanzhang E-mail:popular@bit.edu.cn

摘要:

代码混淆是一种对软件代码的保护技术,通过提高代码逻辑的分析难度对软件进行加固。目前,针对代码混淆的研究主要集中在单一的新混淆方法的提出及其效果分析,针对多种混淆方法进行协同混淆的研究较少。针对此问题,文章提出一种基于强度导向的JavaScript代码协同混淆方法,首先对参与混淆的多种独立混淆方法进行强度评估;然后根据评估结果调整混淆方法的执行顺序,获得比单一的多方法叠加更好的混淆效果。实验结果表明,该方法能够以较低的代价获得更好的代码混淆效果。

关键词: 代码混淆, 协同混淆, JavaScript语言, 软件可维护性指数

Abstract:

Code obfuscation is a kind of protection technique for software code. It is used to reinforce the software by increasing the difficulty of analyzing the code. Nowadays, the research on code obfuscation mainly focuses on analyzing the effect of single obfuscation method. There are few studies on collaborative obfuscation of multiple methods. To solve this problem, this article proposed a collaborative obfuscation method for JavaScript code based on intensity orientation. First, this paper evaluated the intensity of multiple independent obfuscation methods involved. Then this paper adjusted the execution order of obfuscation methods based on the evaluation result, and obtained a better obfuscation effect than simple multi-method stacking. Experimental results show that this method can obtain better obfuscation effect at a lower cost.

Key words: code obfuscation, collaborate obfuscation, JavaScript language, software maintainability index

中图分类号: