Skip to content

bnbong/Wegis_server

Repository files navigation

Wegis Server

CNN + BERT multimodal Phishing Detection Server

Python FastAPI PostgreSQL Redis MongoDB

Wegis - A Chrome browser extension's server that provides real-time protection against phishing sites by analyzing all links on web pages users visit.


Features

  • Real-time phishing site detection: High-precision analysis through CNN + BERT-based AI model
  • Multi-layer caching system: Fast response times through Redis-based result caching
  • RESTful API: Extensible web API based on FastAPI

API Endpoints

Analyze API

  • POST /analyze/check - Single URL phishing analysis
  • POST /analyze/batch - Multiple URL batch analysis (for browser extensions)
  • GET /analyze/recent - Recent analysis results

Other API

  • GET /health - Server status check
  • POST /feedback/* - User feedback management

more details in live server's API documentation

AI Model structure

AI Model structure

Quick Start

Development environment setup

# 1. Development environment setup
make dev-setup

# 2. Environment variable setup (.env file editing)
cp env.example .env
# Edit the .env file to set the necessary settings

# 3. Start the service
make up

# 4. Server access
# API: http://localhost:8000
# Docs: http://localhost:8000/docs

Local Development Commands

# Manage all services
make up          # Start all services
make down        # Stop all services
make logs        # Check logs
make health      # Check service status

# Development only
make db-only     # Start only database services
make shell       # Server container access
make logs-server # Server log only

# Test environment
make test-up     # Start test database
make test        # Run all tests
make test-down   # Stop test database

# Database management
make migrate     # Run migrations
make reset       # Delete all data (WARNING: This will delete all data!)

# Testing
make test        # Run all tests
make test-up     # Start test database
make test-down   # Stop test database
make test-logs   # Show test environment logs

About

<개인 프로젝트> CNN + BERT multimodal Phishing Detection Server

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •