More screenshots

    Works with the AI Agents you already use

    Claude CodeClaude CodeCursorCursorCodex CLICodex CLIDeepSeekDeepSeekMuseMuse+22 more

    Isolate Untrusted Relay Inputs from Agent Execution Paths

    1

    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

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    Isolate Untrusted Relay Inputs from Agent Execution Paths

    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
    
    LineFindingMeaning
    2bot-impersonation-downgradedOperator identity matched, but a bot fingerprint downgraded it
    3cross-workspace-targetThe target path is outside the workspace root
    4unverified-spoof-claimAn approval claim has no separate evidence file
    5malformed-recordAn invalid JSON line was skipped

    Next steps

    • Replace the sample identities and roots in the policy with values your project manages
    • Add --approval-file PATH for actions that need a separate approval record
    • Install the PreToolUse hook in warning mode first, then add --strict once 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, --strict exits 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

    1. Define which identities and channels may issue commands (guide 1 and the policy template).
    2. Run the gate on representative relay records and review every finding.
    3. Install the hook in warning mode first.
    4. Switch to --strict once 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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+

    Permissions

    Terminal / Shell
    Read Files
    Listedtoday

    What's inside

    Frequently Asked Questions

    Both its operator identity and its channel must match an explicit allowlist in your policy. Everything else starts as DATA_ONLY, and a matching bot fingerprint downgrades even an allowlisted identity.

    No. Text that says "approved" is not proof. For actions that need approval, point the gate at a separate evidence file with --approval-file; a claim without one is reported as an unverified-spoof-claim finding.

    Not when you run the checker directly: findings go to stderr and the exit code is 0 so you can observe first, and --strict returns exit code 2 to block. The bundled wrapper template runs the checker with --strict, so remove that flag in your copy until safe and blocked examples behave as expected.

    The checks are deterministic patterns. They do not prove an allowed operator account is uncompromised, do not verify cryptographic signatures, do not fully interpret shell syntax, and cannot reliably detect paraphrased persuasion. Keep operating-system permissions and workspace isolation in place.

    Python 3.9+ and the standard library only. You get four guides, two Python CLIs (relay_trust_gate.py and trust_boundary_hook.py), policy, hook wrapper and settings templates, synthetic fixtures, and 46 self-tests: python3 -m unittest discover -s tests -v

    New in Security