GitHub - First multilingual (Arabic/English/...) LLM security gateway

by
The first documented security gateway built for Arabic, Arabizi, and English — with explainable, multi-threat detection. Each input's embedding is compared against all three anchor sets via cosine similarity. The resulting 3D feature vector feeds a lightweight Logistic Regression classifier — fast, interpretable, and GPU-free. This directly solves the false-positive trap that binary classifiers fall into: a student asking "how does jailbreaking work?" is never mistaken for an attacker.

Add a comment

Replies

Best
Maker
📌
400 million Arabic speakers use LLMs every day. Before this work, zero documented security systems protected them. Prompt injection, jailbreaking, phishing, and Unicode-based attacks are now routine. Existing defenses share three blind spots: Limitation | Impact Single-threat focus : Only catches one attack type at a time English-only : Blind to Arabic and Arabizi (Arabic typed in Latin script) No explainability : Black-box decisions with zero rationale