SentinelX SOC
Watch. Detect. Respond
The problem SentinelX SOC solves
SentinelX SOC — Project Documentation
🎯 The Problem It Solves
🔴 Current Security Monitoring Challenges
Problem Impact
Reactive Security Most teams discover breaches AFTER they happen
Tool Complexity Enterprise SOC tools require dedicated teams to manage
Alert Fatigue Security teams drown in false positives
Limited Visibility Small teams can't afford 24/7 monitoring
Slow Investigation Manual log analysis takes hours or days
High Cost Professional SOC platforms cost $10,000+/month
✅ How SentinelX SOC Solves These Problems
Solution Benefit
Proactive Threat Detection Catches suspicious activity BEFORE it becomes a breach
Simple Deployment Get started in minutes, not weeks
AI-Powered Triage Natural language queries replace complex SQL
Real-Time Visibility See all authentication events as they happen
Automated Risk Scoring Every event gets scored 0-100 automatically
Free to Start No cost for small teams and developers
📋 What People Can Use It For
🔐 For Small Businesses
text
✅ Monitor employee login activity
✅ Detect compromised accounts early
✅ Track remote worker access patterns
✅ Generate compliance reports (PDF)
✅ No security team required
👨💻 For Developers
text
✅ Add security monitoring to your apps
✅ Track user authentication patterns
✅ Detect brute force attacks automatically
✅ Get alerted on suspicious logins
✅ Free alternative to enterprise tools
🏢 For IT Administrators
text
✅ Centralized security dashboard
✅ User behavior analytics
✅ VPN/TOR detection
✅ Geographic access monitoring
✅ Quick incident investigation
🎓 For Students & Researchers
text
✅ Learn SOC operations hands-on
✅ Study authentication patterns
✅ Build security portfolios
✅ Understand threat detection
✅ Open-source learning platform
️ Blue Team Principles Implemented
SentinelX SOC follows defensive cybersecurity principles focused on detection, analysis, and response:
Blue Team Principle SentinelX Implementation
Continuous Monitoring Real-time event collection on every login
Threat Detection Rule-based engine identifies 8 threat types
Risk Scoring Dynamic 0-100 score per event
Alert Generation Automatic alerts for HIGH/CRITICAL events
Incident Investigation Detailed risk breakdown pages
Audit Trails Complete login history with timestamps
Defense in Depth Multiple detection layers (device, location, time, behavior)
Least Privilege SOC access requires superuser + passkey
🆚 How It's Different from Wazuh
Feature SentinelX SOC Wazuh
Target Audience Small teams, developers, students Enterprise security teams
Deployment Time 5 minutes 2-5 days
Complexity Simple, intuitive UI Complex, steep learning curve
Cost Free (with paid tiers planned) Free (but needs infrastructure)
Focus Authentication & user behavior Full SIEM (logs, files, network)
AI Assistant ✅ Natural language queries ❌ Requires manual queries
Setup Required Just deploy & login Agents, managers, indexes, rules
Infrastructure Single web service Multiple components (manager, index, dashboard)
PDF Reports ✅ One-click generation Requires custom configuration
Threat Map ✅ Built-in interactive map ❌ Requires integration
Risk Scoring ✅ Automatic (0-100) ❌ Manual rule configuration
Admin Monitoring Benefits
Task Before SentinelX After SentinelX
Check Failed Logins Query database manually Ask AI: "How many failed logins today?"
Find Risky Users Review each user's logs AI: "Which user has most failed logins?"
Investigate Alert Open multiple tools Click risk badge → See full breakdown
Generate Report Manual data collection Click "Download PDF"
Find VPN Users Complex SQL query AI: "Show VPN detections"
Check User History Database queries Click user → See complete timeline
Monitor Threats Multiple dashboards Single SOC dashboard
Response Time 30+ minutes per incident 2-5 minutes per incident
💡 Real-World Use Cases
text
┌─────────────────────────────────────────────────────────────────┐
│ SCENARIO: Remote Employee Account Compromise │
├─────────────────────────────────────────────────────────────────┤
│ 1. Employee's password leaked in data breach │
│ 2. Attacker tries login from different country │
│ 3. SentinelX detects: New Country (+20 pts) │
│ 4. SentinelX detects: Unusual Time (+10 pts) │
│ 5. SentinelX detects: New Device (+15 pts) │
│ 6. Risk Score: 45 (MEDIUM) → Alert generated │
│ 7. Admin gets notified immediately │
│ 8. Admin investigates via risk detail page │
│ 9. Admin resets password, blocks attacker │
│ 10. Breach prevented in minutes, not days │
─────────────────────────────────────────────────────────────────┘
Challenges I ran into
🚧 Problems Faced During SentinelX SOC Development
1️⃣ Deployment Issues (Render.com)
Problem Cause Fix
PostgreSQL connection failed DATABASE_URL not configured, SSL mismatch Used dj-database-url with ssl_require=not DEBUG
Static files 404 errors WhiteNoise middleware misconfigured Added middleware after SecurityMiddleware, ran collectstatic
psycopg2 build failure Wrong version (3.2.3 doesn't exist) Changed to psycopg2-binary==2.9.10 + created apt.txt
Django version doesn't exist Used Django==6.0.3 (fake version) Changed to Django==5.1.6 (actual stable release)
Future package versions pytz==2025.2, tzdata==2025.2 don't exist Changed to 2024.1 (verified versions)
2️⃣ Database Issues
Problem Cause Fix
QuerySet slicing error Filtered after slicing events[:50].filter() Got counts FIRST, then sliced
Timezone mismatch in PDFs UTC stored, user expects IST Used zoneinfo.ZoneInfo("Asia/Kolkata") to convert
Circular imports models.py ↔ threat_engine.py Used local imports inside functions
3️⃣ AI Chat Issues
Problem Cause Fix
System prompt leak AI dumped instructions when asked "explain yourself" Added anti-leak keyword detection + hardened system prompt
Username extraction failed "Give Raj status" → "User 'status' does NOT exist" Added stop words list + intent detection before extraction
Typos not handled "whcih user" → "User 'whcih' does NOT exist" Added common typos to stop words (whcih, waht, hsa)
Case-sensitive lookups "Raj" exists but "raj" → not found Used username__iexact for case-insensitive queries
VPN detection always False Placeholder functions returning hardcoded False Integrated vpnapi.io API with fallback
4️⃣ Frontend Issues
Problem Cause Fix
Text not visible on landing page Overlay too transparent (bg-black/40) Increased to bg-black/60 + added text-shadow
Risk badge links not working Custom cursor CSS broke click events Added pointer-events: auto on clickable elements
Template variables showing literally {{ ev.event_type }} displayed as text Fixed template syntax, ensured render() not JsonResponse
Custom filter not found {% replace:"_, " %} invalid Created templatetags/custom_filters.py
5️⃣ Analytics Issues
Problem Cause Fix
Charts showing empty data QuerySet not converted to list Used list() before JSON serialization
Date format mismatch Django dates not JavaScript-friendly Used strftime('%Y-%m-%d') for consistency
Timezone inconsistencies Some queries UTC, some IST Standardized all to IST with astimezone(IST)
6️ Security Issues
Problem Cause Fix
Prompt injection vulnerability AI could be tricked into revealing rules Added application-layer keyword filtering
Context binding missing "Why is this risky?" → returned global stats Required specific user/alert/event ID for vague queries
Unbounded threat speculation AI discussed threats system doesn't detect Restricted to 8 detectable threat types only
Technologies used
