Skip to content

Latest commit

 

History

32 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ScamShield

🚀 Live Demo

Frontend (Live Website)

https://scam-shield-omega-six.vercel.app

Backend API

https://scamshield-eg3q.onrender.com


ScamShield is an AI-powered full-stack web application that helps users detect potentially fraudulent messages and suspicious URLs, analyze risk levels, and maintain a history of security reports through an interactive dashboard.

The platform combines AI-assisted analysis, custom risk scoring logic, secure authentication, and URL security checks to identify scam patterns and provide meaningful risk explanations.


Why I Built This Project

Online scams are becoming increasingly common through SMS, emails, calls, social media platforms, and phishing websites. I built ScamShield to gain hands-on experience with full-stack development while solving a real-world cybersecurity problem.

The project focuses on scam detection, authentication, REST API development, database integration, dashboard analytics, and secure report management.


Features

🔐 Authentication

  • User Registration
  • User Login
  • JWT Authentication
  • Protected Routes
  • Secure Password Hashing with bcrypt.js

🤖 Scam Message Detection

  • Analyze suspicious messages

  • AI-assisted scam analysis

  • Custom risk scoring logic

  • Risk Classification:

    • HIGH Risk
    • MEDIUM Risk
    • LOW Risk
  • Risk Score Generation

  • Detection Reason Generation

  • Intelligent scam pattern identification


🌐 URL Risk Analyzer

  • Analyze suspicious website URLs
  • Detect potentially unsafe links
  • HTTPS Security Check
  • Suspicious Keyword Detection
  • URL Risk Score Generation
  • Risk Explanation

📊 Dashboard

  • Total Scam Checks
  • High Risk Reports Count
  • Medium Risk Reports Count
  • Safe Reports Count
  • Real-Time Statistics
  • Recent Activity Tracking

📜 History Tracking

  • View Previous Scam Reports
  • View URL Scan Reports
  • Risk Level Tracking
  • Message Analysis History
  • Timestamped Records

👤 User Profile

  • Logged-in User Information
  • Protected User Dashboard
  • Secure Session Management

🗄️ Database Integration

  • MongoDB Atlas Cloud Database
  • Persistent Report Storage
  • User-Specific Data Management

Tech Stack

Frontend

  • HTML5
  • CSS3
  • JavaScript (Vanilla JS)
  • Responsive UI Design
  • Font Awesome Icons

Backend

  • Node.js
  • Express.js

Database

  • MongoDB Atlas
  • Mongoose

Authentication & Security

  • JWT (JSON Web Token)
  • bcrypt.js

AI Integration

  • Groq API Integration
  • Large Language Model (LLM) Based Scam Analysis
  • AI Generated Risk Explanation

API Endpoints

Authentication

Method Endpoint Description
POST /api/auth/register Register a new user
POST /api/auth/login Login and receive JWT token

User

Method Endpoint Description
GET /api/user/profile Get logged-in user profile

Scam Detection

Method Endpoint Description
POST /api/scam/check Analyze suspicious message
GET /api/scam/history Get scam report history
GET /api/scam/stats Get dashboard statistics

URL Scanner

Method Endpoint Description
POST /api/url/check Analyze suspicious URL
GET /api/url/history Get URL scan history

Project Structure

ScamShield
│
├── backend
│   ├── config
│   ├── controllers
│   ├── middleware
│   ├── models
│   ├── routes
│   ├── services
│   ├── utils
│   └── server.js
│
├── frontend
│   ├── css
│   ├── js
│   ├── index.html
│   ├── login.html
│   ├── register.html
│   ├── dashboard.html
│   └── history.html
│
└── README.md

Implemented Features

✅ MongoDB Atlas Connection ✅ User Registration & Login ✅ JWT Authorization ✅ Protected APIs ✅ Scam Detection System ✅ AI-Assisted Risk Analysis ✅ Risk Classification System ✅ Custom Risk Scoring Logic ✅ URL Risk Analyzer ✅ HTTPS Security Checking ✅ Suspicious URL Pattern Detection ✅ Scam Report Storage ✅ URL Report Storage ✅ Dashboard Statistics ✅ Recent Activity Tracking ✅ History Management ✅ Responsive Frontend ✅ User Profile Section


Screenshots

(Add screenshots of:)

  • Login Page
  • Registration Page
  • Dashboard
  • Scam Analysis Result
  • URL Scanner Result
  • History Page

Future Improvements

  • Machine Learning Based Scam Classification
  • Real-Time Phishing Database Integration
  • Email Scam Detection
  • Admin Dashboard
  • Advanced Risk Scoring Algorithm
  • Data Visualization Charts
  • Export Reports Feature
  • Browser Extension Support
  • Mobile Application

Learning Outcomes

Through this project I learned:

  • REST API Development
  • Authentication & Authorization
  • JWT Security
  • MongoDB Atlas Integration
  • AI API Integration
  • LLM-Based Application Development
  • Backend Architecture
  • Frontend & Backend Communication
  • API Testing
  • Git & GitHub Workflow
  • Full-Stack Project Development

Author

Siddhi Dublish

AI-Powered Full-Stack Security Project built to strengthen backend development, AI integration, authentication, database management, and real-world cybersecurity problem-solving skills.


⭐ If you like this project, consider giving it a star on GitHub.

About

AI-powered full-stack scam detection platform using Node.js, Express.js, MongoDB, JWT authentication, and Groq API

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages