layerfs@0.4.0
CAUTION· startup onlyPublisher claims: "Enables Claude Code, Codex, Cursor, and other MCP clients to run agent file edits and shell commands inside isolated copy-on-write workspace branches guarded by a kernel-level macOS Seatbelt sandbox. Exposes tools to inspect status, diff, merge branches, and apply changes back to the real project folder only on explicit request." Observed in sandbox: no network, touches nothing outside the project, writes no memory.
Coverage
Startup only; authenticated tool behavior not tested.- Tested
- server startup over stdio (initialize sent) · every file read, file written and host contacted by what ran
- Not tested
- the tool list (the server exited before answering) · what the tools do when called with real credentials
What this means for the label: Caution here covers what ran. The server's tools were not exercised with a real credential, so nothing about their behavior is asserted; the credential summary below says what to do with that.
Behavior
In our sandbox run on 2026-11-14, [email protected] read no files and called no hosts, and its code names 40 environment variables. Coverage: startup only.
Files read
None recorded.
Hosts called
None recorded.
Environment variables its code names
EPI_LFS_BUNDLE, EPI_LFS_IMAGE, EPI_LFS_KEEP, EPI_LFS_MODE, EPI_LFS_NET, EPI_LFS_ONLY, EPI_LFS_SRC_COPY_FROM, EPI_TASK_JOB_ID, LAYERFS_, LAYERFS_NATIVE, LAYERFS_NFS_MOUNT, LAYERFS_SANDBOX, LFS_BUNDLE, LFS_MATRIX, LFS_PREWARM, LFS_PROJECT, LFS_ROUNDS, LFS_SOURCE, LOGNAME, MINILFS, MINILFS_BASH_TIMEOUT_S, MINILFS_BRANCH_NAME, MINILFS_BRANCH_ONLY, MINILFS_BUNDLE
16 more in behavior.json
Names only, read from the code. We never hold a value.
Tools offered
No tool list recorded.
Changes since the prior version
No prior version with a result to compare.
What we did not test
- the tool list (the server exited before answering)
- what the tools do when called with real credentials
| Run date | 2026-11-14 |
| Coverage | startup only |
| Engine | 1.9.2, script@linux |
| Reproduce | npx -y vet-skills try layerfs |
| This record | behavior.json, behavior.md, signed attestation |
This is a record of what one version did in the runs we made. It is evidence, not a certificate.
Before you give it your token
- It will ask for
- no credential variables read in the code
- Where it talks to
- no vendor host named in the codeAlso rustup.rs — not the publisher's domain; check what for before connecting.
- What we saw when it ran
- no credential files read · no network
- What we could not test
- the tool list (the server exited before answering) · what the tools do when called with real credentials
Connect it under the guard. Startup only; authenticated tool behavior not tested. The code names no credential variable; the guard pins the network to what the honeypot saw and logs every call.
Never paste a credential into a chat, a ticket or a report, including ours. How the guard holds it.
Is [email protected] safe to install?
KillerSkills ran it in the KillerSkills honeypot sandbox (2 scenarios; startup only; authenticated tool behavior not tested) on 2026-11-14 and scored it 75/100 (Caution). It is not known to be malicious, but it has behaviour or code a security policy should decide on before install. Notable findings: Access to sensitive file paths; Access to sensitive file paths; Access to sensitive file paths. Summary: no network, touches nothing outside the project, writes no memory.
Behavior trace
Honeypot run · 20 s · 2 scenarios · 0 deviationsStatic findings
await t("fs.stat .env imported?", () => lfs.fs.stat("a", "/.env"));Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.writeFileSync(join(SRC, ".env"), "SECRET=should-not-be-imported-blindly\n");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.const r = sh("rsync", ["-a", "--exclude=.env", "--exclude=.env.*", "--exclude=*.pem", "--exclude=*.key", `${process.env.EPI_LFS_SRC_COPY_FROM}/`, `${SRC}/`], { timeout: 600_000 });Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.for (const p of [".env", "a/b/.env", ".ENV", "app/.env.local", "deep/x.KEY", "secrets/a.txt", "x/secrets/a.txt"]) assert.equal(isExcludedPath(p, E), true, p);Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.assert.equal(readFileSync(join(cwd, ".env"), "utf8"), "TOKEN=secret\n");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.this.log(`git join could not put the Workspace's index back (${result.why}); the Workspace is discarded, the Branch's .git is unchanged`);Fix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.assert.equal(await sA.exists(join(cwd, ".env")), false, "excluded .env must not exist in Store");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.printf 'API_KEY=do-not-leak\n' > .envFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.record("local client kill leaves remote process (expected true)", orphan.length > 0, orphan || "(none)");Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.writeFileSync(join(dir, ".env"), "SECRET=production-secret\n");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.sh("bash", ["-c", `printf %s "$1" | docker exec -i ${ctr} sh -c 'cat > /tmp/cancel-${id}.sh; chmod 755 /tmp/cancel-${id}.sh'`, "_", body]);Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.writeFileSync(join(dir, ".env"), "SECRET=host-production\n");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.await s2.mutate("1", "bash", () => s2.exec("chmod +x run.sh", cwd2, { onData: () => {} }));Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.worker.exec("echo '#!/bin/sh\necho test' > test.sh && chmod +x test.sh && ln -s test.sh link-test.sh", cwd, { onData: () => {} })Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.assert.doesNotMatch(text(l), /\.env/);Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.chmod +x "${BUNDLE}/layerfs-daemon" "${BUNDLE}/layerfs.node"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.* Converts a glob pattern (e.g. ".env", ".env.*", "*.pem", "secrets/*.key") into an anchoredFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.// 6. killing the local docker client does NOT stop the remote command (expected) -> must kill remotelyFix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.worker.exec("chmod +x run.sh", cwd, { onData: () => {} })Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.await step("P0-1 & P0-4: multi-session apply + publish never reverts sibling session's applied files and never overwrites .env", async () => {Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.excludes: [...resolveConfig().excludes, "*.env", "**/secrets/*.key", "secrets/"],Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.const [r] = await run([["read", { path: ".env" }]]);Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.await sA.exec("cat ~/.ssh/id_ed25519 2>&1 || cat ~/.ssh/config 2>&1", cwd, { onData: (d) => chunksSsh.push(d.toString()) });Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.if (existsSync(join(homedir(), ".ssh"))) { arm(join(homedir(), ".ssh")); await assert.rejects(s.readdir(flip), denied, "readdir ~/.ssh"); }Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.await step("3.3 kernel-level secret read protection (denyRead): reading .env, app/.ENV, secrets/api.key fails with EPERM", async () => {Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.await step(".env is not visible in the workspace", async () => {Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.// Global unanchored exclude patterns (e.g. .env, *.pem, *.key), carving out system CA certificate rootsFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.…N.stringify(script), MINILFS_ROOT: join(base, "lfs"), MINILFS_PREFIX: PREFIX, ...env }; } function piAsync(script) { return new Promise((resolve) => { const c…Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.const resEnv = await sA.lfs.fs.apply(sA.workBranch, [{ op: "write", path: "/.env", bytes: Buffer.from("ROGUE=1\n") }], "rogue env");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.writeFileSync(join(cwd, ".env"), "TOKEN=secret\n");Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.assert.equal(await sA.exists(join(cwd, ".env")), false);Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.` kill -KILL -- "-$_cpid" 2>/dev/null || true`,Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.….exec(ws, "echo new > added.txt && echo changed >> shared.txt && rm crlf.txt && chmod +x src/app.js && ln -sf shared.txt link-to-app && mkdir -p d/e && printf '\\000\…Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.await step("3.4 outside credential protection: reading $HOME/.ssh or $HOME/.epi/pi/auth.json fails with EPERM", async () => {Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.…the user's repository, let a sandboxed agent escape or run code on the host, or kill an unrelated process in a realistic scenario. Theoretical issues, or ones that n…Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.await step("S1 outside reads are checked by the kernel: an ancestor swapped for a symlink to the root (or ~/.ssh) after the check is refused", async () => {Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.if (existsSync(join(homedir(), ".ssh"))) { arm(join(homedir(), ".ssh")); await assert.rejects(s.readdir(flip), denied, "readdir ~/.ssh"); }Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.` kill -TERM "$_wpid" 2>/dev/null || true`,Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.node -e 'fetch("http://1.1.1.1").catch(e => console.log("FETCH_ERR:" + (e.cause?.code || e.message)))'Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.… writeFileSync(fake, `#!/usr/bin/python3\nimport subprocess, sys, json\nr = subprocess.run(["/usr/bin/python3"] + sys.argv[1:], capture_output=True, text=True)\nif r.retur…Fix: Build commands from fixed arguments, never from interpolated strings; prefer an API client over shelling out.chmod +x "${STAGE}/api/agent/cli/src/layerfs.js"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts."Files outside the working directory are read-only. Secret files such as .env are not imported. .lww and protected .git files cannot be written.",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.* pattern (last match wins), e.g. `.env.*` then `!.env.example`.Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.".env", ".env.*", "!.env.example", "!.env.sample", "!.env.template", "!.env.dist", "!.env.defaults",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.node -e 'fetch("http://1.1.1.1").catch(e => console.log("FETCH_ERR:" + (e.cause?.code || e.message)))'Fix: Replace encoded or assembled strings with plain literals and remove undeclared network calls.await sA.exec("cat ~/.ssh/id_ed25519 2>&1 || cat ~/.ssh/config 2>&1", cwd, { onData: (d) => chunksSsh.push(d.toString()) });Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.// Session A edits README.md, adds a-only.txt, and tries to create a rogue .envFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.".netrc", ".git-credentials", ".npmrc", ".pypirc", ".pi/agent/auth.json", ".epi/pi/auth.json", "auth.json",Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.…cp,port=65530,mountport=65530 127.0.0.1:/ /private/tmp/mnt-test-$$ 2>&1; rc=$?; rm -rf /private/tmp/m-$$ /private/tmp/mnt-test-$$; exit $rc", cwd, { onData: (d) => chun…Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.assert.equal(sh("timeout 10 sh -c 'kill -TERM $$'"), "rc=143");Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.chmod +x "${BUNDLE}/api/agent/cli/src/layerfs.js"Fix: Request the narrowest permission that works; replace wildcards with the exact paths or hosts.// `!pattern` re-includes (e.g. `!.env.example`): denies use the plain patterns, then theFix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.`sleep 3 & P=$!; sleep 0.2; command -v ps; ps -o rss= -p $P; echo "rc=$?"; /bin/ps -o rss= -p $P >/dev/null 2>&1; echo "setuid_rc=$?"; kill $P`,Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.…ark"`, ` ( exec </dev/null >/dev/null 2>&1; sleep "$_dur" & _s=$!; trap 'kill -KILL $_s 2>/dev/null; exit 0' TERM; wait $_s && : > "$_mark" && kill -TERM -- "…Fix: Build commands from fixed arguments; do not interpolate untrusted strings into a shell.for (const p of ["src/env.ts", "envs/a", "secrets.md", ".env.example", "a/.ENV.Sample", ".env.template"]) assert.equal(isExcludedPath(p, E), false, p);Fix: Stop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.await s.mutate("2", "write", () => s.writeFile(join(cwd, "n.txt"), "n\n")); // ...and puts it back as it isFix: Remove the call, or declare the host in frontmatter and explain in the README what is sent and why.Cost to the agent
Tokens estimated at four characters each. The tool list is re-read by the agent on every turn, so it is the number to compare between servers that do the same job: ranked across the index.
Known vulnerabilities
Vulnerability advisories (OSV) cover npm and PyPI packages; this registry has no advisory database.
What would make this Verified
5 points to 80 · weights: behavior 45%, static 25%, prompt 15%, publisher 15%- Unclaimed publisher≈ +8 on the totalClaim roacherm: a verified publisher gets +50 on publisher trust. It is free and usually instant with GitHub sign-in.
- Access to sensitive file paths≈ +4 on the totalStop enumerating or reading credential locations; take secrets from a declared environment variable the user sets on purpose.
- New publisher≈ +3 on the totalTime clears this on its own after 14 and 30 days. Claiming the handle (+50) is the fastest way past it.
- File type combined with upload action≈ +2 on the totalRemove the call, or declare the host in frontmatter and explain in the README what is sent and why.
- Process kill command≈ +2 on the totalBuild commands from fixed arguments; do not interpolate untrusted strings into a shell.
- File permission modification command≈ +2 on the totalRequest the narrowest permission that works; replace wildcards with the exact paths or hosts.