Repository navigation
Add the Taint Barrier for agent tool calls - #786
Merged
Merged
Conversation
Labeled values are kept as keyed fingerprints and blocked when a tool call sends them, in plain or encoded form, to a sink the per-label policy does not allow. Honeytokens block on any use. Decisions go to the hash-chained audit log with signed receipts. Adds a CLI check, an MCP tool, observe mode, a homepage demo and the controls matrix rows.
gerardrecinto
force-pushed
the
taint-barrier
branch
from
November 23, 2026 07:46
329f5f1 to
c25fe25
Compare
gerardrecinto
enabled auto-merge (squash)
November 23, 2026 07:47
CodeQL flagged SHA-256 over the token body. The marker is only a label, so use FNV-1a in Go and in the page demo.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the Taint Barrier, a new
taintpackage: information-flow control plus tripwires for agent tool calls.What it does
sop-mcp-server taint checkandtaint honeytoken, acheck_tool_callMCP tool (only whenSOP_TAINT_POLICYandSOP_TAINT_VALUESare set), observe mode.docs/SECURITY_CONTROLS.mdhas the matrix rows and an OWASP LLM01, LLM02, LLM06 note. No compliance claims.Checked
go test -race -count=1 ./taint ./tools/mcpserver ./cmd/sop-mcp-server ./governancepasses.taintcoverage is 93.5%.FuzzNormalizefound a real idempotency bug (stray bytes joining after a character is dropped), now fixed; both fuzz targets ran clean for 30 to 40 seconds after.scripts/go-coverage-gate.shpasses with a new./taintfloor.npx playwright test --project=chromium: 12 new tests pass (plain and encoded variants blocked, allowlist passes, decoy blocks, no console errors, no overflow at 375 and 1440, reduced motion, nothing sent over the network). Full chromium run: 285 passed, 2 skipped, 1 failure inplayful.spec.ts(hero "Start over") that passed on rerun alone. a11y and seo specs for/pass.demo/tailwind.cssrebuilt withscripts/build-css.sh.Limits
go build ./...does not link on this machine because of the local cgo toolchain, so CI is the check for that.No release, tag, publish or deploy.
Thanks,
Gerard