Skip to content

MLidstrom/Castellan

CastellanAI Logo

GitHub Tag Open Source .NET Windows License AI MITRE

AI-Powered Security Monitoring


Castellan - a governor or warden of a castle or fort, responsible for its defense and administration. The term originates from Medieval Latin castellanus, meaning keeper of a castle. πŸ”— Source: Merriam-Webster Dictionary

CastellanAI is an enterprise-grade security monitoring platform that transforms event logs into actionable security intelligence using AI-powered analysis, vector search, and real-time threat correlation.

Enterprise Features: Thousands of events/sec processing β€’ Vector similarity search β€’ Advanced correlation engine β€’ Real-time Teams/Slack alerts β€’ 800+ MITRE ATT&CK techniques β€’ VirusTotal/MalwareBazaar integration β€’ Complete malware detection with auto-updates β€’ Human-in-the-loop action execution with rollback β€’ Trend forecasting β€’ Timeline visualization β€’ Export capabilities β€’ Centralized configuration management β€’ Single consolidated database architecture

2-Minute Setup: 3 required fields β†’ .\scripts\start.ps1 β†’ Open http://localhost:3000 β†’ Start monitoring

CastellanAI in Action
CastellanAI platform overview - AI-powered security monitoring in action

Disclaimer

This is an open source, experimental security monitoring platform intended for research, education, and testing purposes.

Usage Guidelines

  • Not for Production: This software is not recommended for production environments without thorough testing and customization
  • No Warranty: This software is provided "as is" without any warranties or guarantees of security effectiveness
  • User Responsibility: Users are solely responsible for:
    • Testing and validating all security features before deployment
    • Ensuring compliance with their organization's security policies
    • Implementing appropriate backup and disaster recovery procedures
    • Monitoring and maintaining the system in their environment

Security Considerations

  • Experimental Features: Some features may be experimental or in development
  • Regular Updates: Security threats evolve rapidly - ensure you keep the system updated
  • Professional Review: Have qualified security professionals review your implementation
  • Compliance: Verify compliance with applicable regulations and standards

Liability Limitation

The authors and contributors of CastellanAI disclaim all liability for any damages, losses, or security incidents that may occur from the use of this software.

Production Recommendations

For production deployments, consider:

  • CastellanAI Pro - Commercial enterprise version with professional support, SLA guarantees, and production-ready features
  • Professional security consulting
  • Comprehensive testing and validation
  • Regular security audits and penetration testing

Key Features

  • Conversational AI Chat - Natural language security queries with context-aware responses, Markdown formatting, and human-in-the-loop action execution
  • Action Execution System - Execute security actions (BlockIP, IsolateHost, QuarantineFile, AddToWatchlist, CreateTicket) with full rollback capability
  • AI-Powered Analysis - LLM-based threat classification with vector similarity search
  • Real-time Detection - EventLogWatcher-powered live Windows Event Log monitoring with sub-second threat correlation
  • Advanced Correlation - Attack chain detection, temporal bursts, lateral movement, and privilege escalation patterns
  • Enterprise Scale - Thousands of events/sec processing with optimized performance
  • Smart Notifications - Customizable Teams/Slack templates with rich formatting and adaptive rate limiting
  • MITRE Integration - Auto-updated 800+ ATT&CK techniques with threat mapping
  • Threat Intelligence - VirusTotal, MalwareBazaar, AlienVault OTX with configuration UI
  • Malware Detection - Complete signature-based detection with automatic rule updates and deduplication
  • Threat Scanner - On-demand Quick/Full scans with real-time progress tracking, scheduled scanning, quarantine management, and exclusions
  • Timeline Visualization - Interactive security event timeline with granular analysis
  • Data Export - CSV, JSON, PDF export with filtering and background processing
  • Enterprise Security - BCrypt passwords, JWT tokens, audit trails

Screenshots

CastellanAI Dashboard
Real-time security monitoring dashboard with live threat intelligence

AI Chat
Natural language AI chat interface for conversational security analysis and threat investigation

Notifications Configuration
Centralized notification settings for Microsoft Teams and Slack integration

Quick Start

Prerequisites

Installation

  1. Clone repository

    git clone https://github.com/MLidstrom/castellan.git
    cd castellan
  2. Configure authentication

    $env:AUTHENTICATION__JWT__SECRETKEY = "your-secure-jwt-secret-key-minimum-64-characters"
    $env:AUTHENTICATION__ADMINUSER__USERNAME = "admin"
    $env:AUTHENTICATION__ADMINUSER__PASSWORD = "your-secure-password"
  3. Install AI models (if using Ollama)

    ollama pull nomic-embed-text
    ollama pull llama3.1:8b-instruct-q8_0
  4. Start services

    .\scripts\start.ps1
  5. Access dashboard: Open http://localhost:3000

⚠️ Security Note: See Configuration Setup for detailed setup instructions.

Why CastellanAI?

Production-Ready Enterprise Platform

  • AGPL-3.0 Licensed - 100% open source with complete transparency and strong copyleft
  • 2-Minute Setup - Simplified configuration with only 3 required fields
  • Enterprise Scale - 12K+ events/sec with snapshot caching for <50ms instant page loads
  • AI-First - Vector search + LLM analysis built-in
  • Zero Vendor Lock-in - Fork, modify, deploy anywhere

vs. Traditional SIEM Solutions

Feature CastellanAI Splunk/QRadar/ELK
Deployment 2 minutes Weeks to months
AI/ML Built-in LLM + Vector Add-on modules
Customization Full source access Vendor limited
Cost Free + self-hosted $$$$ + licensing
Windows Focus Native optimization Generic approach

Documentation

Complete Documentation Index - Master documentation hub with organized access to all guides, features, and technical references.

Quick Reference

Topic Description
Release Notes v1.0.0 What's new in v1.0.0 - first official production release
Known Issues Current limitations, known issues, and workarounds
Quick Start Guide Complete installation and setup instructions
Features Comprehensive feature overview and capabilities
YARA Detection Signature-based malware detection and rule management
Configuration Authentication, AI providers, centralized settings management
Notifications Teams/Slack integration via Configuration tab
Architecture System architecture, security, and observability
Performance Performance metrics, benchmarks, and optimization
Troubleshooting Common issues and solutions

For the complete documentation catalog including API references, build guides, security features, integrations, and specialized guides, visit docs/README.md.

Community & Support

License

This project is licensed under the GNU Affero General Public License v3.0 (AGPL-3.0) - see the LICENSE file for details.

The AGPL-3.0 license ensures that any modifications to CastellanAI, including those used to provide network services, must be made available under the same license terms.

Trademark Notice

The name Castellan / CastellanAI and the official logo are trademarks of Mats L. Canderfalk. Forks and derivatives must not use the same name or branding in a way that suggests official support.


CastellanAI - Your digital fortress guardian. 🏰

Built with ❀️ by the open source community

About

🏰 AI-powered Windows security monitoring with conversational AI chat for natural language threat hunting. Features human-in-the-loop actions, YARA malware detection, MITRE ATT&CK mapping, vector search & threat intelligence. React dashboard with real-time updates. 12K+ events/sec. .NET 8, Ollama/OpenAI, Qdrant.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Contributors