syntax trees
Recently Published Documents


TOTAL DOCUMENTS

64
(FIVE YEARS 18)

H-INDEX

9
(FIVE YEARS 2)

2021 ◽  
Author(s):  
Devendra Sachan ◽  
Yuhao Zhang ◽  
Peng Qi ◽  
William L. Hamilton

2021 ◽  
Author(s):  
Jiangang Bai ◽  
Yujing Wang ◽  
Yiren Chen ◽  
Yaming Yang ◽  
Jing Bai ◽  
...  
Keyword(s):  

Author(s):  
G. S. Ponomarenko ◽  
P. G. Klyucharev

The paper deals with a problem of the obfuscated JavaScript code detection and classification based on Abstract Syntax Trees (AST) coloring. Colors of the AST vertexes and edges are assigned with regard to the types of the AST vertexes specified by the program lexical and syntax structure and the programming language standard. Research involved a few stages. First of the all, a non-obfuscated JavaScript programs dataset was collected by the public repositories evaluation. Secondly, obfuscated samples were created using eight open-source obfuscators. Classifier models were built using an algorithm of gradient boosting on the decision trees (GBDT). We built two types of the classifiers. The first one is the model that classifies the program according to the type of the obfuscator used, i.e. based on what obfuscator created the sample. The second one tries to detect samples obfuscated by the obfuscator whose samples are not observed during training. The quality of the obtained models is on par with the known published results. The feature engineering method proposed in the paper does not require a preliminary analysis of the obfuscators and obfuscating transformations. In the final part of the paper we analyze a quality of models estimated, discussing the certain statistical properties of the obfuscated and non-obfuscated samples obtained and corresponding colored ASTs. Analysis of generated samples of obfuscated programs has shown that the method proposed in the paper has some limitations. In particular, it is difficult to recognize minifiers or other obfuscating programs, which change the lexical structure to a greater extent and the syntax to a lesser extent. To improve the quality of detection of this kind of obscuring transformations, one can built combined classifiers using both the method based on the AST coloring and the additional information about lexemes and punctuation, for example, entropy of identifiers and strings, proportion of characters in upper and lower case, usage frequency of certain characters etc.


Sign in / Sign up

Export Citation Format

Share Document