Please report a vulnerability privately through GitHub: the repository's
Security tab, "Report a vulnerability". Do not open a public issue for
it. Include what an attacker can do, the steps or a proof of concept, and
the version (VERSION). You will get an answer as soon as the report has
been read, and a fix or a plan before anything is made public.
The models are not trusted. What they write runs only in the sandbox (docs/CONFINE.md): no network, a read-only home, writes only under the command's scratch directory, a separate PID namespace, resource limits and a deadline. A Lean file is compiled only after the precheck refuses commands and compile-time code. A way for model output to escape these limits is a vulnerability.
The desk, Hugging Face and the model endpoints are not trusted either: their answers are checked for shape before they are used, and a step's file names are checked before anything is written.
- Your own user account. The worker, the canvas and the browser run
as you. Anyone who can write to the state directory can command the
worker (
commands/) and read its prompts and the browser profile, so the worker keeps that directory private (mode 700). - Other programs on the machine. The browser for the web chats listens for the DevTools protocol on 127.0.0.1; any local program can drive it while it runs, with your sign-ins.
- A host without the kernel features. Without unprivileged user namespaces or Landlock the sandbox is weaker; the worker says so at start and on the Setup plate, and runs anyway.
- The project's checker and the toolchain.
lake,leanand the project'scheck-lean.mjsrun on the host from your project clone.
API keys are read from the environment variables named in a model's
api_key_env, never from a file, and are never written to the state
directory or the log. A browser-driven web chat keeps its sign-in in the
browser profile under the state directory.