PowerGNN: A source code structural and textual awareness approach for identifying malicious PowerShell scripts
As cyber attacks become more sophisticated, attackers increasingly employ living-off-the-land techniques to evade detection and exploit victim systems, with PowerShell emerging as a primary tool. PowerShell’s deep integration with the Windows operating system makes it an attractive choice for adversaries. Traditional security approaches, which typically rely on rule-based and signature-based detection methods, often struggle to identify novel threats such as zero-day attacks. In response to this challenge, recent advancements in machine learning and deep learning offer new avenues for detecting previously unknown threats by analyzing script characteristics. This study introduces PowerGNN, a novel detection method that leverages Graph Neural Networks (GNN) to analyze the Abstract Syntax Tree (AST) of PowerShell scripts. PowerGNN combines the structural insights provided by the AST with enriched textual features derived from fastText embeddings. By integrating these two approaches, PowerGNN enhances the understanding and detection of malicious scripts. We validate the effectiveness of PowerGNN through experiments, demonstrating its superior ability to detect malicious PowerShell scripts.
Authors
- Phan The Duy (ORCID: https://orcid.org/0000-0002-5945-3712)
- Van-Hau Pham (ORCID: https://orcid.org/0000-0003-3147-3356)
- Nghi Hoang Khoa (ORCID: https://orcid.org/0000-0001-6418-4169)
- Tuan Hoang Nguyen (ORCID: https://orcid.org/0000-0001-8766-611X)
- Ngo Duc Hoang Son
- Le Phan Huu Nghia
Publication Details
- Published
- 2025-08-14
- DOI
- https://doi.org/10.1109/mapr67746.2025.11133781
- Primary Topic
- Information and Cyber Security
- Type
- article
- Field-Weighted Citation Impact
- 0.00