Raw scan report

Legion — 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": "legion-mcp",
    "source": {
      "kind": "package",
      "origin": "legion-mcp"
    },
    "server": {
      "name": "legion-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.9"
  },
  "capability": {
    "level": "high",
    "reasons": [
      "ingests untrusted external content (a prompt-injection entry point)",
      "can execute shell commands or code"
    ],
    "tags": [
      "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 (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/legion_mcp/proxy/cognitive_extractor.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/legion_mcp/proxy/cognitive_extractor.py:494`): 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/legion_mcp/proxy/cognitive_extractor.py"
      },
      "evidence": "process = subprocess.Popen( cmd, stdin=subprocess.PIPE, st",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/legion_mcp/proxy/cognitive_extractor.py",
        "line": 494,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/legion_mcp/proxy_manager.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/legion_mcp/proxy_manager.py:122`): 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/legion_mcp/proxy_manager.py"
      },
      "evidence": "try: result = subprocess.run( [\"lsof\", \"-ti\", f\":{port}\"], capture_output=True, text=T",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/legion_mcp/proxy_manager.py",
        "line": 122,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/legion_mcp/tools/delegation.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/legion_mcp/tools/delegation.py:919`): 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/legion_mcp/tools/delegation.py"
      },
      "evidence": ") process = subprocess.Popen( cmd, stdin=subprocess.PIPE, st",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/legion_mcp/tools/delegation.py",
        "line": 919,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SUP-012",
      "title": "Package has no license",
      "category": "hygiene",
      "severity": "info",
      "confidence": "strong",
      "description": "\"legion-mcp\" has no declared license. This is a legal/reuse concern, not a security finding.",
      "location": {
        "kind": "package",
        "name": "legion-mcp"
      }
    }
  ],
  "toxicFlows": [],
  "capabilities": [
    {
      "tool": "authenticateUser",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "getProjects",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "createKnowledge",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "createCode",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "createExpertise",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "addExpertiseChunk",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "listExpertise",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "getExpertise",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "updateExpertise",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "recordLesson",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "whoAmI",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "activateWorkflow",
      "tags": [
        "untrusted-input"
      ],
      "reasons": {
        "untrusted-input": [
          "keyword \"fetch\""
        ]
      }
    },
    {
      "tool": "createWorkflow",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "updateWorkflow",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "deleteWorkflow",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "listWorkflows",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "linkAgentSkill",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "unlinkAgentSkill",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "createAgent",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "deleteAgent",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "updateAgent",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "createEngagement",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "getEngagement",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "getEntry",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "listEngagements",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "updateEngagement",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "addEntry",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "updateEntry",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "searchEntries",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "resumeEngagement",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "createTask",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "getTask",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "listTasks",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "updateTask",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "assignTask",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "completeTask",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "linkArtifact",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "delegate_to_agent",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_delegation_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_delegation_result",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "list_delegations",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "cancel_delegation",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "getIngestionStatus",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "listIngestions",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "start_proxy",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "stop_proxy",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "proxy_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "whatIKnow",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "a89c415428befe90a893cdf300ba9f149e7ea48f2e6ce2791095b1a6bb9fe731",
  "stats": {
    "tools": 48,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 3,
      "medium": 0,
      "low": 0,
      "info": 1
    }
  }
}