A Cost-Effective OCR Implementation to Prevent Phishing on Mobile Platforms

Yunjia Wang, Yang Liu, Tiejun Wu, Ishbel Duncan2020

Abstract

Phishing is a criminal mechanism employing social engineering and technical subterfuge to gather personal data or financial credentials. While users are increasingly aware of suspicious URLs, phishing remains a dominant malicious attack vector. Standard browser warnings are often bypassed during DNS hijacking attacks. This paper presents a novel method to prevent phishing using Optical Character Recognition (OCR) technology. By offloading resource-intensive visual analysis to a server-side proxy, the proposed system achieves high detection accuracy on mobile platforms without compromising device performance or battery life.

The Growing Threat of Phishing

Phishing attacks have seen a steady increase, evolving in sophistication to bypass traditional security measures.

The upward trend of phishing sites throughout 2019.

As shown in the data from 2019, the volume of phishing sites continues to climb, necessitating more robust and proactive defense mechanisms. Traditional defenses like blacklists are reactive and often fail against "zero-day" phishing sites that appear and disappear within hours.

The Mobile Vulnerability

Mobile users are particularly susceptible to phishing. Smaller screens often truncate or hide the URL bar, and mobile browsers frequently omit security indicators to maximize screen real estate.

A phishing site mimicking PayPal. Note the fraudulent URL in the address bar despite the authentic-looking branding.

Attackers exploit this by mimicking the visual identity of trusted brands. Furthermore, advanced attacks like DNS hijacking can make a fraudulent site appear to have the correct URL, rendering simple URL-based filtering ineffective. Mobile devices also lack the computational power to run heavy-duty visual analysis locally without draining the battery.

Proposed Methodology: Server-Side OCR

The core innovation of this research is a four-step detection pipeline that leverages the visual identity of a brand—the one thing an attacker cannot easily change without losing the "hook" of the scam. To protect mobile resources, the system uses a server-side proxy architecture:

  1. Interception: A man-in-the-middle proxy (mitmproxy) intercepts web requests from the mobile device.
  2. Visual Extraction: A server-side crawler parses the target site's HTML to extract images, specifically targeting brand logos.
  3. OCR Analysis: The Google Vision API identifies text within these logos (e.g., the word "PayPal").
  4. Verification: The system compares the recognized brand against the site's SSL certificate and official domain records.

If the visual identity (the logo) claims to be a brand but the SSL certificate or domain doesn't match official records, the proxy blocks the request and warns the user.

Key Results and Evaluation

The prototype was tested against 60 active phishing URLs from PhishTank. The OCR-based method correctly identified 92% (55 out of 60) of the threats. In a head-to-head comparison, the native Safari browser on iOS only detected 40% of the same sample set. Crucially, the system remained effective against DNS hijacking because it verified the actual SSL certificate data rather than relying solely on the URL string. Because the processing is server-side, the mobile client experiences no additional data or power consumption.

Conclusion and Future Directions

While the current implementation shows great promise, challenges remain regarding language support for non-English logos and the cost of third-party OCR APIs. Future work will focus on integrating this logic into cloud-syncing browser features to enhance privacy and reduce latency for end-users, potentially making this visual verification a standard part of mobile web safety.

Summary updated

BibTeX
@misc{wang2020cost,
  author = {Yunjia Wang and Yang Liu and Tiejun Wu and Ishbel Duncan},
  title = {{A Cost-Effective OCR Implementation to Prevent Phishing on Mobile Platforms}},
  year = {2020},
  doi = {10.1109/cybersecurity49315.2020.9138873},
}
Figure