Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ›ก๏ธ SOAR Phishing Detection MVP

A minimal Security Orchestration, Automation, and Response (SOAR) system focusing on phishing email detection. This MVP demonstrates how backend automation, AI checks, and database orchestration can work together in a cybersecurity use case.

๐Ÿš€ Project Overview

This MVP simulates a small SOAR pipeline that:

  1. Receives an email via API.
  2. Parses and extracts key fields (sender, recipients, subject, body, URLs, etc.).
  3. Stores email data in Cassandra.
  4. Runs a lightweight AI model to check for suspicious features (starting with spelling analysis).
  5. Returns a JSON response with the classification result.

๐Ÿงฉ Architecture

User โ†’ FastAPI Backend โ†’ Cassandra Database + AI Model โ†’ JSON Response

Components

  • FastAPI (Backend): Receives emails and manages API endpoints.
  • Cassandra (Database): Stores parsed email data and model results.
  • AI Model: Performs a spelling-based phishing suspicion check.
  • React Frontend (Later): Simple dashboard for viewing analysis results.

๐Ÿ—๏ธ Folder Structure

soar-sut/
โ”œโ”€โ”€ backend/
โ”‚   โ”œโ”€โ”€ app/
โ”‚   โ”‚   โ”œโ”€โ”€ main.py
โ”‚   โ”‚   โ”œโ”€โ”€ ai/
โ”‚   โ”‚   โ”œโ”€โ”€ api/
โ”‚   โ”‚   โ”œโ”€โ”€ config/
โ”‚   โ”‚   โ”œโ”€โ”€ services/
โ”‚   โ”‚   โ”œโ”€โ”€ core/
โ”‚   โ”‚   โ”œโ”€โ”€ models/
โ”‚   โ”‚   โ””โ”€โ”€ repository/
โ”‚   โ”œโ”€โ”€ .dockerignore  
โ”‚   โ”œโ”€โ”€ Dockerfile
โ”‚   โ””โ”€โ”€ requirements.txt
โ”‚
โ”œโ”€โ”€ data/
โ”‚   โ””โ”€โ”€ datasets/ (for training/testing)
โ”‚
โ”œโ”€โ”€ infra/
โ”‚   โ””โ”€โ”€ docker-compose.yml (coming soon)
โ”‚
โ””โ”€โ”€ README.md

๐Ÿงฎ Tech Stack

Component Technology
Backend FastAPI
Database Apache Cassandra
AI Model Python (TextBlob / PySpellChecker / Scikit-learn)
Frontend React (coming soon)
Containerization Docker / Docker Compose

โš™๏ธ Setup & Run Locally

1. Clone the Repository

git clone https://github.com/Momen959/soar-sut.git
cd soar-sut/backend

2. Create a Virtual Environment

python3.11 -m venv .venv
source .venv/bin/activate

3. Install Dependencies

pip install -r requirements.txt

4. Set Up Environment Variables

Create a .env file inside backend/ with:

CASSANDRA_HOST=127.0.0.1
CASSANDRA_KEYSPACE=soar_db

5. Run the FastAPI App

uvicorn app.main:app --reload

Then visit: ๐Ÿ‘‰ http://localhost:8000/docs

๐Ÿง  API Example

POST /api/submit_email

Request

{
  "sender": "test@example.com",
  "recipients": ["user@domain.com"],
  "subject": "Win a prize now",
  "body": "Click here to claim your prize",
  "attachments": []
}

Response

{
  "record_id": "12345",
  "spelling_score": 0.72,
  "model_label": "suspicious"
}

๐Ÿ‘ฅ Team

Name Role
Hanaa Project Leader (Security)
Paula Security Team Leader
Amir Security Team Member
Ahmed Security Team Member
Momen AI Team Leader
Pavlly Database Engineer
Nayra AI Model Developer
Steven Backend Developer
Habiba Frontend Developer

๐Ÿ“Ÿ License

This project is for educational purposes as part of the SOAR Project 1 at SUT. Feel free to use or adapt it for learning or non-commercial purposes.

๐Ÿ›๏ธ Future Work

  • Integrate multiple SOAR use cases (DDoS, Brute Force, Malware)
  • Add alert correlation and automated responses
  • Build frontend dashboard for real-time monitoring
  • Containerize using Docker Compose

About

๐Ÿ›ก๏ธ A student-built SOAR (Security Orchestration, Automation, and Response) prototype that detects and analyzes phishing emails using FastAPI, Cassandra, and a lightweight AI model. Developed as part of Project 1 at Sewedy University of Technology (SUT), it showcases how AI and backend systems can work together to automate cybersecurity responses

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages