feat(mcp): add ATR-derived MCP detection rules for further attack surfaces - #469
Merged
Merged
Conversation
…faces Add seven Agent Threat Rules (ATR) MCP detection rules to data/mcp, extending the initial set from Tencent#422 to cover distinct MCP attack surfaces: - mcp_tool_rug_pull: silent tool redefinition after client approval - mcp_ssrf: server-side request forgery via tool URL/host arguments - mcp_path_traversal: arbitrary file access via unconfined path arguments - mcp_unsafe_deserialization: pickle/torch.load/yaml.load RCE on untrusted input - mcp_sql_injection: string-built SQL from tool arguments - mcp_missing_authentication: network-exposed MCP transport without enforced auth - mcp_resource_prompt_injection: indirect injection via the resources/prompts surfaces Each follows the existing info + prompt_template format, emphasises concrete evidence with explicit false-positive guards, and is authored by ATR.
Collaborator
Code Review: PR #469 - feat(mcp): add ATR-derived MCP detection rulesReviewer: aigsec | Date: 2026-07-14 ✅ Overall Assessment: LGTM — recommend mergeThis PR extends the ATR MCP detection rule set from #422 with 7 well-scoped new rules. Quality is consistently high. Rule-by-Rule Review
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extends the ATR MCP detection rules from #422 with seven additional rules covering distinct MCP attack surfaces beyond the initial set (tool poisoning, credential exfiltration, command injection).
New rules (data/mcp/)
mcp_tool_rug_pull— silent tool redefinition after client approvalmcp_ssrf— server-side request forgery via tool URL/host argumentsmcp_path_traversal— arbitrary file access via unconfined path argumentsmcp_unsafe_deserialization— pickle / torch.load / yaml.load RCE on untrusted inputmcp_sql_injection— string-built SQL from tool argumentsmcp_missing_authentication— network-exposed MCP transport without enforced authmcp_resource_prompt_injection— indirect injection via the resources / prompts surfacesEach follows the existing
info+prompt_templateformat from #422, emphasises concrete evidence with explicit false-positive guards (Strict Judgment Standards), and is authored by ATR (Agent Threat Rules).Validation
Loaded each rule via
NewYAMLPluginand parsed + executed itsprompt_templateas a Gotext/template(the scanner's runtime path) — all seven load and render cleanly; theinternal/mcppackage builds.