Skip to content
PhishPersona

PhishPersona

AI Phishing Detection & Awareness

Created on 8th March 2026

•

PhishPersona

PhishPersona

AI Phishing Detection & Awareness

The problem PhishPersona solves

Phishing emails are one of the most common forms of cyberattacks. Attackers impersonate trusted organizations such as banks, companies, or government agencies to trick users into revealing sensitive information like passwords, financial details, or personal data. Many users struggle to distinguish between legitimate and malicious emails because phishing messages often use psychological manipulation techniques such as urgency, fear, authority, or rewards.

PhishPersona solves this problem by providing an AI-powered phishing detection and awareness system. The platform analyzes email content using a natural language processing model to determine whether a message is safe or potentially malicious. In addition to detection, the system identifies manipulation patterns used in phishing attempts and tracks the user's exposure to these techniques.

Users can utilize the platform to:

Detect phishing emails instantly using an AI-based classifier.

Scan Gmail emails automatically through a browser extension.

Understand phishing tactics such as urgency, authority impersonation, financial scams, reward offers, and fear-based threats.

Receive personalized cybersecurity advice based on their behavioral risk profile.

Improve phishing awareness through interactive training scenarios and simulated phishing attacks.

By combining real-time detection, behavioral analysis, and cybersecurity training, PhishPersona helps users recognize and avoid phishing attacks more effectively, making email communication safer and reducing the risk of identity theft or financial fraud.

image

Challenges we ran into

  1. PyTorch and Transformers Compatibility Issues

While integrating the BERT-based phishing detection model using the HuggingFace Transformers library, the application initially failed to run due to compatibility issues between PyTorch, Python version, and the Transformers package. This caused runtime errors when loading the model.

Solution:
The issue was resolved by creating a virtual environment and installing compatible versions of PyTorch, Transformers, and Python. This ensured the model loaded correctly and could perform inference without errors.

  1. Gmail Extension Scanning the Same Email Multiple Times

During testing, the Chrome extension repeatedly scanned the same email every few seconds, which caused:

Multiple API requests

Incorrect statistics on the dashboard

Browser slowdown due to repeated processing

Solution:
A mechanism was implemented to track the unique email identifier from the Gmail URL and store the last scanned email. The extension now checks whether the email has already been scanned before sending it to the backend.

  1. Incorrect Dashboard Statistics

Another issue occurred where the total email count increased every time the analyzer page was opened, even when no real email was analyzed. This caused inaccurate phishing statistics.

Solution:
Additional validation logic was added in the API to ignore empty messages, default analyzer values, and duplicate emails before updating the user profile. This ensured that only real scanned emails affected the dashboard metrics.

  1. Detecting Phishing Beyond Simple Keywords

Early versions of the system relied heavily on keyword matching, which sometimes resulted in incorrect predictions. For example, legitimate emails containing words like "account" or "security" were flagged as phishing.

Solution:
The system was upgraded to use a BERT-based contextual language model, which understands sentence meaning rather than relying only on keywords. Keyword signals were then used only as a probability adjustment layer instead of the primary detection mechanism.

  1. Real-Time Communication Between Extension and Backend

Connecting the Chrome extension to the Flask API initially resulted in CORS (Cross-Origin Resource Sharing) errors, preventing the browser from sending requests to the backend server.

Solution:
The Flask-CORS library was added to enable secure cross-origin communication between the extension and the Flask server.

Discussion

Builders also viewed

See more projects on Devfolio