Raw scan report

Festo Codesys — the complete, unedited output of the deterministic mcptrustchecker engine v1.8.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.8.0",
    "methodologyVersion": "mcptrustchecker-1.8"
  },
  "target": {
    "id": "festo-codesys-mcp",
    "source": {
      "kind": "package",
      "origin": "festo-codesys-mcp"
    },
    "server": {
      "name": "festo-codesys-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.8"
  },
  "capability": {
    "level": "high",
    "reasons": [
      "ingests untrusted external content (a prompt-injection entry point)",
      "can send data / act on an external service",
      "can execute shell commands or code"
    ],
    "tags": [
      "external-sink",
      "untrusted-input",
      "code-exec"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (38 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 (build/services/codesys-interop.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`build/services/codesys-interop.js:19`): 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": "build/services/codesys-interop.js"
      },
      "evidence": "import { spawn } from 'child_process'; import { writeFile, unlink } from 'fs/promises'; import { existsSync } from 'fs'",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "build/services/codesys-interop.js",
        "line": 19,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (build/services/python-runner.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`build/services/python-runner.js: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": "build/services/python-runner.js"
      },
      "evidence": "import { spawn } from 'child_process'; import { existsSync } from 'fs'; import { join, resolve } from 'path'; import {",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "build/services/python-runner.js",
        "line": 16,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-FLOW-005",
      "title": "Untrusted input can drive an external action",
      "category": "exfiltration",
      "severity": "medium",
      "confidence": "strong",
      "description": "Untrusted-input tools ([ide_browse_project_tree]) co-exist with external-action tools ([ide_open_project, ide_save_project, ide_browse_project_tree]). A prompt injection could cause unwanted external actions, though no direct sensitive-data leak path was found.",
      "remediation": "Require confirmation for state-changing/egress actions triggered after processing untrusted content.",
      "location": {
        "kind": "flow",
        "name": "ide_browse_project_tree → ide_open_project"
      },
      "evidence": "untrusted [ide_browse_project_tree] → sinks [ide_open_project, ide_save_project, ide_browse_project_tree]",
      "owasp": "LLM06:2025 Excessive Agency",
      "references": [],
      "data": {
        "untrusted": [
          "ide_browse_project_tree"
        ],
        "sinks": [
          "ide_open_project",
          "ide_save_project",
          "ide_browse_project_tree"
        ]
      }
    }
  ],
  "toxicFlows": [
    {
      "id": "flow-1",
      "severity": "medium",
      "confidence": "strong",
      "untrustedInput": [
        "ide_browse_project_tree"
      ],
      "sensitiveSource": [],
      "externalSink": [
        "ide_open_project",
        "ide_save_project",
        "ide_browse_project_tree"
      ],
      "selfContained": false,
      "description": "Untrusted input can drive an external action even though no sensitive source is exposed."
    }
  ],
  "capabilities": [
    {
      "tool": "debug_plc_code",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "review_st_code",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "explain_error_code",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ide_open_project",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"open_pr\""
        ]
      }
    },
    {
      "tool": "ide_create_project",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ide_save_project",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"open_pr\""
        ]
      }
    },
    {
      "tool": "ide_compile_project",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ide_create_pou",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ide_set_pou_code",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ide_create_property",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ide_create_method",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ide_browse_project_tree",
      "tags": [
        "untrusted-input",
        "external-sink"
      ],
      "reasons": {
        "untrusted-input": [
          "keyword \"browse\""
        ],
        "external-sink": [
          "keyword \"open_pr\""
        ]
      }
    },
    {
      "tool": "ide_get_pou_code",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ide_patch_pou_code",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ide_get_device_tree",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "cpx_discover_system",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "cpx_read_channel",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "cpx_write_channel",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "cpx_system_state",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "edcon_drive_control",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "edcon_position_task",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "edcon_pnu_read",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "edcon_pnu_write",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "plc_knowledge",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "plc_library",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "plc_lookup",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "create_function_block",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "create_program",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "create_data_type",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "create_gvl",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "st_symbols",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "st_find_references",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "plc_validate",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "generate_plcopen_xml",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "validate_plcopen_xml",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "validate_plcopen_xsd",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "validate_plcopen_semantic",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "create_project_structure",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "9fd459fe9b921cb87842eac8923e86fb0ce11eae2461593d5eec324bb9614427",
  "stats": {
    "tools": 38,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 2,
      "medium": 1,
      "low": 0,
      "info": 0
    }
  }
}