Journal of Computer Applications ›› 2015, Vol. 35 ›› Issue (1): 72-76.DOI: 10.11772/j.issn.1001-9081.2015.01.0072

Previous Articles     Next Articles

JavaScript code protection method based on temporal diversity

FANG Dingyi1,2, DANG Shufan1,2, WANG Huaijun1,2, DONG Hao1,2, ZHANG Fan2,3   

  1. 1. School of Information Science and Technology, Northwest University, Xi'an Shaanxi 710127, China;
    2. NWU-Irdeto Internet of Things and Infomation Security Joint Laboratory (Northwest University), Xi'an Shaanxi 710127, China;
    3. Irdeto Access Technology (Beijing) Company Limited, Beijing 100125, China
  • Received:2014-07-25 Revised:2014-09-26 Online:2015-01-01 Published:2015-01-26

具有时间多样性的JavaScript代码保护方法

房鼎益1,2, 党舒凡1,2, 王怀军1,2, 董浩1,2, 张凡2,3   

  1. 1. 西北大学 信息科学与技术学院, 西安710127;
    2. 西北大学-爱迪德物联网信息安全联合实验室(西北大学), 西安710127;
    3. 爱迪德技术(北京)有限公司, 北京100125
  • 通讯作者: 党舒凡
  • 作者简介:房鼎益(1959-),男,陕西汉中人,教授,博士,主要研究方向:网络与信息安全、软件安全与保护、无线传感器网络;党舒凡(1990-),女,陕西咸阳人,硕士研究生,主要研究方向:软件安全与保护、软件攻击;王怀军(1981-),男,山东滕州人,博士,主要研究方向:软件安全与保护、软件攻击及软件保护有效性评测;董浩(1989-),男,陕西西安人,硕士研究生,主要研究方向:软件安全与保护、软件攻击;张凡(1973-),男,陕西西安人,博士,主要研究方向:软件安全、数字内容保护.
  • 基金资助:

    国家自然科学基金资助项目(61202393);国家科技支撑计划项目(2013BAK01B02);陕西省教育厅产业化培育项目(2013JC07);陕西省自然科学基础研究计划项目(2012JQ8049).

Abstract:

Web applications are under the threat from malicious host problem just as native applications. How to ensure the core algorithm or main business process's security of Web applications in browser-side has become a serious problem needed to be solved. For the problem of low effectiveness to resist dynamic analysis and cumulative attack in present JavaScript code protection methods, a JavaScript code Protection based on Temporal Diversity (TDJSP) method was proposed. In order to resist cumulative attack, the method firstly made the JavaScript program obtain the diverse ability in runtime by building program's diversity set and obfuscating its branch space. And then, it detected features of abnormal execution environments such as debuggers and emulations to improve the difficulty of dynamic analysis. The theoretical analyses and experimental results show that the method improves the ability of JavaScript program against the converse analysis. And the space growth rate is 3.1 (superior to JScrambler3) while the delay time is in millisecond level. Hence, the proposed method can protect Web applications effectively without much overhead.

Key words: Web application, JavaScript code protection, cumulative attack, temporal diversity, code obfuscation

摘要:

Web应用同本地应用一样面临恶意主机威胁.如何确保暴露于用户主机中的Web应用核心算法或关键业务流程等重要信息的安全成为亟待解决的问题.针对现有JavaScript代码保护方法难以抵御动态分析且抗累积攻击效果差的问题,提出了一种具有时间多样性的JavaScript代码保护(TDJSP)方法.首先,通过程序多样化处理和路径空间模糊化,使JavaScript程序在执行时具有多样性效果,以有效抵御累积攻击;其次,检测调试器、模拟器等非正常执行环境的特征,并根据检测结果进行响应,增加攻击者进行动态分析的难度.理论分析和实验结果表明,JavaScript程序的抗逆向分析能力得到了提高,同时,其空间增长率约为3.1(优于JScrambler3),时间延迟为毫秒级.因此,该方法能够在不影响程序性能的前提下提升Web应用的安全性.

关键词: Web应用, JavaScript代码保护, 累积攻击, 时间多样性, 代码混淆

CLC Number: