Raw scan report

Magector — 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": "magector",
    "source": {
      "kind": "package",
      "origin": "magector"
    },
    "server": {
      "name": "magector"
    }
  },
  "grade": "A",
  "score": {
    "score": 94,
    "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": "source",
        "label": "publisher verification (provenance) — cryptographic build provenance ties the artifact to its source",
        "appliedPenalty": 0
      },
      {
        "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 send data / act on an external service",
      "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",
      "external-sink"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (48 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/binary.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/binary.js:11`): 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/binary.js"
      },
      "evidence": "{ execFileSync } from 'child_process'; import path from 'path'; import { fileURLToPath } from 'url'; import { createReq",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/binary.js",
        "line": 11,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/cli.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/cli.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": "src/cli.js"
      },
      "evidence": "FileSync, spawn } from 'child_process'; import { existsSync, mkdirSync } from 'fs'; import path from 'path'; import { re",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/cli.js",
        "line": 8,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/init.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/init.js:5`): 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/init.js"
      },
      "evidence": "{ execFileSync } from 'child_process'; import { createInterface } from 'readline'; import { homedir } from 'os'; import",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/init.js",
        "line": 5,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/mcp-server.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/mcp-server.js:17`): 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/mcp-server.js"
      },
      "evidence": "FileSync, spawn } from 'child_process'; import { createInterface } from 'readline'; import { createServer as createNetSe",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/mcp-server.js",
        "line": 17,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/update.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/update.js:11`): 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/update.js"
      },
      "evidence": "{ execFileSync } from 'child_process'; import { homedir } from 'os'; import path from 'path'; import { fileURLToPath }",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/update.js",
        "line": 11,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-003",
      "title": "Hardcoded egress to an external endpoint (src/update.js)",
      "category": "exfiltration",
      "severity": "medium",
      "confidence": "strong",
      "description": "In the server's implementation (`src/update.js:86`): A hardcoded outbound call to a fixed external host inside server code is a classic exfiltration/telemetry channel — especially paired with reads of local data. 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/update.js"
      },
      "evidence": "const resp = await fetch('https://registry.npmjs.org/magector/latest', { signal: controller.signal, hea",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "rule": "MTC-SRC-003",
        "file": "src/update.js",
        "line": 86,
        "nonRuntime": false
      }
    }
  ],
  "toxicFlows": [],
  "capabilities": [
    {
      "tool": "magento_search",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_class",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_method",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_config",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_index",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_stats",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_plugin",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_observer",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_preference",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_api",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_controller",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_block",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_cron",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_graphql",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_db_schema",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_trigger",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_table_usage",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_module_structure",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_analyze_diff",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_complexity",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_describe",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_fieldset",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_trace_shipping_chain",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_trace_flow",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_trace_dependency",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_error_parser",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_performance_profile",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_layout",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_impact_analysis",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_event_flow",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_test",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_implementors",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_callers",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_di_wiring",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_trace_call_chain",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_trace_data_flow",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_event_dispatchers",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_batch",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_grep",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_ast_search",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_dataobject_issues",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_enrich",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_find_null_risks",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_trace_api",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "magento_trace_config",
      "tags": [
        "sensitive-source"
      ],
      "reasons": {
        "sensitive-source": [
          "keyword \"sql_query\""
        ]
      }
    },
    {
      "tool": "magento_read",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Index Statistics",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "ecf4aa1a17fd5f73a3a3a91fe9c681bbadf76b593c5d6d62028d09f32cba51a6",
  "stats": {
    "tools": 48,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 5,
      "medium": 1,
      "low": 0,
      "info": 0
    }
  }
}