Skip to content

**CyberSec Alert SaaS** is an enterprise-ready vulnerability intelligence and security monitoring platform that automates asset correlation, alert generation, and real-time threat tracking. Built with FastAPI and PostgreSQL, it aggregates CVEs and vendor advisories (NVD, Microsoft MSRC, Cisco PSIRT, Red Hat, RSS feeds)

Notifications You must be signed in to change notification settings

mangod12/cybersecuritysaas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

15 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

CyberSec Alert SaaS

A modern SaaS platform for enterprise security monitoring, asset management, and real-time vulnerability alerting.


๐ŸŽฏ Problem Statement

Organizations today face critical challenges in managing their cybersecurity posture:

  • Overwhelming Alert Fatigue: Security teams are bombarded with thousands of vulnerability alerts daily from multiple sources (NVD, vendor advisories, CVE feeds), making it nearly impossible to prioritize and respond effectively.

  • Delayed Response Times: Manual monitoring of security feeds and vendor advisories leads to delayed awareness of critical vulnerabilities, leaving systems exposed to exploitation during the gap between disclosure and patching.

  • Poor Asset Visibility: Without centralized asset management, organizations struggle to understand which systems are affected by new vulnerabilities, leading to inefficient triage and remediation workflows.

  • Missed Critical Updates: Important security advisories from vendors like Microsoft, Cisco, Red Hat, and others are scattered across different platforms, increasing the risk of missing critical patches and updates.

  • Lack of Automation: Manual processes for vulnerability tracking, alert distribution, and asset correlation consume valuable security team resources that could be better spent on strategic initiatives.

How This Platform Solves These Problems

CyberSec Alert SaaS provides a unified, automated vulnerability intelligence platform that:

  • โœ… Aggregates vulnerabilities from multiple authoritative sources into a single dashboard
  • โœ… Automatically correlates new threats with your asset inventory
  • โœ… Sends real-time notifications only for relevant vulnerabilities
  • โœ… Reduces alert fatigue through intelligent filtering and asset matching
  • โœ… Enables rapid response with centralized alert management and acknowledgment workflows

๐Ÿš€ What This System Does

CyberSec Alert SaaS is a comprehensive vulnerability intelligence and alerting platform that automates the entire security monitoring lifecycle.

Core Workflow

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    DATA COLLECTION LAYER                         โ”‚
โ”‚  NVD CVE Feed  โ”‚  Microsoft MSRC  โ”‚  Cisco PSIRT  โ”‚  Red Hat   โ”‚
โ”‚  Vendor RSS    โ”‚  Security APIs   โ”‚  Advisories   โ”‚  And More  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                           โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                  AUTOMATED SCRAPING ENGINE                       โ”‚
โ”‚  โ€ข Scheduled jobs (APScheduler)                                 โ”‚
โ”‚  โ€ข CVE enrichment with CVSS scores                              โ”‚
โ”‚  โ€ข Multi-source vulnerability aggregation                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                           โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                   CORRELATION ENGINE                             โ”‚
โ”‚  โ€ข Matches vulnerabilities to user assets                       โ”‚
โ”‚  โ€ข Creates targeted alerts                                      โ”‚
โ”‚  โ€ข Deduplication and prioritization                             โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                           โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                  NOTIFICATION SYSTEM                             โ”‚
โ”‚  Email Alerts  โ”‚  Dashboard Updates  โ”‚  Future: Slack/Discord  โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ฌโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                           โ”‚
                           โ–ผ
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚                    USER INTERFACE                                โ”‚
โ”‚  โ€ข Real-time dashboard with statistics                          โ”‚
โ”‚  โ€ข Asset management portal                                      โ”‚
โ”‚  โ€ข Alert acknowledgment and tracking                            โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

5 Key Capabilities

  1. ๐Ÿ” Multi-Source Vulnerability Aggregation

    • Automatically collects CVEs from NVD (National Vulnerability Database)
    • Fetches vendor-specific advisories (Microsoft MSRC, Cisco PSIRT, Red Hat Security)
    • Parses RSS feeds from major security vendors
    • Enriches vulnerability data with CVSS scores and metadata
  2. ๐Ÿข Intelligent Asset Management

    • Centralized inventory of your IT assets (servers, domains, applications)
    • Easy add/edit/delete operations through web interface
    • Asset metadata tracking for better vulnerability correlation
    • Future: CPE (Common Platform Enumeration) matching for precise asset-vulnerability mapping
  3. โšก Real-Time Alert Generation

    • Automatic correlation between new vulnerabilities and your assets
    • Instant alert creation when threats affect your infrastructure
    • Priority-based alerting (critical, high, medium, low)
    • Alert deduplication to reduce noise
  4. ๐Ÿ“ง Multi-Channel Notifications

    • Email notifications via Mailgun integration
    • Dashboard alerts with visual indicators
    • Acknowledge/dismiss workflow for alert management
    • Future: Slack, Discord, Microsoft Teams, and SMS notifications
  5. ๐Ÿ” Enterprise-Grade Authentication

    • Email/password authentication with secure password hashing
    • GitHub OAuth integration for seamless SSO
    • JWT-based API security
    • Token verification for all protected endpoints

๐Ÿ› ๏ธ Tech Stack

Backend

  • FastAPI - Modern, high-performance Python web framework with automatic API documentation
  • SQLAlchemy 2.0 - Async ORM for database operations
  • Alembic - Database migration management
  • APScheduler - Background job scheduling for automated scraping
  • Uvicorn/Gunicorn - ASGI server for production deployment
  • Python-JOSE - JWT token generation and validation
  • Passlib - Secure password hashing with bcrypt

Frontend

  • Single-Page Application - Vanilla JavaScript SPA (frontend/index.html)
  • REST API Integration - All data fetched via asynchronous API calls
  • Responsive Design - Mobile-friendly interface
  • Real-time Updates - Dynamic dashboard with live statistics

Infrastructure

  • Docker & Docker Compose - Containerized deployment
  • PostgreSQL - Production database (Docker)
  • SQLite - Development database (local)
  • Nginx - Optional reverse proxy for production
  • Heroku-ready - Procfile and runtime.txt included

Security & Data Sources

  • NVD CVE Feed - NIST National Vulnerability Database
  • Microsoft MSRC API - Microsoft Security Response Center advisories
  • Cisco PSIRT API - Cisco Product Security Incident Response Team
  • Red Hat Security API - Red Hat CVE database
  • Mailgun API - Email notification service
  • GitHub OAuth - Social authentication provider
  • HTTPX/AIOHTTP - Async HTTP clients for API integrations
  • BeautifulSoup4 - HTML parsing for vendor advisories

Development & Testing

  • pytest - Unit and integration testing
  • pytest-asyncio - Async test support
  • black - Code formatting
  • flake8 - Linting
  • isort - Import sorting
  • python-dotenv - Environment variable management

โœจ Key Features

๐Ÿ” Authentication & Authorization

  • Email/Password Authentication - Secure registration and login with bcrypt password hashing
  • GitHub OAuth Integration - Seamless single sign-on with GitHub accounts
  • JWT Token-Based Security - Stateless authentication for all API endpoints
  • Token Verification - Automatic validation of user sessions
  • Two-Factor Authentication (2FA) - Future enhancement for additional security
  • Role-Based Access Control (RBAC) - Multi-tenancy support with admin/user roles

๐Ÿ“Š Real-Time Dashboard

  • Live Statistics - Real-time counts of alerts, assets, and vulnerabilities
  • Alert Summary - Overview of critical, high, medium, and low-priority alerts
  • Asset Overview - At-a-glance view of all monitored assets
  • Recent Activity Feed - Latest alerts and system events
  • Responsive Design - Works seamlessly on desktop, tablet, and mobile devices

๐Ÿข Asset Management

  • Add/Edit/Delete Assets - Full CRUD operations for asset inventory
  • Asset Metadata - Store asset names, types, descriptions, and custom fields
  • Asset Search & Filtering - Quickly find specific assets
  • Asset-Alert Correlation - Automatic matching of vulnerabilities to assets
  • CPE Matching - Future: Precise vulnerability-to-asset matching using Common Platform Enumeration
  • Asset Import/Export - Bulk operations via CSV/JSON

๐Ÿšจ Automated Alert System

  • Automatic Alert Generation - Creates alerts when vulnerabilities match your assets
  • Multi-Level Severity - Critical, High, Medium, Low priority classification
  • Alert Acknowledgment - Mark alerts as reviewed or dismissed
  • Alert History - Complete audit trail of all alerts
  • Deduplication - Prevents duplicate alerts for the same vulnerability
  • Custom Alert Rules - Future: User-defined filtering and routing logic
  • Alert Suppression - Temporary muting of specific alert types

๐Ÿ” Automated Vulnerability Scraping

  • NVD CVE Feed - Daily scraping of National Vulnerability Database
  • Microsoft MSRC API - Microsoft Security Response Center advisories
  • Cisco PSIRT API - Cisco Product Security Incident Response Team updates
  • Red Hat Security API - Red Hat CVE database integration
  • Vendor RSS Feeds - Multiple vendor advisory feeds
  • CVE Enrichment - Automatic CVSS score fetching and metadata enhancement
  • Scheduled Jobs - APScheduler for automated, periodic scraping
  • Custom Scraper Configuration - User-defined scraping frequencies and sources

๐Ÿ‘จโ€๐Ÿ’ป Developer-Friendly

  • RESTful API - Clean, well-documented API endpoints
  • Automatic API Documentation - FastAPI auto-generated docs at /docs (Swagger UI)
  • Async/Await - High-performance async operations throughout
  • Database Migrations - Alembic for version-controlled schema changes
  • Environment Configuration - .env file for easy setup
  • Docker Support - One-command containerized deployment
  • Local Development - SQLite for quick local testing without Docker

๐Ÿ“ง Email Notifications

  • Mailgun Integration - Professional email delivery service
  • Alert Emails - Automatic notifications for new critical alerts
  • HTML Email Templates - Professional, branded email design
  • Configurable Recipients - Email sent to all registered users
  • Email Preferences - Future: Per-user notification settings
  • Digest Emails - Scheduled summary emails (daily/weekly)

Quick Start

Local (SQLite)

pip install -r requirements.txt
python scripts/setup_database.py
uvicorn backend.main:app --host 0.0.0.0 --port 8000 --reload

Visit: http://localhost:8000

Docker (PostgreSQL)

docker compose up --build
# In another terminal (first run only):
docker compose exec app python scripts/setup_database.py

Visit: http://localhost:8000


Environment Variables (.env)

SECRET_KEY=your-secret-key
DATABASE_URL=sqlite:///cybersec_alerts.db  # or postgresql+psycopg2://postgres:postgres@db:5432/cybersaas
GITHUB_CLIENT_ID=your_github_client_id
GITHUB_CLIENT_SECRET=your_github_client_secret
GITHUB_REDIRECT_URI=http://localhost:8000/api/v1/auth/github/callback
MAILGUN_API_KEY=your-mailgun-api-key (optional)
MAILGUN_DOMAIN=your-mailgun-domain (optional)
FROM_EMAIL=noreply@yourdomain.com (optional)

GitHub OAuth Setup

  1. Go to GitHub > Settings > Developer settings > OAuth Apps > New OAuth App
  2. Set callback URL to: http://localhost:8000/api/v1/auth/github/callback
  3. Copy Client ID and Secret to your .env
  4. Restart backend/Docker after changes

Project Structure

backend/         # FastAPI backend, routers, models, services
frontend/        # Single-page app (index.html)
scripts/         # Setup and utility scripts
tests/           # Pytest test suite
Dockerfile       # Docker build
nginx.conf       # (Optional) Nginx reverse proxy config
docker-compose.yml
.env             # Environment variables

Testing

pytest

๐Ÿ”ฎ Future Improvements

High Priority

  1. ๐Ÿ”— Advanced Asset Correlation with CPE Matching

    • Implement Common Platform Enumeration (CPE) database
    • Automatic matching of CVEs to assets using CPE strings
    • Significantly reduce false positives and improve alert accuracy
    • Support for software version tracking and affected version ranges
  2. ๐Ÿข Multi-Tenancy Support

    • Organization/team workspace isolation
    • Role-Based Access Control (RBAC) with admin, manager, and viewer roles
    • Per-organization asset and alert management
    • Team collaboration features
  3. ๐Ÿ“ข Enhanced Notification System

    • Slack integration with webhook support
    • Discord notifications for security teams
    • Microsoft Teams channel alerts
    • SMS notifications via Twilio for critical alerts
    • Per-user notification preferences (channel, frequency, severity filters)
    • Notification templates and customization
  4. ๐Ÿง  Vulnerability Intelligence Enhancements

    • CVSS score-based automatic prioritization
    • EPSS (Exploit Prediction Scoring System) integration
    • Known exploited vulnerabilities (KEV) catalog integration
    • Threat intelligence feeds (e.g., CISA, AlienVault OTX)
    • Vulnerability trending and statistics

Medium Priority

  1. ๐Ÿ“ˆ Dashboard Enhancements

    • Interactive charts and graphs (Chart.js/D3.js)
    • Vulnerability trend analysis over time
    • Asset risk scoring and heat maps
    • Customizable dashboard widgets
    • Export reports to PDF/Excel
    • Executive summary views
  2. ๐Ÿค– Automation & Integrations

    • Jira ticket auto-creation for critical vulnerabilities
    • ServiceNow integration for enterprise workflows
    • PagerDuty integration for on-call alerting
    • REST API webhooks for custom integrations
    • GitHub Security Advisory integration
    • Automated remediation workflow suggestions
  3. ๐Ÿ“‹ Compliance & Reporting

    • Compliance framework mapping (PCI-DSS, HIPAA, SOC 2, ISO 27001)
    • Automated compliance reports
    • Audit logging for all user actions
    • Vulnerability SLA tracking
    • Executive summary reports
  4. ๐ŸŽฏ AI-Powered Features

    • Machine learning for alert prioritization
    • Natural language processing for vulnerability summaries
    • Predictive analytics for vulnerability trends
    • Automated asset tagging and categorization
    • Intelligent alert grouping and correlation

Technical Improvements

  1. โšก Performance Optimization

    • Redis caching layer for API responses
    • Database query optimization and indexing
    • Elasticsearch for full-text search
    • Real-time WebSocket updates instead of polling
    • CDN integration for static assets
  2. ๐Ÿ”’ Security Enhancements

    • Two-Factor Authentication (2FA/MFA)
    • API rate limiting and throttling
    • IP whitelist/blacklist support
    • Security audit logging
    • Encrypted data at rest
    • Regular security scanning with SAST/DAST tools
  3. ๐Ÿš€ DevOps & Infrastructure

    • Kubernetes deployment manifests
    • Helm charts for easy deployment
    • CI/CD pipeline automation (GitHub Actions)
    • Automated testing (unit, integration, E2E)
    • Infrastructure as Code (Terraform)
    • Monitoring and observability (Prometheus, Grafana)
    • Log aggregation (ELK stack)
  4. ๐Ÿ’ก User Experience

    • Modern frontend framework (React/Vue/Svelte)
    • Dark mode support
    • Advanced search and filtering
    • Saved searches and custom views
    • Mobile native apps (iOS/Android)
    • In-app guided tours and help system
    • Keyboard shortcuts for power users

Troubleshooting

  • Login fails: Check .env and GitHub OAuth settings, restart backend.
  • DB errors in Docker: Run docker compose exec app python scripts/setup_database.py after first startup.
  • OAuth callback mismatch: Ensure callback URL in GitHub matches .env and how you access the app.
  • CORS issues: Update CORS_ORIGINS in .env or backend config.

๐Ÿค Contributing

We welcome contributions from the community! Whether you're fixing bugs, adding features, or improving documentation, your help is appreciated.

How to Contribute

  1. Fork the repository and create your feature branch (git checkout -b feature/AmazingFeature)
  2. Make your changes and ensure they follow the project's coding standards
  3. Test your changes thoroughly (pytest)
  4. Commit your changes (git commit -m 'Add some AmazingFeature')
  5. Push to the branch (git push origin feature/AmazingFeature)
  6. Open a Pull Request with a clear description of your changes

Development Guidelines

  • Follow PEP 8 style guide for Python code
  • Use black for code formatting
  • Add tests for new features
  • Update documentation as needed
  • Keep commits atomic and well-described

Areas We Need Help

  • Frontend modernization (React/Vue migration)
  • Additional vulnerability source integrations
  • Test coverage improvements
  • Documentation enhancements
  • Performance optimizations
  • Security auditing

๐Ÿ“ง Contact


๐Ÿ“Š Project Statistics

GitHub last commit GitHub issues GitHub pull requests GitHub

Language Composition:

  • Python (Backend, APIs, Scrapers, Services)
  • JavaScript (Frontend SPA)
  • HTML/CSS (User Interface)
  • SQL (Database Schemas)
  • Shell (Deployment Scripts)

Lines of Code: ~4,000+ lines


License

MIT

About

**CyberSec Alert SaaS** is an enterprise-ready vulnerability intelligence and security monitoring platform that automates asset correlation, alert generation, and real-time threat tracking. Built with FastAPI and PostgreSQL, it aggregates CVEs and vendor advisories (NVD, Microsoft MSRC, Cisco PSIRT, Red Hat, RSS feeds)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages