Skip to content

ATR scan in the Next hook for MCP tool calls (optional security layer) #1551

Description

@eeee2345

Yao has native MCP support and TS Create/Next hooks that intercept every request — a clean pre-invoke point. There's no threat-detection layer on tool I/O yet.

ATR (Agent Threat Rules, MIT) is an open detection-rule standard for agent attacks (prompt injection, tool poisoning, context/credential exfil, MCP attacks), pure rule eval (no model call). I can PR a small yao-atr hook module that runs an ATR scan inside the Next hook on each MCP tool invocation and blocks/annotates on match. Would you take it as an optional module?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions