Raw scan report

Fabric Dw — the complete, unedited output of the deterministic mcptrustchecker engine v1.13.0, scanned . Every finding, capability tag and score component below is exactly what the engine produced — no AI, no post-processing.

← Back to the scan page
{
  "tool": {
    "name": "mcptrustchecker",
    "version": "1.13.0",
    "methodologyVersion": "mcptrustchecker-1.13"
  },
  "target": {
    "id": "fabric-dw",
    "source": {
      "kind": "package",
      "origin": "fabric-dw"
    },
    "server": {
      "name": "fabric-dw"
    }
  },
  "grade": "A",
  "score": {
    "score": 93,
    "threatScore": 100,
    "grade": "A",
    "band": "A",
    "categorySubtotals": {
      "injection": 0,
      "exfiltration": 0,
      "permissions": 0,
      "supply-chain": 0,
      "network": 0,
      "hygiene": 0
    },
    "vector": [
      {
        "kind": "client",
        "term": "capability-exposure",
        "level": "high",
        "label": "capability blast radius (high) — client exposure if the model is manipulated",
        "appliedPenalty": 6
      },
      {
        "kind": "client",
        "term": "verification-discount",
        "level": "repo",
        "label": "publisher verification (public source) — no provenance, but the source is public and inspectable",
        "appliedPenalty": 1
      },
      {
        "kind": "client",
        "term": "coverage-honesty",
        "level": "source",
        "label": "inspection depth (source) — how much of the target the scan could see",
        "appliedPenalty": 0
      }
    ],
    "gatesFired": [],
    "methodologyVersion": "mcptrustchecker-1.13"
  },
  "capability": {
    "level": "high",
    "reasons": [
      "ingests untrusted external content (a prompt-injection entry point)",
      "reads sensitive or local data",
      "has a read → egress path (a data-exfiltration surface)",
      "can execute shell commands or code"
    ],
    "tags": [
      "untrusted-input",
      "sensitive-source",
      "code-exec"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (60 recovered), not enumerated from a running server. Tool-poisoning, Unicode-smuggling, capability and toxic-flow analysis ran on this inferred surface, but a mis-parsed registration could be missed or mis-attributed, so tool-derived findings are capped below “confirmed”. To grade the real runtime surface, scan the running server: --command \"npx -y <package>\"."
    ]
  },
  "findings": [
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/fabric_dw/cli/_plan_svg.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/fabric_dw/cli/_plan_svg.py:61`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "src/fabric_dw/cli/_plan_svg.py"
      },
      "evidence": "try: proc = subprocess.run( # noqa: S603 [_DOT_BINARY, \"-Tsvg\"], input=dot_text.enc",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/fabric_dw/cli/_plan_svg.py",
        "line": 61,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/fabric_dw/services/dbt_scaffold.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/fabric_dw/services/dbt_scaffold.py:581`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "src/fabric_dw/services/dbt_scaffold.py"
      },
      "evidence": "dProcessError): subprocess.run( # noqa: S603 [git_path, \"init\", str(folder)], check=Tru",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/fabric_dw/services/dbt_scaffold.py",
        "line": 581,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (tests/integration/test_cli_smoke.py)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`tests/integration/test_cli_smoke.py:218`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "tests/integration/test_cli_smoke.py"
      },
      "evidence": "l_env) try: subprocess.run( # noqa: S603 [_FABRIC_DW_BIN, \"sql\", \"exec\", \"-q\", \"SELECT 1 AS n\"]",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "tests/integration/test_cli_smoke.py",
        "line": 218,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (tests/integration/test_journey_config_defaults.py)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`tests/integration/test_journey_config_defaults.py:93`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "tests/integration/test_journey_config_defaults.py"
      },
      "evidence": "try: result = subprocess.run( # noqa: S603 [_JOURNEY_BIN, *args], capture_output=True",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "tests/integration/test_journey_config_defaults.py",
        "line": 93,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (tests/unit/cli/test_plan_svg.py)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`tests/unit/cli/test_plan_svg.py:174`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "tests/unit/cli/test_plan_svg.py"
      },
      "evidence": "th ['dot', '-Tsvg'] (no shell=True).\"\"\" operators = parse_showplan(_FIXTURE_XML) with ( patc",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "tests/unit/cli/test_plan_svg.py",
        "line": 174,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (tests/unit/test_import_hygiene.py)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`tests/unit/test_import_hygiene.py:84`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "tests/unit/test_import_hygiene.py"
      },
      "evidence": "H\", None) result = subprocess.run( # noqa: S603 [sys.executable, \"-c\", snippet + _REPORT], capture",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "tests/unit/test_import_hygiene.py",
        "line": 84,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (tests/unit/test_shutdown_clean.py)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`tests/unit/test_shutdown_clean.py:98`): Spawning a shell/process is command-execution capability; with unsanitized tool input it is command injection / RCE. This is read from the code itself — not from the tool description — so a poisoned server cannot hide it behind honest-looking metadata.",
      "remediation": "Review this call path: confirm it never receives unsanitized tool input, constrain it, or remove it. Treat a server whose code reaches these sinks as high-capability regardless of what its tools claim.",
      "location": {
        "kind": "server",
        "name": "tests/unit/test_shutdown_clean.py"
      },
      "evidence": "e. \"\"\" result = subprocess.run( # noqa: S603 [*_CLI_RUNNER, \"config\", \"show\", \"--json\"], captur",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "tests/unit/test_shutdown_clean.py",
        "line": 98,
        "nonRuntime": true
      }
    }
  ],
  "toxicFlows": [],
  "capabilities": [
    {
      "tool": "get_audit_settings",
      "tags": [
        "untrusted-input"
      ],
      "reasons": {
        "untrusted-input": [
          "keyword \"fetch\""
        ]
      }
    },
    {
      "tool": "enable_audit",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "disable_audit",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "set_audit_action_groups",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "add_audit_group",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "remove_audit_group",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "set_audit_retention",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "clear_cache",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_capabilities",
      "tags": [
        "sensitive-source"
      ],
      "reasons": {
        "sensitive-source": [
          "keyword \"execute_sql\""
        ]
      }
    },
    {
      "tool": "generate_dbt_profile",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_functions",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_function",
      "tags": [
        "untrusted-input"
      ],
      "reasons": {
        "untrusted-input": [
          "keyword \"fetch\""
        ]
      }
    },
    {
      "tool": "list_item_permissions",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_sql_permissions",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_database_principals",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "my_permissions",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_security_policies",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_masked_columns",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_procedures",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_procedure",
      "tags": [
        "untrusted-input"
      ],
      "reasons": {
        "untrusted-input": [
          "keyword \"fetch\""
        ]
      }
    },
    {
      "tool": "list_running_queries",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_connections",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kill_session",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_request_history",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_session_history",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_frequent_queries",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_locks",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_request_detail",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_long_running_queries",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_restore_points",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_restore_point",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_schemas",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_warehouse_settings",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_snapshots",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_sql_endpoints",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_sql_endpoint",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "execute_sql",
      "tags": [
        "sensitive-source"
      ],
      "reasons": {
        "sensitive-source": [
          "keyword \"execute_sql\""
        ]
      }
    },
    {
      "tool": "get_query_plan",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_sql_pools_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_sql_pools",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_sql_pool",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_sql_pool_insights",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_statistics",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "show_statistics",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_tables",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "read_table",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "count_table_rows",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_cluster_columns",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_table_columns",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_table_health_metrics",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_views",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "read_view",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "count_view_rows",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_view_columns",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_view",
      "tags": [
        "untrusted-input"
      ],
      "reasons": {
        "untrusted-input": [
          "keyword \"fetch\""
        ]
      }
    },
    {
      "tool": "list_warehouses",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_warehouse",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_capacities",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_workspaces",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_workspace",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "790e75d9f59e2e8439c3bbebfc902938a7725a8d26af92b1d488e6a97da77489",
  "stats": {
    "tools": 60,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 2,
      "medium": 0,
      "low": 5,
      "info": 0
    }
  }
}