Raw scan report

Ai Consultation — the complete, unedited output of the deterministic mcptrustchecker engine v1.9.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.9.0",
    "methodologyVersion": "mcptrustchecker-1.9"
  },
  "target": {
    "id": "ai-consultation-mcp",
    "source": {
      "kind": "package",
      "origin": "ai-consultation-mcp"
    },
    "server": {
      "name": "ai-consultation-mcp"
    }
  },
  "grade": "B",
  "score": {
    "score": 86,
    "threatScore": 93,
    "grade": "B",
    "band": "B",
    "categorySubtotals": {
      "injection": 6.3,
      "exfiltration": 0,
      "permissions": 0,
      "supply-chain": 1.2,
      "network": 0,
      "hygiene": 0
    },
    "vector": [
      {
        "kind": "threat",
        "ruleId": "MTC-SRC-009",
        "category": "injection",
        "severity": "medium",
        "confidence": "strong",
        "rawWeight": 9,
        "confidenceMult": 0.7,
        "diminishingFactor": 1,
        "appliedPenalty": 6.3
      },
      {
        "kind": "threat",
        "ruleId": "MTC-SUP-010",
        "category": "supply-chain",
        "severity": "low",
        "confidence": "heuristic",
        "rawWeight": 3,
        "confidenceMult": 0.4,
        "diminishingFactor": 1,
        "appliedPenalty": 1.2
      },
      {
        "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.9"
  },
  "capability": {
    "level": "high",
    "reasons": [
      "can send data / act on an external service",
      "can execute shell commands or code"
    ],
    "tags": [
      "external-sink",
      "code-exec"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (14 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 (dist/daemon/utils/lock.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/daemon/utils/lock.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": "dist/daemon/utils/lock.js"
      },
      "evidence": "port { execSync } from 'child_process'; const CONFIG_DIR = path.join(os.homedir(), '.ai-consultation-mcp'); const LOCK_F",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/daemon/utils/lock.js",
        "line": 5,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/installer/detector.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/installer/detector.js:7`): 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/installer/detector.js"
      },
      "evidence": "{ execFileSync } from 'child_process'; import { SUPPORTED_TOOLS } from './tools.js'; /** * Get current platform */ ex",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/installer/detector.js",
        "line": 7,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/proxy/daemon-client.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/proxy/daemon-client.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/proxy/daemon-client.js"
      },
      "evidence": "import { spawn } from 'child_process'; import path from 'path'; import fs from 'fs'; import os from 'os'; import { file",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/proxy/daemon-client.js",
        "line": 2,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (dist/utils/portKiller.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/utils/portKiller.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/utils/portKiller.js"
      },
      "evidence": "port { execFile } from 'child_process'; import { promisify } from 'util'; const execFileAsync = promisify(execFile); /**",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "dist/utils/portKiller.js",
        "line": 1,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-009",
      "title": "Untrusted input concatenated into a command sink (dist/daemon/utils/lock.js)",
      "category": "injection",
      "severity": "medium",
      "confidence": "strong",
      "description": "In the server's implementation (`dist/daemon/utils/lock.js:24`): A shell/process command assembled from concatenated or interpolated values is command injection when any part is attacker-influenced — the OWASP canonical RCE flow. Verify what reaches the interpolated value. 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/daemon/utils/lock.js"
      },
      "evidence": "x') { cmd = execSync(`ps -p ${pid} -o command=`, { encoding: 'utf-8' }); } else if (platform",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-009",
        "file": "dist/daemon/utils/lock.js",
        "line": 24,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SUP-010",
      "title": "Package runs install-time scripts (postinstall)",
      "category": "supply-chain",
      "severity": "low",
      "confidence": "heuristic",
      "description": "\"ai-consultation-mcp\" executes postinstall script(s) at install time. An install hook runs at install time; most are routine build/setup, but review what it does before trusting it.",
      "remediation": "Review the scripts; install with --ignore-scripts where possible and vet what they do.",
      "location": {
        "kind": "package",
        "name": "ai-consultation-mcp"
      },
      "evidence": "chmod +x scripts/postinstall.sh && bash scripts/postinstall.sh",
      "owasp": "LLM03:2025 Supply Chain",
      "references": [
        "https://github.com/ossf/package-analysis",
        "https://owasp.org/www-project-top-10-ci-cd-security-risks/"
      ],
      "data": {
        "scripts": [
          "postinstall"
        ]
      }
    }
  ],
  "toxicFlows": [],
  "capabilities": [
    {
      "tool": "consult_agent",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "continue_conversation",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "end_conversation",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rag_search",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rag_upload_files",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"upload_file\""
        ]
      }
    },
    {
      "tool": "rag_list_docs",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rag_list_folders",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rag_update_doc_folder",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rag_bulk_update_folders",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rag_list_memories",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rag_get_doc_chunks",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rag_add_memory",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rag_delete_document",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "rag_bulk_delete_documents",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "bc36e00b39f41c8ab21384d734ad08d32b95f02f1b7fe14d797a76f6a7205f6e",
  "stats": {
    "tools": 14,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 4,
      "medium": 1,
      "low": 1,
      "info": 0
    }
  }
}