SENet: Visual Detection of Online Social Engineering Attack Campaigns

Irfan Ozen, Karthika Subramani, Phani Vadrevu, Roberto PerdisciarXiv 2024 · OpenReview

TL;DR

This paper introduces SEShield, a novel framework for detecting social engineering (SE) attacks directly within a web browser. By leveraging a deep learning image classifier (SENet) trained on a custom-collected dataset of real-world SE attacks, SEShield achieves high detection rates with minimal false positives, offering a practical defense against these increasingly prevalent threats.

What Problem Does This Paper Address?

Social engineering (SE) attacks, which trick users into compromising their security and privacy, are a significant and growing threat, costing consumers billions annually. While phishing attacks have received considerable research attention, generic SE attacks (like fake software downloads, tech support scams, and notification stealing) remain understudied. Existing defenses often focus on specific attack types or rely on reactive measures like URL blacklisting, which attackers can easily evade. There's a clear need for a proactive, generalized defense that can detect a wide range of SE attacks in real-time, directly within the user's browser.

Methods

The SEShield framework comprises three key components:

  • SECrawler: A custom web crawler that actively scouts the internet to discover and collect examples of in-the-wild SE attack campaigns. It's an enhanced version of previous work, featuring improved crawler heuristics and a more granular data collection process, including tracking the full path to an attack page and emulating a wider range of devices and screen resolutions (30 in total).
  • SENet: The core of the system, a deep learning-based image classifier designed to detect the visual characteristics of SE attack pages. Unlike traditional image classifiers that require fixed input sizes, SENet is adapted to handle arbitrary image dimensions, making it suitable for diverse screen resolutions. It uses a modified VGG19 architecture with a global pooling layer to achieve this. A novel distributed training approach inspired by federated learning is employed to manage large datasets with limited GPU resources.
  • SEGuard: A proof-of-concept browser extension that embeds the SENet model. It captures webpage screenshots upon user interaction, feeds them to SENet for classification, and alerts the user in real-time if an SE attack is detected. For practical browser deployment, a lighter version of SENet based on MobileNetV2 was also developed to reduce inference latency.

Datasets

The authors introduce a new dataset of SE attack pages collected using their SECrawler. This dataset consists of:

  • 7,484 labeled SE attack pages captured across 30 different screen resolutions.
  • These pages are organized into 74 distinct SE attack campaigns, covering categories like Fake Software Download, Notification Stealing, Service Sign-up Scam, Scareware, Fake Lottery/Sweepstakes, and Technical Support Scam.
  • Additionally, a collection of 396,255 benign screenshots from popular websites was gathered for training and evaluation.

This dataset is notable for its breadth in terms of attack types, screen resolutions, and the inclusion of real-world, in-the-wild examples, differentiating it from datasets focused on specific SE sub-types or limited resolution ranges.

Key Insights and Ideas

  • Visual Cues are Key: SE attacks heavily rely on strong visual elements to deceive users. This makes a computer vision approach a natural and effective way to detect them.
  • Campaign-Based Detection: SE attacks are often orchestrated in campaigns, meaning similar visual traits can be found across multiple instances. This allows for learning from a few examples to detect many more.
  • Arbitrary Image Size is Crucial: The diversity of devices and screen resolutions necessitates a model that can handle images of varying sizes without distortion or loss of accuracy.
  • Browser-Native Defense is Feasible: Embedding a deep learning model directly into a browser extension (SEGuard) makes real-time detection practical, offering immediate protection without relying on external services.

Key Results

  • High Detection Accuracy: SENet achieved a detection rate of 99.6% at a 1% false positive rate on previously unseen SE attack instances from observed campaigns.
  • Generalization to New Resolutions: The model demonstrated strong generalization to screen sizes never encountered during training, with a global detection rate of 97.8% at 1% FP. A slight dip was observed for very small resolutions (e.g., 360x640), suggesting an area for future improvement.
  • Generalization to New Campaigns: SENet could identify never-before-seen SE attack campaigns with a detection rate of 92% at 1% FP, indicating its ability to adapt to novel attack strategies.
  • Adversarial Robustness: Adversarial training significantly improved SENet's robustness against crafted attacks, maintaining high detection rates even with noticeable perturbations.
  • Practical Latency: The MobileNetV2-based SEGuard achieved inference times of approximately 200ms, making real-time in-browser detection feasible, a significant improvement over the VGG19 version's ~5 seconds.

Limitations and Future Work

  • Small Screen Resolution Performance: The model's performance slightly degraded on very small screen resolutions (e.g., 360x640), likely due to scaling issues. The authors suggest collecting more training data for these specific resolutions.
  • Completely Novel/Minimalist Attacks: SEShield might struggle with entirely new SE attack campaigns that have minimal visual content or don't resemble previously seen patterns. However, the authors note that most SE attacks still rely on strong visual cues.
  • Data Poisoning: The reliance on in-the-wild data collection opens the system to potential data poisoning attacks. Future work could involve more robust data vetting and poisoning detection mechanisms.
  • Adversarial Training for Novel Campaigns: While adversarial training improved robustness, further research is needed to optimize its effectiveness against novel attack campaigns.
  • Broader SE Attack Coverage: The authors acknowledge that while their system is effective, it might not cover every conceivable SE attack, and further refinement and expansion of the detection capabilities are always possible.

Summary updated

Abstract

Social engineering (SE) aims at deceiving users into performing actions that may compromise their security and privacy. These threats exploit weaknesses in human's decision making processes by using tactics such as pretext, baiting, impersonation, etc. On the web, SE attacks include attack classes such as scareware, tech support scams, survey scams, sweepstakes, etc., which can result in sensitive data leaks, malware infections, and monetary loss. For instance, US consumers lose billions of dollars annually due to various SE attacks. Unfortunately, generic social engineering attacks remain understudied, compared to other important threats, such as software vulnerabilities and exploitation, network intrusions, malicious software, and phishing. The few existing technical studies that focus on social engineering are limited in scope and mostly focus on measurements rather than developing a generic defense. To fill this gap, we present SEShield, a framework for in-browser detection of social engineering attacks. SEShield consists of three main components: (i) a custom security crawler, called SECrawler, that is dedicated to scouting the web to collect examples of in-the-wild SE attacks; (ii) SENet, a deep learning-based image classifier trained on data collected by SECrawler that aims to detect the often glaring visual traits of SE attack pages; and (iii) SEGuard, a proof-of-concept extension that embeds SENet into the web browser and enables real-time SE attack detection. We perform an extensive evaluation of our system and show that SENet is able to detect new instances of SE attacks with a detection rate of up to 99.6% at 1% false positive, thus providing an effective first defense against SE attacks on the web.
BibTeX
@misc{ozen2024senet,
  author = {Irfan Ozen and Karthika Subramani and Phani Vadrevu and Roberto Perdisci},
  title = {{SENet: Visual Detection of Online Social Engineering Attack Campaigns}},
  year = {2024},
  eprint = {2401.05569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.05569},
}
Figure