Skip to content

v0.2.3 — a tainted agent keeps what the token allows, and nothing else

Choose a tag to compare

@github-actions github-actions released this 25 Nov 03:47
· 37 commits to main since this release

What your agent reads can't decide what it does. A tainted agent no longer has to lose a tool entirely: the token can keep a narrower form of it.

curl -fsSL https://github.com/cleitonaugusto/cleimesh/releases/latest/download/install.sh | sh
cleimesh mcp add mail --taints get_emails_content --clean-only send_email \
  --when-tainted send_email.account_name=work --when-tainted send_email.recipients=boss@corp.test \
  --when-tainted send_email.subject='*' --when-tainted send_email.body='*' -- mcp-email-server stdio

New

  • --when-tainted TOOL.ARG=V1,V2|*. What a clean-only tool may still do once the agent has read untrusted content, with the values fixed in the token. Closed world: an argument the rule doesn't name (a cc nobody listed) refuses the call. Every link of the delegation chain is checked, so a subagent can't widen an earlier rule. Against a real mail server, after a poisoned read: mail to the allowed address goes through, mail to the attacker and mail with the attacker in cc are refused. Keep the values fixed: "reply to the sender" is not a safe rule, since the sender can be the attacker.
  • Receipts name what the agent was shown. A decision receipt for a call to a wrapped server now carries tool_definition_sha256, the digest the pin is checked against, so an auditor can match a call to the exact definition approved. A call admitted under --when-tainted names the receipt that tainted the agent (tainted_by).

Verify a download

Each binary has a .sha256 and signed build provenance:

gh attestation verify cleimesh-x86_64-unknown-linux-musl --repo cleitonaugusto/cleimesh