KIMI-3: Kimi Code's file tools follow symlinks out of the working directory, despite its documentation

Short version. Kimi Code's documentation says file tools are blocked from reaching files outside the working directory through symlinks. In our tests the Read tool followed a symlink inside the working directory to a file outside it, and sent that file's contents to the model.

What we saw. A project folder contained an ordinary file and a symlink pointing to a file outside the project, holding a planted fake secret. Asked only to read and summarise the files in the folder, with the shell disabled so the file tools were the only route, Kimi Code read through the symlink and the fake secret appeared in the request sent to the model. This happened in the version we reported (2.2.0) and again, twice, on 2.6.2, the latest release when we retested on 14 November 2026.

What the documentation says. The 2.1.0 changelog, and the documentation still published for 2.6.2, say: "Harden workspace security: block file tools from accessing files outside the working directory through symlinks".

Why it matters. Repositories can contain symlinks. A project an agent is asked to work in can therefore point it at files elsewhere on the machine, such as keys or credentials, and those contents go to the model provider. The documented protection is the thing that should stop this, and it did not.

What to do. Do not rely on Kimi Code's symlink protection. Run it on untrusted repositories only in a container or sandbox that cannot see your real files.

Since our retest. Moonshot released Kimi Code 2.7.0 on 19 November 2026, after the disclosure window closed (GitHub release page, checked 20 November 2026). Its release notes do not mention symlinks or file-tool boundaries, and we have not retested it because Moonshot has not acknowledged our report. The findings above apply to the versions named.

Timeline