Skip to content

guardrail-plugin 0.1.2

Choose a tag to compare

@Dias-axx Dias-axx released this 06 Nov 21:39
· 9 commits to main since this release
guardrail-plugin-v0.1.2
ffd4048

guardrail-plugin 0.1.2

Version 0.1.1 was not published; 0.1.2 contains its changes. Interfaces can change incompatibly before 1.0.

Security

  • Bash write targets now respect the project boundary, like Write and Edit: redirections and recognized write commands
    may only target the project, /tmp, /var/tmp or a permitted TMPDIR. /dev/null, /dev/stdout, /dev/stderr and
    /dev/tty stay allowed.
  • sudo, sudoedit, doas and pkexec are blocked as commands, also behind common wrappers and inside bash -c or
    su -c. Mentioning the names stays allowed. Known limits and false positives are listed in the README.
  • The dependency allowlist now also applies to package runners and further installers: npx, npm exec, pnpm dlx,
    yarn dlx, bunx, uvx, uv tool run, uv run --with, pipx run, poetry add, pipenv install. Unresolved
    arguments and foreign sources are blocked (fail closed); conda, mamba and micromamba are always blocked.
  • csh and tcsh are recognized as shells; their redirections >!, >>!, >&! and >>& are blocked (fail closed).

Supply chain

  • The MCP server no longer depends on @modelcontextprotocol/sdk at runtime. A small built-in stdio server (JSON-RPC 2.0,
    same protocol versions, tool names, schemas and outputs as before, checked by a differential test) replaces it. The only runtime dependency is
    zod 4.6.7 (previously 4.6.6); the published npm-shrinkwrap.json lists no other runtime package.
  • Input limits of the stdio server: lines longer than 1 MiB and JSON nested deeper than 64 levels are rejected.
  • The MCP server reports the package version.

The plugin is not a sandbox; running agents in a container or VM is still recommended.

Verify the downloaded files with sha256sum --check --strict SHA256SUMS. Please report vulnerabilities as described in
SECURITY.md, not as a public issue.