Skip to content

Security: MuaraAI/Mora

SECURITY.md

Security Policy

Language: English | Bahasa Indonesia

Supported Versions

Only the current release branch receives security fixes:

Version Supported
0.1.x Yes

Reporting a Vulnerability

Please do not report security vulnerabilities through public GitHub Issues or Discussions.

Instead, report security issues privately using GitHub Private Vulnerability Reporting / Security Advisories or direct maintainer email:

When reporting an issue, please include:

  1. Mora version / commit hash, OS, and CPU architecture.
  2. Execution mode involved (mora check, mora run, mora build, --vm, --native, --shared, or mora lsp).
  3. Minimal .mr program or malformed input (e.g. GGUF, JSON, HTTP request, LSP payload) triggering the issue.
  4. Expected vs observed impact (memory corruption, panics, arbitrary file/command access, or secret leakage).

We aim to acknowledge private advisories promptly and coordinate remediation before any public disclosure.


Security Scope in Mora

Security reports are especially welcome for:

  • Native C99 Codegen & GGUF Parser (--native, --shared, gguf.*): Memory safety, integer overflows, out-of-bounds reads, and untrusted .gguf model file parsing (src/gguf.rs, src/codegen_native.rs).
  • HTTP Client/Server & LLM Secrets (http.*, llm.*, --trace): HTTP/1.1 framing, TLS fallback, server request parsing (http.serve), and guaranteeing MORA_LLM_API_KEY redaction (***) in traces and error diagnostics (src/runtime.rs, src/interpreter.rs).
  • Python Bridge Isolation (py.eval, py.call): Worker boundary serialization and strict output validation (src/py_bridge.rs).
  • LSP Server (mora lsp): Input size limits (MAX_CONTENT_LENGTH) and workspace module resolution (import traversal) in src/lsp.rs and src/module_loader.rs.

Credential Hygiene for Users

  • Never hardcode MORA_LLM_API_KEY or tokens inside .mr source files or commit .env files to version control.
  • Use examples/.env.example as a safe template and keep real credentials in environment variables or gitignored .env files.
  • Prefer --trace rather than manual print debugging when inspecting API traffic so Mora redacts your API key automatically.

There aren't any published security advisories