Raw scan report

Freeipa Mcp Py — 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": "freeipa-mcp-py",
    "source": {
      "kind": "package",
      "origin": "freeipa-mcp-py"
    },
    "server": {
      "name": "freeipa-mcp-py"
    }
  },
  "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": [
      "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 (11 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 (freeipa_mcp/tools/_vault_dialog.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`freeipa_mcp/tools/_vault_dialog.py:47`): 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": "freeipa_mcp/tools/_vault_dialog.py"
      },
      "evidence": "subprocess result = subprocess.run( # noqa: S603 - trusted script with controlled args [sys.executable, str",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "freeipa_mcp/tools/_vault_dialog.py",
        "line": 47,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (freeipa_mcp/tools/healthcheck.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`freeipa_mcp/tools/healthcheck.py:22`): 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": "freeipa_mcp/tools/healthcheck.py"
      },
      "evidence": "() -> str: result = subprocess.run( # noqa: S603 - klist is a trusted Kerberos tool [\"klist\"], # noqa: S60",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "freeipa_mcp/tools/healthcheck.py",
        "line": 22,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (freeipa_mcp/tools/login.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`freeipa_mcp/tools/login.py:54`): 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": "freeipa_mcp/tools/login.py"
      },
      "evidence": "s. \"\"\" result = subprocess.run( # noqa: S603 - klist is a trusted Kerberos tool [\"klist\", \"-A\"], # noq",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "freeipa_mcp/tools/login.py",
        "line": 54,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (freeipa_mcp/tools/login_gui.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`freeipa_mcp/tools/login_gui.py:50`): 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": "freeipa_mcp/tools/login_gui.py"
      },
      "evidence": "ncipals)) result = subprocess.run( # noqa: S603 - trusted script with controlled args args, captur",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "freeipa_mcp/tools/login_gui.py",
        "line": 50,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (freeipa_mcp/tools/sudo_gui.py)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`freeipa_mcp/tools/sudo_gui.py:33`): 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": "freeipa_mcp/tools/sudo_gui.py"
      },
      "evidence": ") result = subprocess.run( # noqa: S603 - trusted script with controlled args [sys.executable, str",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "freeipa_mcp/tools/sudo_gui.py",
        "line": 33,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-006",
      "title": "Reads a sensitive credential path or dumps the environment in packaging/dev tooling (tests/test_path_validation.py)",
      "category": "exfiltration",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`tests/test_path_validation.py:90`): Reading private keys / cloud credentials, or serializing the whole environment, is a sensitive-data source that becomes exfiltration when combined with any egress. 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": "tests/test_path_validation.py"
      },
      "evidence": "e_file_path(\"/root/.ssh/id_rsa\", allow_write=False) def test_validate_file_path_rejects_write_to_etc(temp_home): \"",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "rule": "MTC-SRC-006",
        "file": "tests/test_path_validation.py",
        "line": 90,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SUP-012",
      "title": "Package has no license",
      "category": "hygiene",
      "severity": "info",
      "confidence": "strong",
      "description": "\"freeipa-mcp-py\" has no declared license. This is a legal/reuse concern, not a security finding.",
      "location": {
        "kind": "package",
        "name": "freeipa-mcp-py"
      }
    }
  ],
  "toxicFlows": [],
  "capabilities": [
    {
      "tool": "ping",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "help",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "create_ipaconf",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "login",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "healthcheck",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "load_tools",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "vaultconfig-show",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "vault-add",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "vault-mod",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "vault-archive",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "vault-retrieve",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "22b44c82c83ac7d1943789874ed5d98bc9def9c5d2d8fafa643499b488c78265",
  "stats": {
    "tools": 11,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 5,
      "medium": 0,
      "low": 1,
      "info": 1
    }
  }
}