arXiv:2510.15971cs.CRcs.AI2025-10被引 3

用图注意力网络分析网址字符结构,识别恶意链接。

A Graph-Attentive LSTM Model for Malicious URL Detection

  • 将网址转为字符图,结合图注意力与LSTM捕捉结构和顺序特征
  • 在65万条数据上测试,准确率98.06%,加权F1达98.04%
  • 对正常和篡改类链接识别效果突出,适合实际安全防护场景

恶意网址带来严重安全风险,用于钓鱼攻击、传播恶意软件及网站篡改。传统黑名单方法无法识别新出现或经过混淆的网址,因其依赖已有模式。本文提出一种混合深度学习模型GNN-GAT-LSTM,结合图神经网络(GNN)、图注意力网络(GAT)与长短期记忆网络(LSTM)。该模型将网址转化为字符构成的图,节点表示字符,边表示连接关系,并使用独热编码表示节点特征。训练与测试数据来自651,191个网址,分为良性、钓鱼、篡改和恶意软件四类。预处理阶段包含特征工程与数据平衡技术,缓解类别不平衡问题以提升学习效果。GNN-GAT-LSTM模型在测试中取得0.9806的准确率与0.9804的加权F1分数,各类别均表现出色,尤其在良性与篡改类网址上精度和召回率俱佳。整体展现出高效可扩展的恶意网址检测能力,具备良好的实际应用前景。

原文摘要 · Abstract (English)

Malicious URLs pose significant security risks as they facilitate phishing attacks, distribute malware, and empower attackers to deface websites. Blacklist detection methods fail to identify new or obfuscated URLs because they depend on pre-existing patterns. This work presents a hybrid deep learning model named GNN-GAT-LSTM that combines Graph Neural Networks (GNNs) with Graph Attention Networks (GATs) and Long Short-Term Memory (LSTM) networks. The proposed architecture extracts both the structural and sequential patterns of the features from data. The model transforms URLs into graphs through a process where characters become nodes that connect through edges. It applies one-hot encoding to represent node features. The model received training and testing data from a collection of 651,191 URLs, which were classified into benign, phishing, defacement, and malware categories. The preprocessing stage included both feature engineering and data balancing techniques, which addressed the class imbalance issue to enhance model learning. The GNN-GAT-LSTM model achieved outstanding performance through its test accuracy of 0.9806 and its weighted F1-score of 0.9804. It showed excellent precision and recall performance across most classes, particularly for benign and defacement URLs. Overall, the model provides an efficient and scalable system for detecting malicious URLs while demonstrating strong potential for real-world cybersecurity applications.

恶意网址图神经网络LSTM安全检测

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。