Skip to content

vrunalp199/Athena-AI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

11 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ›‘οΈ Athena AI

Athena AI

GitHub Repo Stars Focus Model Training Vector DB Architecture Knowledge Base Status Purpose License

Enterprise-grade cybersecurity AI assistant powered by Qwen3.6-27B, Cyber LoRA, Retrieval-Augmented Generation (RAG), and a large-scale cybersecurity knowledge base.

---

πŸ“– Overview

Athena AI is an advanced cybersecurity-focused Large Language Model (LLM) platform designed to assist security researchers, penetration testers, SOC analysts, students, and cybersecurity professionals.

The project combines:

  • Qwen3.6-27B
  • Cybersecurity-specific LoRA Fine-Tuning
  • Qdrant Vector Database
  • Retrieval-Augmented Generation (RAG)
  • Large-scale Cybersecurity Knowledge Base

Athena AI is designed to provide intelligent cybersecurity assistance through contextual reasoning, semantic search, threat intelligence retrieval, vulnerability analysis, and security research support.


✨ Features

AI Capabilities

  • Intelligent Cybersecurity Assistant
  • Context-Aware Conversations
  • Long-Term Memory System
  • Threat Intelligence Analysis
  • Vulnerability Research Assistance
  • Security Report Generation
  • Log Analysis
  • Malware Research Support
  • Incident Response Guidance

Retrieval Capabilities

  • Semantic Search
  • Vector Similarity Search
  • Context Retrieval
  • Large-Scale Knowledge Base Querying
  • Real-Time Information Injection

πŸ— System Architecture

                        β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                        β”‚      User       β”‚
                        β””β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                 β”‚
                                 β–Ό
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚   Athena AI Interface β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                β”‚
                                β–Ό
                   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
                   β”‚ Memory & Context Layer β”‚
                   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                β”‚
          β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
          β”‚                     β”‚                     β”‚
          β–Ό                     β–Ό                     β–Ό

   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”      β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚   Qdrant    β”‚      β”‚ Cyber LoRA  β”‚      β”‚ Tool Layer  β”‚
   β”‚ Vector DB   β”‚      β”‚             β”‚      β”‚             β”‚
   β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜      β””β”€β”€β”€β”€β”€β”€β”¬β”€β”€β”€β”€β”€β”€β”˜
          β”‚                    β”‚                    β”‚
          β–Ό                    β–Ό                    β–Ό

   β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
   β”‚               Qwen3.6-27B Base Model              β”‚
   β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜
                                β”‚
                                β–Ό
                        Final Response

πŸ›  Technology Stack

Artificial Intelligence

Component Technology
Base Model Qwen3.6-27B
Fine-Tuning QLoRA
Framework Unsloth
Quantization 4-Bit
Precision BF16
Embeddings BGE-Large

Backend

Component Technology
Language Python
API Flask
Database SQLite
Vector Database Qdrant

πŸš€ Training Infrastructure

Training is performed using cloud GPU infrastructure.

Component Specification
Provider RunPod
GPU NVIDIA H100 SXM
VRAM 80GB
CUDA 12.x
OS Ubuntu 22.04
Framework PyTorch
Fine-Tuning Library Unsloth
Optimization Flash Attention

🧠 Fine-Tuning Pipeline

Cybersecurity Dataset
          β”‚
          β–Ό
Data Cleaning
          β”‚
          β–Ό
Instruction Formatting
          β”‚
          β–Ό
Tokenization
          β”‚
          β–Ό
Qwen3.6-27B Base
          β”‚
          β–Ό
QLoRA Fine-Tuning
          β”‚
          β–Ό
Cybersecurity LoRA
          β”‚
          β–Ό
Evaluation
          β”‚
          β–Ό
Deployment

Fine-Tuning Configuration

Model: Qwen3.6-27B
Method: QLoRA
Quantization: 4-Bit
Precision: BF16
Optimizer: AdamW
Framework: Unsloth

πŸ” Retrieval-Augmented Generation (RAG)

Athena AI uses Retrieval-Augmented Generation (RAG) to provide factual and up-to-date cybersecurity knowledge.

RAG Flow

User Query
     β”‚
     β–Ό
Query Embedding
     β”‚
     β–Ό
Qdrant Search
     β”‚
     β–Ό
Top Relevant Chunks
     β”‚
     β–Ό
Context Assembly
     β”‚
     β–Ό
Qwen3.6-27B + Cyber LoRA
     β”‚
     β–Ό
Generated Response

πŸ“š Knowledge Base

Current target knowledge base:

95+ GB Cybersecurity Data

Sources:

  • CVE Databases
  • MITRE ATT&CK
  • Security Advisories
  • Threat Intelligence Reports
  • Malware Analysis Reports
  • Security Blogs
  • Security Documentation
  • Research Papers
  • Incident Response Playbooks

πŸ”— Embedding Configuration

Embedding Model:

BAAI/bge-large-en-v1.5

Alternative:

nomic-embed-text

Configuration:

Chunk Size: 1000
Chunk Overlap: 150
Top K: 10
Distance Metric: Cosine

πŸ“‚ Project Structure

Athena-AI/
β”‚
β”œβ”€β”€ app.py
β”œβ”€β”€ requirements.txt
β”œβ”€β”€ README.md
β”‚
β”œβ”€β”€ ai/
β”‚   β”œβ”€β”€ llm.py
β”‚   β”œβ”€β”€ memory.py
β”‚   └── prompts/
β”‚
β”œβ”€β”€ rag/
β”‚   β”œβ”€β”€ embeddings.py
β”‚   β”œβ”€β”€ qdrant_client.py
β”‚   └── retrieval.py
β”‚
β”œβ”€β”€ datasets/
β”‚
β”œβ”€β”€ tools/
β”‚   β”œβ”€β”€ report_generator.py
β”‚   β”œβ”€β”€ log_analyzer.py
β”‚   └── file_manager.py
β”‚
β”œβ”€β”€ templates/
β”‚
└── workspace/

βš™ Installation

git clone https://github.com/vrunalp199/Athena-AI

cd Athena-AI

python -m venv venv

Activate environment:

Linux:

source venv/bin/activate

Windows:

venv\Scripts\activate

Install dependencies:

pip install -r requirements.txt

πŸ—„ Qdrant Setup

Using Docker:

docker run -p 6333:6333 \
-v $(pwd)/qdrant_storage:/qdrant/storage \
qdrant/qdrant

Verify:

http://localhost:6333/dashboard

πŸ“ˆ Embedding Generation

Install dependencies:

pip install sentence-transformers
pip install qdrant-client

Example:

from sentence_transformers import SentenceTransformer

model = SentenceTransformer(
    "BAAI/bge-large-en-v1.5"
)

embedding = model.encode(
    "Explain SQL Injection"
)

🌐 Deployment Architecture

Internet
    β”‚
    β–Ό
Flask API
    β”‚
    β–Ό
Athena AI Core
    β”‚
    β”œβ”€β”€ Memory System
    β”‚
    β”œβ”€β”€ Qdrant Vector DB
    β”‚
    └── Qwen3.6-27B
            β”‚
            β–Ό
      Cyber LoRA
            β”‚
            β–Ό
        Response

πŸ“Š Performance Targets

Metric Target
Model Qwen3.6-27B
Dataset 95+ GB
Embeddings GE-Large
Vector DB Qdrant
Retrieval Latency < 2 sec
Deployment Docker
GPU H100/A100

πŸ›£ Roadmap

Phase 1

  • Core AI Assistant
  • Memory System
  • Prompt Engineering

Phase 2

  • Cybersecurity LoRA
  • Advanced RAG
  • Vector Search Optimization

Phase 3

  • Multi-Agent Architecture
  • Threat Intelligence Agent
  • Malware Analysis Agent

Phase 4

  • SIEM Integration
  • Security Automation
  • Enterprise Deployment

⚠ Disclaimer

Athena AI is intended for educational purposes, cybersecurity research, defensive security operations, and authorized security testing only.

Users are responsible for complying with all applicable laws and regulations.


πŸ“œ License

MIT License


πŸ‘¨β€πŸ’» Author

Vrunal Patil
Computer Science Student
Cybersecurity Researcher, - AI Developer
⭐ If you find this project useful, consider starring the repository

About

Enterprise-grade cybersecurity AI assistant powered by Qwen3.6-27B, Cyber LoRA, Retrieval-Augmented Generation (RAG), and a large-scale cybersecurity knowledge base.

Resources

License

Stars

2 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors