SCORE:用于静态脚本恶意软件检测的语法代码表示
SCORE: Syntactic Code Representations for Static Script Malware Detection
AI总结:
本文提出基于语法代码高亮和抽象语法树特征提取的深度学习方法,用于静态脚本恶意软件检测,在40万脚本上TPR比传统方案高81%且FPR仅0.17%。
摘要:
随着企业越来越多地采用云计算技术,它们也需要意识到新的安全挑战,例如服务器端脚本攻击,以确保其系统和数据的完整性。这些脚本可以窃取数据、泄露凭证并破坏运营。与具有标准化格式(例如 ELF、PE)的可执行文件不同,脚本是具有多种语法的纯文本文件,这使得使用传统方法更难检测它们。因此,需要更复杂的方法来保护云基础设施免受这些不断演变的威胁。在本文中,我们提出了一种新颖的基于特征提取和深度学习(DL)的方法,用于针对服务器端威胁的静态脚本恶意软件检测。我们使用两种技术从纯文本代码中提取特征:语法代码高亮(SCH)和抽象语法树(AST)构建。SCH 利用复杂的正则表达式来解析代码的语法元素,例如关键字、变量名等。AST 生成程序语法结构的分层表示。然后,我们提出了一种序列模型和一种基于图的模型,利用这些特征表示来检测脚本恶意软件。我们在超过 400K 的 Bash、Python 和 Perl 服务器端脚本上评估了我们的方法。我们使用 90K 脚本的平衡数据集进行训练、验证和测试,其余 400K 脚本保留用于进一步分析。实验表明,我们的方法的真阳性率(TPR)比领先的基于签名的防病毒解决方案高出 81%,同时保持 0.17% 的低假阳性率(FPR)。此外,我们的方法优于各种基于神经网络的检测器,证明了其在学习代码恶意性以准确检测脚本恶意软件方面的有效性。
英文摘要:
As businesses increasingly adopt cloud technologies, they also need to be aware of new security challenges, such as server-side script attacks, to ensure the integrity of their systems and data. These scripts can steal data, compromise credentials, and disrupt operations. Unlike executables with standardized formats (e.g., ELF, PE), scripts are plaintext files with diverse syntax, making them harder to detect using traditional methods. As a result, more sophisticated approaches are needed to protect cloud infrastructures from these evolving threats. In this paper, we propose novel feature extraction and deep learning (DL)-based approaches for static script malware detection, targeting server-side threats. We extract features from plain-text code using two techniques: syntactic code highlighting (SCH) and abstract syntax tree (AST) construction. SCH leverages complex regexes to parse syntactic elements of code, such as keywords, variable names, etc. ASTs generate a hierarchical representation of a program's syntactic structure. We then propose a sequential and a graph-based model that exploits these feature representations to detect script malware. We evaluate our approach on more than 400K server-side scripts in Bash, Python and Perl. We use a balanced dataset of 90K scripts for training, validation, and testing, with the remaining from 400K reserved for further analysis. Experiments show that our method achieves a true positive rate (TPR) up to 81% higher than leading signature-based antivirus solutions, while maintaining a low false positive rate (FPR) of 0.17%. Moreover, our approach outperforms various neural network-based detectors, demonstrating its effectiveness in learning code maliciousness for accurate detection of script malware.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。