Skip to content

feat(security): cross-tool injection correlation + AgentRFC protocol audit#2603

Merged
bug-ops merged 1 commit intomainfrom
agentrfc-security-audit
Apr 4, 2026
Merged

feat(security): cross-tool injection correlation + AgentRFC protocol audit#2603
bug-ops merged 1 commit intomainfrom
agentrfc-security-audit

Conversation

@bug-ops
Copy link
Copy Markdown
Owner

@bug-ops bug-ops commented Apr 4, 2026

Summary

Changed files

  • crates/zeph-mcp/src/sanitize.rsdetect_cross_tool_references, SchemaWalkCtx, name_referenced_in, MIN_CROSS_REF_NAME_LEN, 6 new tests
  • crates/zeph-mcp/src/tool.rsFlaggedParameter struct added to ToolSecurityMeta
  • crates/zeph-mcp/src/manager.rs — High-severity cross-ref penalty loop in apply_injection_penalties; test fixtures updated
  • crates/zeph-acp/src/transport/stdio.rsSECURITY(layer-2) annotation
  • crates/zeph-a2a/src/server/handlers.rsSECURITY(layer-6) annotation

Test plan

  • cargo +nightly fmt --check PASS
  • cargo clippy --workspace --features full -- -D warnings PASS
  • cargo nextest run --config-file .github/nextest.toml --workspace --features full --lib --bins — 7683/7683 PASS
  • 7 new unit tests covering all required scenarios

Closes

Closes #2480
Closes #2509

@github-actions github-actions bot added documentation Improvements or additions to documentation rust Rust code changes enhancement New feature or request size/L Large PR (201-500 lines) labels Apr 4, 2026
@bug-ops bug-ops force-pushed the agentrfc-security-audit branch from a5e858a to ec3deef Compare April 4, 2026 00:12
@bug-ops bug-ops enabled auto-merge (squash) April 4, 2026 00:12
…audit (#2480, #2509)

- Add cross-tool injection correlation in MCP sanitizer: detect when a tool
  description references another tool by name. High severity when the source
  tool also has an injection pattern flagged; Info severity otherwise.
  Deduplication per (source, target) pair; short names (< 4 chars) excluded.
- Add FlaggedParameter to ToolSecurityMeta: JSON pointer path + pattern name
  for precise forensic attribution of schema-level injection matches.
- Apply trust-score penalty for High-severity cross-references in
  apply_injection_penalties.
- Add SECURITY(layer-2) annotation in zeph-acp stdio transport documenting
  session binding limitation (AgentRFC layer 2 gap).
- Add SECURITY(layer-6) annotation in zeph-a2a jsonrpc handler documenting
  audit completeness gap (AgentRFC layer 6 gap).
- Add full 6-layer security audit document at .local/specs/security/.
- 7 new tests (415 total in zeph-mcp; 7683 workspace-wide).

Closes #2480, #2509
@bug-ops bug-ops force-pushed the agentrfc-security-audit branch from ec3deef to fa8e78c Compare April 4, 2026 00:19
@bug-ops bug-ops merged commit fd49280 into main Apr 4, 2026
27 checks passed
@bug-ops bug-ops deleted the agentrfc-security-audit branch April 4, 2026 00:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation enhancement New feature or request rust Rust code changes size/L Large PR (201-500 lines)

Projects

None yet

1 participant