CoolFace
Apppublic

AayanSuleri/ScamVerifier

sourceHugging Facemitupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿ›ก๏ธ Scam-Signal Verifier

A comprehensive web application that helps users identify potentially fraudulent messages, emails, and advertisements. Perfect for protecting students, elderly individuals, and anyone who wants to stay safe from online scams.

๐ŸŒŸ Features

Multi-Agent Analysis System

  • โ€”Claim Extractor: Parses messages for URLs, phone numbers, emails, and financial amounts
  • โ€”Pattern Verifier: Analyzes content against known scam patterns and suspicious keywords
  • โ€”Risk Calculator: Provides a comprehensive risk score (0-100) with clear classification
  • โ€”Human-Friendly Explainer: Generates actionable recommendations and reporting templates

Detection Capabilities

  • โ€”Phishing Emails: Bank, PayPal, Amazon verification scams
  • โ€”Job Offer Scams: Work-from-home and "easy money" schemes
  • โ€”Investment Fraud: Cryptocurrency and get-rich-quick schemes
  • โ€”Lottery/Prize Scams: Fake winnings and inheritance claims
  • โ€”Urgency Tactics: High-pressure language and artificial deadlines
  • โ€”Suspicious Domains: Known malicious and shortened URLs

User Experience

  • โ€”Clean, modern interface with gradient design
  • โ€”Real-time risk assessment with color-coded results
  • โ€”Pre-loaded example scams for testing
  • โ€”One-click report template generation
  • โ€”Mobile-responsive design

๐Ÿš€ Quick Start

Local Development

bash
# Clone the repository
git clone <repository-url>
cd scam-signal-verifier

# Install dependencies
pip install -r requirements.txt

# Run the application
python app.py

Docker Deployment

bash
# Build the image
docker build -t scam-verifier .

# Run the container
docker run -p 7860:7860 scam-verifier

Hugging Face Spaces

This app is optimized for Hugging Face Spaces deployment:

  1. 1.Upload all files to your Spaces repository
  2. 2.Set the Space to use Python/Gradio environment
  3. 3.The app will automatically start on port 7860

๐ŸŽฏ How It Works

1. Message Analysis

The system extracts key information from suspicious messages:

  • โ€”URLs and domain reputation
  • โ€”Contact information (phone, email)
  • โ€”Financial references and amounts
  • โ€”Suspicious keywords and phrases
  • โ€”Urgency indicators and pressure tactics

2. Risk Assessment

Multi-factor scoring algorithm considers:

  • โ€”Keyword Score (0-40 points): Suspicious language patterns
  • โ€”Urgency Score (0-25 points): High-pressure tactics
  • โ€”Domain Risk (0-20 points): Suspicious or shortened URLs
  • โ€”Contact Risk (0-10 points): Multiple contact methods
  • โ€”Financial Risk (0-15 points): Money-related content

3. Classification System

  • โ€”๐Ÿ”ด HIGH RISK (80-100): Obvious scam, avoid completely
  • โ€”๐ŸŸก MEDIUM RISK (50-79): Suspicious, verify independently
  • โ€”๐ŸŸข LOW RISK (25-49): Minor concerns, stay cautious
  • โ€”โœ… MINIMAL RISK (0-24): Appears legitimate

๐Ÿ“Š Example Results

High-Risk Phishing Email

Risk Score: 95/100 - HIGH RISK
Red Flags:
๐Ÿšจ Contains 6 suspicious keywords/phrases
๐Ÿšจ Uses high-pressure urgency tactics  
๐Ÿšจ Uses suspicious domain: secure-bank-verify.net
๐Ÿšจ Mentions money/financial transactions

Recommendations:
๐Ÿšซ Do NOT click any links or provide personal information
๐Ÿ“ง Report this message as spam/phishing
๐Ÿ›ก๏ธ Block the sender immediately

๐Ÿ›ก๏ธ Safety Features

  • โ€”No External API Calls: All analysis happens locally for privacy
  • โ€”Educational Focus: Teaches users to recognize scam patterns
  • โ€”Report Generation: Creates templates for reporting to authorities
  • โ€”Multiple Examples: Pre-loaded scenarios for learning

๐Ÿ”ง Technical Stack

  • โ€”Backend: Python Flask with modular analysis engine
  • โ€”Frontend: Responsive HTML/CSS/JavaScript
  • โ€”Deployment: Docker + Gunicorn for production
  • โ€”Security: No data persistence, privacy-focused design

๐Ÿ“ฑ Mobile Support

The interface is fully responsive and works seamlessly on:

  • โ€”Desktop browsers
  • โ€”Mobile phones
  • โ€”Tablets
  • โ€”Touch devices

๐Ÿค Contributing

This is an educational tool designed to help people stay safe online. Feel free to:

  • โ€”Report bugs or issues
  • โ€”Suggest new scam patterns to detect
  • โ€”Improve the UI/UX design
  • โ€”Add new analysis features

๐Ÿ“„ License

Open source educational project. Use responsibly to help others stay safe from online scams.

โš ๏ธ Disclaimer

This tool is for educational purposes and general guidance. It should not be the sole method for determining if something is a scam. Always use your best judgment and consult with relevant authorities when needed.


Stay Safe Online! ๐Ÿ›ก๏ธ