| Version | Supported |
|---|---|
| v0.3.x | Yes |
| v0.2.x | Security fixes only |
| < v0.2 | No |
If you discover a security vulnerability in مخلب, please report it responsibly:
- DO NOT open a public GitHub issue
- Email: security@mkhlab.dev (or open a private security advisory on GitHub)
- Include: description, steps to reproduce, impact assessment
- We will respond within 48 hours
- All user input is sanitized before processing
- Arabic text is validated for Unicode safety before API calls
- Arabizi conversion is sandboxed (no code execution)
مخلب includes bidi-guard as a built-in skill specifically to detect and prevent bidirectional Unicode attacks (CVE-2021-42574 / Trojan Source). The arabic-preprocess hook strips dangerous bidi override characters from input.
Dangerous characters blocked:
U+202ALeft-to-Right EmbeddingU+202BRight-to-Left EmbeddingU+202CPop Directional FormattingU+202DLeft-to-Right OverrideU+202ERight-to-Left OverrideU+2066Left-to-Right IsolateU+2067Right-to-Left IsolateU+2068First Strong IsolateU+2069Pop Directional Isolate
- No API keys are stored in the repository
- All API calls use environment variables for credentials
- WhatsApp webhook uses verification tokens
- Telegram bot supports user allowlists
مخلب supports NemoClaw by NVIDIA for enhanced security:
- OpenShell sandboxing for tool execution
- Content safety guardrails
- Input/output filtering
To enable NemoClaw with مخلب:
{
"security": {
"nemoclaw": {
"enabled": true,
"guardrails": ["content-safety", "input-filter", "output-filter"],
"sandbox": "openshell"
}
}
}The sarih skill provides offline Arabic content moderation with:
- 13 content filters
- 3 severity levels (low, medium, high)
- 5 dialect coverage
- Zero external API calls (fully offline)
- مخلب runs locally — no data leaves your machine unless you configure cloud APIs
- No telemetry or analytics
- No user data collection
- WhatsApp/Telegram channels process messages in real-time with no storage
We regularly audit dependencies for known vulnerabilities. The CLI tools (arabench, khalas, sarih, etc.) are installed in isolated pipx environments.
مخلب follows responsible AI principles:
- Does not generate fatwa (religious rulings) — always redirects to scholars
- Does not provide medical diagnoses — always says "consult a doctor"
- Does not provide legal advice — always says "consult a lawyer"
- Does not engage in political or sectarian discussions
- Respects user privacy and cultural sensitivity