Raw scan report

Xcode — 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": "@onmyway133/xcode-mcp",
    "source": {
      "kind": "package",
      "origin": "@onmyway133/xcode-mcp"
    },
    "server": {
      "name": "@onmyway133/xcode-mcp"
    }
  },
  "grade": "B",
  "score": {
    "score": 87,
    "threatScore": 94,
    "grade": "B",
    "band": "B",
    "categorySubtotals": {
      "injection": 6.3,
      "exfiltration": 0,
      "permissions": 0,
      "supply-chain": 0,
      "network": 0,
      "hygiene": 0
    },
    "vector": [
      {
        "kind": "threat",
        "ruleId": "MTC-INJ-SCHEMA-1",
        "category": "injection",
        "severity": "medium",
        "confidence": "strong",
        "rawWeight": 9,
        "confidenceMult": 0.7,
        "diminishingFactor": 1,
        "appliedPenalty": 6.3
      },
      {
        "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": [
      "reads sensitive or local data",
      "has a read → egress path (a data-exfiltration surface)",
      "can execute shell commands or code"
    ],
    "tags": [
      "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 (71 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-001",
      "title": "Dynamic code execution in server code (dist/index.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/index.js:2875`): Evaluating strings as code is the most direct RCE primitive; if any tool input reaches it, the server executes attacker-chosen code. 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": "dist/index.js"
      },
      "evidence": "const makeValidate = new Function(`${names_1.default.self}`, `${names_1.default.scope}`, sourceCode); const val",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-001",
        "file": "dist/index.js",
        "line": 2875,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/index.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/index.js:33755`): 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": "dist/index.js"
      },
      "evidence": "t { exec, spawn } from \"child_process\"; import { promisify } from \"util\"; var execAsync = promisify(exec); class Comman",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/index.js",
        "line": 33755,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/programs/command-executor.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/programs/command-executor.js:1`): 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": "dist/programs/command-executor.js"
      },
      "evidence": "t { exec, spawn } from 'child_process'; import { promisify } from 'util'; const execAsync = promisify(exec); export clas",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/programs/command-executor.js",
        "line": 1,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/programs/simulator-control/app-management.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/programs/simulator-control/app-management.js:68`): 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": "dist/programs/simulator-control/app-management.js"
      },
      "evidence": "} export async function spawn(core, deviceId, command, args = []) { const argsStr = args.map((a) => `\"${a}\"`).join('",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/programs/simulator-control/app-management.js",
        "line": 68,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/programs/simulator-control/app.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/programs/simulator-control/app.js:85`): 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": "dist/programs/simulator-control/app.js"
      },
      "evidence": "} export async function spawn(deviceId, command, args = []) { const argsStr = args.map((a) => `\"${a}\"`).join(' ');",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/programs/simulator-control/app.js",
        "line": 85,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/programs/simulator-control/io-operations.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/programs/simulator-control/io-operations.js:1`): 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": "dist/programs/simulator-control/io-operations.js"
      },
      "evidence": "as spawnProcess } from 'child_process'; import { existsSync } from 'fs'; export async function screenshot(core, deviceId",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/programs/simulator-control/io-operations.js",
        "line": 1,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/programs/simulator-control/io.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/programs/simulator-control/io.js:2`): 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": "dist/programs/simulator-control/io.js"
      },
      "evidence": "as spawnProcess } from 'child_process'; import { existsSync } from 'fs'; export async function screenshot(deviceId, outp",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/programs/simulator-control/io.js",
        "line": 2,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/programs/simulator-control/pasteboard.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/programs/simulator-control/pasteboard.js:1`): 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": "dist/programs/simulator-control/pasteboard.js"
      },
      "evidence": "import { spawn } from 'child_process'; import { executeSimctl } from './core.js'; export async function copyToPasteboar",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/programs/simulator-control/pasteboard.js",
        "line": 1,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/programs/simulator-control/video.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/programs/simulator-control/video.js:1`): 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": "dist/programs/simulator-control/video.js"
      },
      "evidence": "import { spawn } from 'child_process'; import { existsSync, unlinkSync } from 'fs'; let activeRecording = null; export",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/programs/simulator-control/video.js",
        "line": 1,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/programs/simulator-program.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/programs/simulator-program.js:158`): 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": "dist/programs/simulator-program.js"
      },
      "evidence": "const child = require('child_process').spawn('sh', ['-c', args.join(' ')], { detached: true, });",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/programs/simulator-program.js",
        "line": 158,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/programs/command-executor.ts)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/programs/command-executor.ts:1`): 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/programs/command-executor.ts"
      },
      "evidence": "t { exec, spawn } from 'child_process'; import { promisify } from 'util'; import type { CommandResult } from '../types.j",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/programs/command-executor.ts",
        "line": 1,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-INJ-SCHEMA-1",
      "title": "Description names a credential store the tool cannot reach",
      "category": "injection",
      "severity": "medium",
      "confidence": "strong",
      "description": "Tool \"notarize_list_signing_identities\" describes a credential store (SSH keys, cloud credentials, a keychain or an equivalent) that nothing in its input schema can address. A tool's interface is the honest statement of what it touches; prose that reaches past it is addressed to the model, not to a reader.",
      "remediation": "Remove the reference, or expose the target as an explicit, validated parameter so the client can see and consent to what the tool reads.",
      "location": {
        "kind": "tool",
        "name": "notarize_list_signing_identities",
        "field": "description"
      },
      "evidence": "keychain",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {}
    }
  ],
  "toxicFlows": [],
  "capabilities": [
    {
      "tool": "device_list_all",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "device_get_supported_for_version",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "device_analyze_version_bump",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "device_get_info",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "device_get_screen_sizes",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ios_market_share_get_distribution",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ios_market_share_calculate_reach",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ios_market_share_compare_versions",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ios_market_share_get_adoption_info",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ios_market_share_get_recommendation",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_check_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_create_dmg",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_create_zip",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_get_history",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_get_log",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_list_signing_identities",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_and_staple",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_sign_code",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_staple",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_store_credentials",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_submit",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_validate_staple",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "notarize_verify_code",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_add_media",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_app_info",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_boot",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_create",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_delete",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_erase",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_get_app_container",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_get_booted",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_get_logs",
      "tags": [
        "sensitive-source"
      ],
      "reasons": {
        "sensitive-source": [
          "keyword \"get_logs\""
        ]
      }
    },
    {
      "tool": "simulator_install_app",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_launch_app",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_list_apps",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_list_device_types",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_list_runtimes",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_open_app_container",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_open_url",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_pasteboard_copy",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_pasteboard_paste",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_pasteboard_sync",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_privacy",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_push_notification",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_record_video",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_screenshot",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_set_appearance",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_set_content_size",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_set_increase_contrast",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_set_location",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_set_status_bar",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_shutdown",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_stop_recording",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_terminate_app",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "simulator_uninstall_app",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_analyze_project",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_archive_project",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_build_project",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_clean_project",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_export_archive",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_get_build_settings",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_get_developer_path",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_get_info_plist",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_get_project_info",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_get_version",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_list_schemes",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_list_sdks",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_list_installations",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_run_tests",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "xcode_select",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "9b83152630928f17a1e237b15fe69588e5142f54b9bd18133bf1ee66569ef4ba",
  "stats": {
    "tools": 71,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 11,
      "medium": 1,
      "low": 0,
      "info": 0
    }
  }
}