Raw scan report

Kicad — 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": "kicad-mcp",
    "source": {
      "kind": "package",
      "origin": "kicad-mcp"
    },
    "server": {
      "name": "kicad-mcp"
    }
  },
  "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": [
      "can execute shell commands or code"
    ],
    "tags": [
      "code-exec"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (54 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 (bin/kicad-mcp.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`bin/kicad-mcp.js:8`): 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": "bin/kicad-mcp.js"
      },
      "evidence": "nSync } = require(\"node:child_process\"); const packageRoot = path.resolve(__dirname, \"..\"); const pluginDir = path.join",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "bin/kicad-mcp.js",
        "line": 8,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (kicad-ai-plugin/plugin.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`kicad-ai-plugin/plugin.py:888`): 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": "kicad-ai-plugin/plugin.py"
      },
      "evidence": ": process = subprocess.Popen( [_python_executable(), str(SERVER_PATH)], cwd=",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "kicad-ai-plugin/plugin.py",
        "line": 888,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (kicad-ai-plugin/tools/common.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`kicad-ai-plugin/tools/common.py:96`): 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": "kicad-ai-plugin/tools/common.py"
      },
      "evidence": "Result: completed = subprocess.run( list(command), text=True, stdout=subprocess.PIPE,",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "kicad-ai-plugin/tools/common.py",
        "line": 96,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (kicad-ai-plugin/tools/drc.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`kicad-ai-plugin/tools/drc.py:168`): 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": "kicad-ai-plugin/tools/drc.py"
      },
      "evidence": "-> str: completed = subprocess.run( [kicad_cli, \"pcb\", \"drc\", \"--help\"], text=True, stdout=s",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "kicad-ai-plugin/tools/drc.py",
        "line": 168,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (kicad-ai-plugin/tools/gerber.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`kicad-ai-plugin/tools/gerber.py:16`): 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": "kicad-ai-plugin/tools/gerber.py"
      },
      "evidence": "-> str: completed = subprocess.run( [kicad_cli, *args, \"--help\"], text=True, stdout=subproce",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "kicad-ai-plugin/tools/gerber.py",
        "line": 16,
        "nonRuntime": false
      }
    }
  ],
  "toxicFlows": [],
  "capabilities": [
    {
      "tool": "kicad_run_erc",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_parse_erc_report",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_summarize_erc_report",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_run_drc",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_parse_drc_report",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_summarize_drc_report",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_export_bom",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_export_gerbers",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_export_drill_files",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_export_fabrication_package",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_list_footprint_libraries",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_search_footprints",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_inspect_footprint",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_list_board_footprints",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_get_board_footprint_properties",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_export_footprint_svg",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_export_position_file",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_move_board_footprint",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_rotate_board_footprint",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_set_board_footprint_layer",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_align_footprints",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_distribute_footprints",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_grid_place_footprints",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_sort_board_footprints",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_arrange_board_footprints",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_list_board_backups",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_restore_board_backup",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_validate_board",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_delete_board_footprint",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_create_footprint_library",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_create_footprint",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_create_mounting_hole_footprint",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_create_slotted_hole_footprint",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_register_project_footprint_library",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_set_footprint_metadata",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_set_footprint_property",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_add_footprint_graphic",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_add_footprint_text",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_add_footprint_model",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_add_footprint_pad",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_add_polygon_custom_pad",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_add_footprint_slot",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_add_custom_pad_primitive",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_list_custom_pad_primitives",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_update_custom_pad_primitive",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_delete_custom_pad_primitive",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_update_footprint_pad",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_delete_footprint_pad",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_validate_footprint",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_place_footprint",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_export_ipcd356",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_export_odb",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_export_ipc2581",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "kicad_tool_inventory",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "7d4cc33a1e466ce2c60cfbf1542348f80bfd3d9c21c49119c172c39cf77f13d1",
  "stats": {
    "tools": 54,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 5,
      "medium": 0,
      "low": 0,
      "info": 0
    }
  }
}