跳到內容
Agent Threat Rules (ATR)EN
III. 框架對照

ATR × NSA MCP security design guidance

不是背書這份對照是 ATR 維護者寫的。NSA 沒有審過,也沒有背書。對照不代表符合任何法規。
來源docs/NSA-MCP-MAPPING.md · 最後提交 2026-11-10 · 原文是英文
  • ATR corpus version: v3.5.8 HEAD, 844 rules across 10 detection-rule categories. Headline benchmarks below were measured at v3.5.0 (2026-06-16).
  • NSA guidance: Model Context Protocol (MCP): Security Design Considerations for AI-Driven Automation, Cybersecurity Information Sheet (CSI), NSA Artificial Intelligence Security, May 2026 Ver. 1.0 (U/OO/6030316-26 | PP-26-1834), posted 2026-06-02 on media.defense.gov; developed with the Carnegie Mellon University Software Engineering Institute.
  • Document date: 2026-06-29 (ratings recalibrated after an adversarial second-reviewer pass — see Verification status)
  • Maintainer: Adam Lin ([email protected])
  • License: MIT
  • Relationship to the Five Eyes mapping: the NSA CSI explicitly cites "Careful Adoption of Agentic AI Services" (its reference [3]) as the general agentic-AI guidance and positions itself as the MCP-specific technical companion. ATR maps that Five Eyes guidance in FIVE-EYES-MAPPING.md; this document maps the MCP CSI's verbatim section structure.

Source verification

Primary-verified. The section headings and recommendations below are extracted verbatim from the primary CSI PDF (17 pages, May 2026 Ver. 1.0). The CSI organizes content into 8 named security concerns, a set of real-world examples, and 9 named recommendations — reproduced here exactly. (The defense.gov/nsa.gov PDF endpoints return HTTP 403 to automated fetch; the document was retrieved through a browser and read locally.)

Executive summary

The NSA MCP CSI ships authoritative risk framing and 9 named recommendations, and — like all government guidance — zero executable detection rules. Its thesis is that "MCP's rapid proliferation has outpaced the development of its security model" and that secure-by-default behavior "must be enforced through implementation rigor, proper coding practices, clearer protocol specifications, and robust validation tools." ATR is one such validation-tool layer — and, deliberately, only one layer: it is detection content, not identity, sandboxing, logging, or scanning infrastructure.

Where ATR squarely fits, and where it only contributes content:

  • Squarely (DIRECT): "Track and patch MCP related vulnerabilities" [R8] — the CSI recommends a "formal process for monitoring MCP related vulnerabilities ... through CVEs, vendor advisories, or open source issue trackers ... subscribing to relevant security feeds." That is ATR's CVE flywheel (2,262 CVEs tracked across 15 feeds → 594 detection-ready signatures).
  • Squarely (DIRECT): "Filter and monitor output pipelines and chained execution" [R6] — ATR's densest, strongest cluster (indirect-injection and malicious-tool-response detection) is exactly output-channel scrutiny.
  • Contributes content, not the tool: "Scan local network for open or vulnerable MCP servers" [R9] — ATR is not a scanner and does no network discovery; it supplies the rule content the CSI's named tools (MCP Scanner, Ramparts, CyberMCP, Proximity) consume.
  • Contributes content, not the control: "Instrument for logging and detection" [R7] — ATR emits no logs; it is the detection-content layer a SIEM consumes.

This document does not claim NSA endorsement (the CSI carries an explicit non-endorsement disclaimer). It is a community detection-rule starter set for operators implementing the CSI.


Part A — the CSI's 8 "Security concerns in MCP design, implementation, and practices" → ATR

#NSA security concern (verbatim)ATR rule clusters (verified IDs)Strength
A1Access control — no protocol-level identity binding; missing RBAC/CRUD; "unverified task propagation" between serversprivilege-escalation/ 00040 priv-esc; context-exfiltration/ 00114 oauth-token-abuse; agent-manipulation/ 00030 cross-agent-attack, 00074 cross-agent-priv-escMODERATE (abuse-side only; identity binding & task-propagation control are protocol/infra)
A2Insecure context or data serialization — serialized content with comments/prompts opens injection / embedded codemodel-security/ 00433 torch-load-deser-rce; prompt-injection/ 00084† structured-data-injectionMODERATE (00433 anchors; 00084 is a draft rule)
A3Poor approval workflows — capability/data-access changes to a trusted server made without re-approvalexcessive-autonomy/ 00099 high-risk-tool-gate, 00098 unauthorized-financial-action; agent-manipulation/ 00118 approval-fatigueMODERATE (flags high-risk tool calls; no rule detects a missing re-approval specifically)
A4Token or session security — optional OAuth bearer tokens, no lifecycle/replay controlcontext-exfiltration/ 00114 oauth-token-abuseMODERATE (lifecycle/replay mgmt is infra)
A5Misconfigurations and poor implementation — trivial servers repurposed; no task/data isolationtool-poisoning/ 00095† supply-chain-poisoning, 00419 cursor-mcp-zero-click-config; skill-compromise/ 00065 skill-update-attackMODERATE (00419 solid but narrow; isolation itself is architectural)
A6Inconsistent behaviors — non-deterministic interpretation an attacker can preconditionprompt-injection/ 00005 multi-turn, 00081† semantic-multi-turn; agent-manipulation/ 00032 goal-hijackingCOMPLEMENTARY (cited rules detect adjacent multi-turn/goal-hijack attacks, not model non-determinism itself)
A7Poor or missing audit logs — logging left to implementers; needs traceable sequence + anomaly detectionprompt-injection/ 00085† audit-evasion, 00094† audit-bypass; tool-poisoning/ 00105 silent-action-concealment; + every rule's stable id/severity/category/response taxonomyCOMPLEMENTARY (ATR generates no logs; detects audit-evasion attempts + supplies event taxonomy)
A8Denial of service and fatigue-based techniques — prompt storms, recursive tasks, "lethargy" resource exhaustionexcessive-autonomy/ 00050 runaway-loop, 00051 resource-exhaustion, 00052 cascading-failureMODERATE (detects textual descriptions of loops/exhaustion — 00052 says so explicitly — not live runtime resource state)

The CSI's real-world examples section maps onto existing ATR coverage too: Tool parameter injection → skill-compromise/ 00066, tool-poisoning/ 00277; Tool invocation path confusion / naming collisions → 00089 polymorphic-aliasing, 00106 schema-description-contradiction; Unrestricted GitHub repo access → 00064 over-permissioned-skill; WhatsApp MCP rug-pull → 00065 skill-update-attack; Poisoning output for downstream automation → 00083† indirect-tool-injection, 00063 multi-skill-chain; CVE-2025-49596 MCP-Inspector RCE → known gap (was SAFE-T1109; SAF Framework Model v2 deprecated it in favour of SAF-T1005 / SAF-T1101, see SAFE-MCP-MAPPING.md).

† These rules are status: draft and/or carry the predicted-author batch tag — not yet production-promoted. Ratings that lean on them are conservative and should be re-checked as the rules mature; production rules anchor each cluster where possible.


Part B — the CSI's 9 "Recommendations" → how ATR operationalizes each

#NSA recommendation (verbatim)ATR contributionCoverage
R1Choose supported MCP projects when possibleskill-compromise/ 00060 impersonation, 00062 hidden-capability weakly proxy "unmaintained/trojanized"; provenance judgment is humanCOMPLEMENTARY
R2Design for boundaries (trust zones, data-classification zones, prefer local server, filtering outgoing proxy / DLP)context-exfiltration/ 00102 disguised-analytics, 00261 markdown-image-exfil + excessive-autonomy/ 00500 ssrf detect the cross-zone leakage the proxy/DLP must blockSTRONG signal (zone architecture is operator-side)
R3Validate parameters (against schemas, ranges, intended context; block ambiguous-source forwarding)skill-compromise/ 00066 parameter-injection (shell/SQL/path/template/null-byte on tool args) + prompt-injection/ 00084† structured-data-injectionSTRONG (00066 anchors)
R4Constrain and sandbox tool execution (AppContainers/seccomp/AppArmor/SELinux; least privilege; deny at runtime)architectural; ATR detects escape attempts: 00110 eval, 00111 shell-escape, 00436 enclave-sandbox-escapeCOMPLEMENTARY
R5Sign and verify MCP messages (crypto signatures in payload, time-bound, replay metadata; OWASP ASVS V7)agent-manipulation/ 00116 a2a-message-validation, 00076 inter-agent-message-spoofing detect prose describing unsigned/spoofed messagesCOMPLEMENTARY (signature verification is infra)
R6Filter and monitor output pipelines and chained execution (treat each output as untrusted; detect indirect injection / toolchain pivot)ATR core: prompt-injection/ 00002 indirect, 00083† indirect-tool-injection, 00080† encoding-evasion; tool-poisoning/ 00010 malicious-response; 00063 multi-skill-chainDIRECT
R7Instrument for logging and detection (log all invocations w/ params + identities + hashes; SIEM; minimize FP)detection content a SIEM consumes: per-rule event taxonomy + audit-evasion detection (00085†/00094†/00105); 0-FP-gated rules match the CSI's "minimize false positives" — but ATR emits no logs/instrumentation itselfMODERATE
R8Track and patch MCP related vulnerabilities (CVE / advisory / OSS-tracker monitoring; security-feed subscription; versioned inventory)ATR CVE flywheel: 2,262 CVEs tracked across 15 feeds → 88 active rules + 594 detection-ready proposals. Proof: 00451 litellm-admin-sqli (CISA KEV), 00534 alibaba-rds-mcp (Akamai 2026-06), Semantic Kernel MSRC → rule in ~2hDIRECT
R9Scan local network for open or vulnerable MCP servers (CSI names MCP Scanner, Ramparts, CyberMCP, Proximity)ATR is the rule content those scanners consume (829 machine-readable rules as of 2026-10-07; see data/stats.json for the current count, and ADOPTERS.md for downstream repositories that have merged ATR rules, including the open-source cisco-ai-defense/skill-scanner) — ATR is not itself a scanner and does no network discoveryCOMPLEMENTARY

The headline: R6 and R8 are squarely ATR's wheelhouse — output-channel scrutiny and CVE-fed rules. R7 and R9 are real but partial: ATR supplies the detection content, not the SIEM (R7) or the scanner (R9). The honest framing is "ATR is the rule layer beneath the controls," not "ATR implements the controls."


Part C — the OSCAL / NIST tie-in

R7 (logging/observability) and the CSI's audit-log concern (A7) are what NIST's SP 800-53 Control Overlays for Securing AI Systems (COSAiS) and the OSCAL assessment layer formalize. ATR already maintains:

  • ai-rmf-oscal-catalog (CC0) — a community OSCAL catalog of the NIST AI RMF. It does not contain ATR rules.
  • An open pull request to NIST's OSCAL content repository offering AI RMF profile examples (usnistgov/oscal-content#338), awaiting NIST review.

This NSA MCP mapping is MCP-specific material that could be offered to the COSAiS community channel ([email protected] / the #NIST-Overlays-Securing-AI Slack).


What ATR does NOT cover (be honest)

  • Cryptographic agent identity / message signing (A1, R5) — detection-side, not identity/PKI-side.
  • The human-approval UX and re-approval gates for high-impact / changed-capability actions (A3) — ATR raises the signal; the operator builds the gate.
  • Sandbox / network isolation, secure defaults, log generation/retention/tamper-resistance (R4, R7, A7) — architectural; ATR detects precursors and evasion, not infrastructure posture, and emits no logs of its own.
  • Live runtime state (A8) — DoS / resource-exhaustion / cascade rules match textual descriptions, not live runtime metrics.
  • Network discovery / scanning (R9) — ATR is rule content, not a scanner.
  • CVE-2025-49596 (MCP-Inspector RCE) — a named CSI example with no ATR rule yet (tracked gap SAFE-T1109).
  • Draft-rule dependency — several cited rules (00081, 00084, 00085, 00094, 00095) are status: draft / predicted-author; flagged with † above.
  • Paraphrase bypass, multimodal (image/audio) injection, non-English coverage — partial; one defense layer, not the only one.

References

Verification status

  • [x] Primary CSI PDF extracted verbatim (17 pages, May 2026 Ver. 1.0) — 8 security concerns + 9 recommendations reproduced exactly.
  • [x] All cited ATR rule IDs verified to exist at v3.5.2 HEAD, with correct category directories (2026-06-29).
  • [x] Per-category counts pinned to disk truth (655 total).
  • [x] CSI cross-references confirmed: Five Eyes guidance [3], OWASP ASVS V7, OASIS CoSAI [25], CVE-2025-49596.
  • [x] Adversarial second-reviewer pass completed (2026-06-29) — recalibrated ratings against actual rule contents: R9 DIRECT→COMPLEMENTARY (ATR is not a scanner), R7 STRONG→MODERATE (emits no logs), A1/A3/A5 STRONG→MODERATE, A6/A7 →COMPLEMENTARY, A8 STRONG→MODERATE, R5 MODERATE→COMPLEMENTARY; fixed 3 category-label errors (00095, 00066, 00500); flagged 5 draft-rule dependencies.
  • [ ] Add reverse index (ATR rule → CSI concern/recommendation), matching the SAFE-MCP mapping's cross-reference table.