AI RAG · Security Log Analytics

ROGLAG
Threat Intelligence Console

ระบบตรวจจับความเสี่ยงจาก security log แบบเรียลไทม์ ด้วย rule-based detection + RAG + vector search — รันได้ตั้งแต่ออฟไลน์จนถึง production

RealtimeRAGQdrant Self-hostDocker
ความสามารถ

ทำอะไรได้บ้าง

ภาพรวมสิ่งที่ทำ

สรุปสิ่งที่สร้าง

🛡️ Console + Detection

Dashboard ภาษาไทย + rule classifier 7 ภัย + MITRE ATT&CK

💬 RAG Q&A

ถามไทย → ดึงหลักฐาน → สรุป + next action

⚡ Realtime + Generator

จำลอง log สด, live monitor, สร้าง/อัปโหลด CSV

🌐 Qdrant + Docker

vector RAG จริง + self-host รันคำสั่งเดียว

สถาปัตยกรรม

Data flow (โดยสรุป)

Log / CSV / Mock Classify Qdrant
semantic search
RAG + API Dashboard

มี fallback ทุกชั้น: Qdrant → SQLite vector → keyword → rule-based. ระบบไม่ล่มแม้ไม่มี key หรือเน็ต

Detection layer

Rule-based classifier

  • brute_force T1110
  • port_scan T1046
  • web_attack T1190 · SQLi/XSS
  • priv_esc T1068/T1548
  • data_exfil T1041
  • c2_beacon T1071
  • benign baseline
  • แต่ละหมวด → risk score + runbook แนะนำ

ทำงานออฟไลน์ 100% ไม่ต้องพึ่งโมเดล จึงเร็วและอธิบายผลได้

Realtime features

Generator & Live monitor

Production vector RAG

Qdrant ใช้งานจริงแล้ว

2048
vector dims
Cosine
distance
~0.58
semantic score
Tech stack

เทคโนโลยีที่ใช้

เดโม่ (รันทันที)

  • Python 3.12 · http.server stdlib
  • Vanilla JS + Three.js (globe)
  • Rule classifier + TF-IDF
  • In-memory + SQLite

Production

  • FastAPI + Uvicorn
  • SQLAlchemy + PostgreSQL
  • Qdrant + OpenRouter
  • Docker + docker-compose
Deploy / Self-host

รันได้จริง ทุกระดับ

ก้าวต่อไป

Roadmap

Ingestion จริง

Vector/Fluent Bit → queue → worker classify+embed

Automation

n8n: alert → enrich (threat intel) → ticket/notify (optional)

Auth & Scale

API auth, Redis pub/sub สำหรับ realtime หลาย worker

Observability

Prometheus + Grafana, retention/partition

สรุป

จาก demo สู่
production-ready

ตรวจจับ → ค้นหาเชิงความหมาย (Qdrant) → สรุปด้วย RAG → เห็นผลแบบเรียลไทม์ ทั้งหมดใน console เดียว self-host ได้จริง

localhost:8000/techstack.html/plan

ขอบคุณครับ 🙏

1 / 11
← → / Space เลื่อน · F fullscreen