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.
This MVP simulates a small SOAR pipeline that:
- Receives an email via API.
- Parses and extracts key fields (sender, recipients, subject, body, URLs, etc.).
- Stores email data in Cassandra.
- Runs a lightweight AI model to check for suspicious features (starting with spelling analysis).
- Returns a JSON response with the classification result.
User โ FastAPI Backend โ Cassandra Database + AI Model โ JSON Response
- 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.
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
| Component | Technology |
|---|---|
| Backend | FastAPI |
| Database | Apache Cassandra |
| AI Model | Python (TextBlob / PySpellChecker / Scikit-learn) |
| Frontend | React (coming soon) |
| Containerization | Docker / Docker Compose |
git clone https://github.com/Momen959/soar-sut.git
cd soar-sut/backendpython3.11 -m venv .venv
source .venv/bin/activatepip install -r requirements.txtCreate a .env file inside backend/ with:
CASSANDRA_HOST=127.0.0.1
CASSANDRA_KEYSPACE=soar_db
uvicorn app.main:app --reloadThen visit: ๐ http://localhost:8000/docs
{
"sender": "test@example.com",
"recipients": ["user@domain.com"],
"subject": "Win a prize now",
"body": "Click here to claim your prize",
"attachments": []
}{
"record_id": "12345",
"spelling_score": 0.72,
"model_label": "suspicious"
}| 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 |
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.
- 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