arXiv:2505.03451cs.CRcs.AI2025-05中稿 · 22nd International…被引 19

不解析二维码内容,直接分析图像结构就能识别钓鱼攻击

Detecting Quishing Attacks with Machine Learning Techniques Through QR Code Analysis

  • 通过像素模式和结构特征直接分析二维码图像
  • 最佳模型AUC达0.9133,显著优于依赖链接提取的方法
  • 适合安全研究者与移动端防护系统开发者参考

二维码钓鱼(Quishing)威胁日益严重,传统基于链接分析的检测方法需解码内容,可能暴露用户于恶意风险。且二维码可承载非网址数据(如Wi-Fi密码、支付信息),使纯链接检测失效。为此,本文首次提出无需内容提取的二维码结构分析框架。构建了包含钓鱼与正常二维码的数据集,训练并评估了逻辑回归、决策树、随机森林、朴素贝叶斯、LightGBM与XGBoost等模型。最优模型XGBoost在未优化时达到AUC 0.9106;经特征重要性分析剔除无效像素后,性能提升至AUC 0.9133,特征空间更小。结果表明,二维码的视觉结构特征与钓鱼风险强相关。该工作为防范二维码钓鱼提供了新路径,验证了直接图像分析在现代反钓鱼防御中的关键价值。

原文摘要 · Abstract (English)

The rise of QR code-based phishing ("Quishing") poses a growing cybersecurity threat, as attackers increasingly exploit QR codes to bypass traditional phishing defenses. Existing detection methods predominantly focus on URL analysis, which requires the extraction of the QR code payload, and may inadvertently expose users to malicious content. Moreover, QR codes can encode various types of data beyond URLs, such as Wi-Fi credentials and payment information, making URL-based detection insufficient for broader security concerns. To address these gaps, we propose the first framework for quishing detection that directly analyzes QR code structure and pixel patterns without extracting the embedded content. We generated a dataset of phishing and benign QR codes and we used it to train and evaluate multiple machine learning models, including Logistic Regression, Decision Trees, Random Forest, Naïve Bayes, LightGBM, and XGBoost. Our best-performing model (XGBoost) achieves an AUC of 0.9106, demonstrating the feasibility of QR-centric detection. Through feature importance analysis, we identify key visual patterns correlated with phishing labels and refine our feature set by removing non-informative pixels, improving performance to an AUC of 0.9133 with a reduced feature space. Our findings reveal that the structural features of QR code correlate strongly with phishing risk. This work establishes a foundation for quishing mitigation and highlights the potential of direct QR analysis as a critical layer in modern phishing defenses.

网络安全机器学习二维码安全钓鱼攻击

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