Report a security problem in private, with a new security advisory. Do not use a Discussion, an issue, or a pull request for it. Give the commit of jcode, the version of ztcl, the platform, and the steps.
The project answers in the advisory. It gives no dates.
A problem of ztcl itself (an isolation level, a capability, a limit) goes to the advisories of ztcl.
jcode runs coding agents. An agent reads and writes the files of its work folder, and, with --run, runs commands. The daemon calls the model provider (AWS Bedrock) with the AWS credentials of the user. It listens on 127.0.0.1 only.
The level applies to the commands of the run tool. The file tools stay inside the work folder at each level. They follow each link and refuse a result outside the folder.
| Level | Protects | Does not protect |
|---|---|---|
none |
Nothing. | A command has the full power of the user: each file of the user, each credential in the home folder, the network, and each process of the user. |
process |
A command can change only the work folder and the paths of --write. It has no network unless --net. It has the memory and process limits of a cgroup. |
A command can read each file that the user can read, also credentials. With ztcl 1.0.0-beta.7 it can look up names with the network off (beetlebugorg/ztcl#1328). It needs Linux with Landlock, user namespaces, and cgroup v2. |
vm |
A command runs in a new Linux guest for each call. It sees only the work folder and has no network unless --net. |
A fault of the guest kernel or of KVM. The work folder is shared: a command can change each file in it, also the .git folder. |
--netgives a command the network. With the network, a command can send each file that it can read to another host. At the levelprocess, that is each file of the user.none, and--netat the levelprocess, give the agent the power of the user. Use them only with a model and a brief that you trust, or on a machine with no secret.- The
checktool runs a command of the coordinator at the levelnone. The agent cannot change the command, but it can change the files that the command reads, such as aMakefileor a test. - A change of an agent is not reviewed. Read the diff (
jcode diff ID) before you merge it or run it.
- A request to the daemon that runs without the token or a passkey session: an error of the Host, Origin, token, session, or CSRF check.
- Text of a model or of a tool that runs as code in the web page, or as an escape sequence in a terminal.
- A path of a tool call that reads or writes outside the work folder and the paths of
--write. - A command of the
runtool that gets more than its level gives, as this page says. - A reply of a model or a tool output that ends the daemon.
- An agent at the level
none, or with--net, that uses the power of the user. - A local process of the same user. It can read the token file and the state folder.
- A model that writes bad code into the work folder.