Real-time threat detection and security monitoring platform optimized for Windows environments
SecureVault is an enterprise-grade cybersecurity monitoring platform that provides:
- π Real-time Threat Detection - SSH brute force, malware, and anomaly detection
- π Security Analytics - Comprehensive dashboards and metrics
- π€ Automated Response - Action console for automated remediation
- π Multi-Site Management - Centralized monitoring for multiple servers
- π‘οΈ Windows Optimized - Designed specifically for Windows Server environments
π― Built for: VPBank Hackathon 2025
See DEMO_GUIDE.md for complete hackathon demo instructions.
TL;DR:
# 1. Start PostgreSQL
docker compose up -d
# 2. Backend
cd backend
npm install
npm run start:dev
# 3. Frontend (new terminal)
cd frontend
npm install
npm run dev
# 4. Generate demo threats
cd docker
.\attack-mock.ps1 -Token YOUR_AGENT_TOKENAccess: http://localhost:3000
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β Next.js βββββββΆβ NestJS βββββββΆβ PostgreSQL β
β Frontend ββββββββ Backend API ββββββββ Database β
βββββββββββββββββββ ββββββββββββββββββββ βββββββββββββββββββ
β
β WebSocket/HTTP
βΌ
ββββββββββββββββββββ
β Python Agent β
β (Windows Server)β
ββββββββββββββββββββ
Frontend:
- Next.js 15 (App Router)
- React 19
- TypeScript
- Tailwind CSS
- Zustand (State Management)
Backend:
- NestJS 10
- TypeORM
- PostgreSQL
- JWT Authentication
- Swagger/OpenAPI
Agent:
- Python 3.8+
- Windows Event Log monitoring
- Heartbeat mechanism
- Threat detection algorithms
securevault/
βββ frontend/ # Next.js Frontend
β βββ src/
β β βββ app/ # App Router pages
β β βββ components/ # React components (SOLID)
β β βββ hooks/ # Custom hooks
β β βββ lib/ # Services & API clients
β β βββ stores/ # Zustand stores
β β βββ types/ # TypeScript interfaces
β βββ package.json
β
βββ backend/ # NestJS Backend
β βββ src/
β β βββ modules/ # Feature modules
β β β βββ auth/ # Authentication
β β β βββ threats/ # Threat management
β β β βββ agents/ # Agent communication
β β β βββ incidents/ # Incident tracking
β β β βββ ...
β β βββ config/ # Configuration
β β βββ main.ts
β βββ libs/
β β βββ entities/ # Database entities
β βββ package.json
β
βββ agent/ # Python Security Agent
β βββ securevault-agent.py # Main agent
β βββ install.ps1 # Windows installer
β βββ install.sh # Linux installer (future)
β
βββ docker/ # Testing & Demo
β βββ attack-mock.ps1 # Mock attack generator
β βββ attack.ps1 # Real SSH attack test
β βββ attack.sh # Linux version
β βββ Dockerfile.agent-test
β
βββ docker-compose.yml # PostgreSQL + pgAdmin
βββ DEMO_GUIDE.md # π Hackathon demo guide
βββ POSTGRES_SETUP.md # Database setup
βββ README.md # This file
- Real-time SSH brute force detection
- IP reputation analysis
- Confidence scoring
- Threat categorization (Critical/High/Medium/Low)
- Active sites monitoring
- Critical threat counts
- Incident tracking
- System health metrics
- Windows agent deployment
- Heartbeat monitoring
- System metrics (CPU, RAM, Disk)
- Remote configuration
- Automated threat reporting
- Incident timeline
- Remediation actions
- Alert notifications
- Optimized for Windows Server
- PowerShell-based installation
- Windows Event Log integration
- Windows-specific threat detection
- Node.js 18+ LTS
- PostgreSQL 15+ (or Docker)
- Python 3.8+
- Git
git clone https://github.com/locdo-freelancer/hackathon-vpb-onebillion.git
cd hackathon-vpb-onebillioncd backend
npm installCreate .env file:
DB_HOST=localhost
DB_PORT=5432
DB_USERNAME=onebillion
DB_PASSWORD=onebillion123
DB_NAME=one_billion
JWT_SECRET=your-secret-key
JWT_EXPIRES_IN=7d
PORT=3001
NODE_ENV=development
CORS_ORIGIN=http://localhost:3000Start PostgreSQL:
docker compose up -dRun backend:
npm run start:devcd frontend
npm installCreate .env.local:
NEXT_PUBLIC_API_URL=http://localhost:3001Run frontend:
npm run dev- Frontend: http://localhost:3000
- Backend API: http://localhost:3001
- Swagger Docs: http://localhost:3001/api/docs
- pgAdmin: http://localhost:5050
- DEMO_GUIDE.md - Complete hackathon demo walkthrough
- POSTGRES_SETUP.md - Database setup guide
- DOCKER_SETUP.md - Docker deployment guide
Swagger UI available at: http://localhost:3001/api/docs
cd docker
.\attack-mock.ps1 -Token YOUR_AGENT_TOKENThis creates 5 simulated SSH brute force attacks for testing.
# Backend
cd backend
npm test
# Frontend
cd frontend
npm testcd frontend
vercel --prodcd backend
railway up
# or
git push heroku mainSee DEMO_GUIDE.md for production environment configuration.
- JWT-based authentication
- CORS protection
- SQL injection prevention (TypeORM)
- Input validation (class-validator)
- Rate limiting
- Helmet security headers
- Password hashing (bcrypt)
This is a hackathon project. For production use, please:
- Change all default secrets/passwords
- Enable HTTPS
- Configure production database
- Set up monitoring & logging
- Implement rate limiting
- Add comprehensive tests
MIT License
Project: SecureVault
Event: VPBank Hackathon 2025
Repository: https://github.com/locdo-freelancer/hackathon-vpb-onebillion
- VPBank for hosting the hackathon
- Open source community
- All contributors and supporters
β Star this repo if you find it helpful!
π Built with β€οΈ for VPBank Hackathon 2025