{'fraction_non_alphanumeric': 0.019473081328751432, 'fraction_numerical': 0.001145475372279496, 'mean_word_length': 5.069444444444445, 'pattern_counts': {'":': 0, '<': 0, '<?xml version=': 0, '>': 0, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
Malicious Code Detection Method Based on Multiple Features

Malicious code detection has been considered as a major area for computer security. While a sharp increase in malicious code variants makes the accuracy and efficiency of the detection method reduced in a degree. To solve the problem, this paper proposes a multi-feature fusion method based on multiple N-value Opcode N-gram combined sequences and multi-scale gray image texture of malicious code. And then with the above fusion features, this paper uses RF and KNN machine learning algorithms to detect malicious code. At the same time, this paper takes accuracy, precision, recall, and f1 value as evaluation criteria to train and test massive malicious code samples. Finally, it verifies the effectiveness and accuracy of the malicious code detection method proposed in this paper through experimental results.