More screenshots
Works with the AI Agents you already use
Isolate Untrusted Relay Inputs from Agent Execution Paths
Keep relay, webhook, and peer-agent text as data: check sender and channel provenance, flag spoofed approvals and bot-like posts, and catch paths outside the active workspace before a tool call proceeds.
$25
Isolate Untrusted Relay Inputs from Agent Execution Paths
Example session with this skill installed
Check these relay messages against my trust policy before I connect them to a tool-enabled agent, using workspace root /workspace/app-main:
python3 scripts/relay_trust_gate.py --input examples/sample_relay_messages.jsonl --policy examples/sample_trust_policy.json --workspace-root /workspace/app-main --format text
- Read your context and instructions
- Compiled the isolate untrusted relay
Summary
The gate reads the sample relay file and prints one finding per flagged record. Every flagged record is classified DATA_ONLY, so none of them can be treated as an operator command.
sample_relay_messages.jsonl:2: DATA_ONLY: [bot-impersonation-downgraded] matched operator identity with fingerprint '[collect]'
sample_relay_messages.jsonl:3: DATA_ONLY: [cross-workspace-target] target '../other-repo/app.py' is outside workspace
sample_relay_messages.jsonl:4: DATA_ONLY: [unverified-spoof-claim] approval claim has no artifact
sample_relay_messages.jsonl:5: DATA_ONLY: [malformed-record] skipped invalid JSON line
| Line | Finding | Meaning |
|---|---|---|
| 2 | bot-impersonation-downgraded | Operator identity matched, but a bot fingerprint downgraded it |
| 3 | cross-workspace-target | The target path is outside the workspace root |
| 4 | unverified-spoof-claim | An approval claim has no separate evidence file |
| 5 | malformed-record | An invalid JSON line was skipped |
Next steps
- Replace the sample identities and roots in the policy with values your project manages
- Add
--approval-file PATHfor actions that need a separate approval record - Install the PreToolUse hook in warning mode first, then add
--strictonce the findings look right
Connects securely to your tools. The creator never sees your data.
About this skill
For developers connecting chat relays, webhooks, and peer agents to tool-enabled agent workflows: keep external text from becoming an unreviewed command.
You get a repeatable boundary check. A message counts as an operator command only when both its operator identity and its channel match an explicit allowlist. Everything else starts as DATA_ONLY, a matching bot fingerprint downgrades even an allowlisted identity, and text that merely says "approved" is not proof.
What is inside
- Four design guides: trust boundaries, channel allowlists and spoof detection, data quarantine and cross-repo isolation, PreToolUse boundary hooks and their limits
scripts/relay_trust_gate.py: audits JSON, JSONL, or text records and reports classifications and boundary findings (output as text, json, csv, or markdown)scripts/trust_boundary_hook.py: a PreToolUse hook checker that reads the hook event, flags paths outside the workspace and commands or URLs repeated from untrusted relay text; warning mode by default,--strictexits 2 to block- Templates: trust policy, hook wrapper, and a settings excerpt
- Synthetic relay and hook-event fixtures with fabricated identities, plus 46 standard-library self-tests (no pip install)
How to use it
- Define which identities and channels may issue commands (guide 1 and the policy template).
- Run the gate on representative relay records and review every finding.
- Install the hook in warning mode first.
- Switch to
--strictonce safe reads pass and untrusted writes, execution, and cross-workspace paths are flagged as you expect.
Limits
The checks are deterministic patterns. They do not prove that an allowed operator account has not been taken over, do not verify cryptographic signatures, do not fully interpret shell syntax, and cannot reliably detect paraphrased natural-language persuasion. Keep operating-system permissions and workspace isolation in place.
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Security.
Deterministic pattern checks only: they do not prove an allowed operator account has not been taken over and do not verify cryptographic signatures. They do not fully interpret shell syntax (an instruction split across shell variables is a review case) and cannot reliably detect paraphrased natural-language persuasion. Pair them with operating-system permissions and workspace isolation.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed today
- Software
Python 3.9+