-
Notifications
You must be signed in to change notification settings - Fork 2
[SEC-2.2] MCP response sanitization boundary #1201
Copy link
Copy link
Closed
Labels
mcpMCP client/serverMCP client/serverpriority/highHigh priorityHigh prioritysecuritySecurity-related issueSecurity-related issuesize/SSmall PR (11-50 lines)Small PR (11-50 lines)
Description
Part of #1195 — Phase 2
Blocked by: #1175 (MCP DALIA policy layer — sanitization hooks into PolicyEnforcer middleware)
Apply sanitization to all MCP server responses before they enter agent context.
Crates: zeph-mcp
Depends on: SEC-1.4, #1175
Tasks:
- MCP tool call results tagged
ExternalUntrustedwith server name as source - Apply
ContentSanitizerinPolicyEnforcerresponse path (post-DALIA middleware) - Per-server trust override in config (future: trusted servers skip quarantine)
- Unit tests with mock MCP response containing injection payload
Files: crates/zeph-mcp/src/client.rs, crates/zeph-mcp/src/policy.rs
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
mcpMCP client/serverMCP client/serverpriority/highHigh priorityHigh prioritysecuritySecurity-related issueSecurity-related issuesize/SSmall PR (11-50 lines)Small PR (11-50 lines)