Raw scan report

Flow Nexus — 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": "flow-nexus",
    "source": {
      "kind": "package",
      "origin": "flow-nexus"
    },
    "server": {
      "name": "flow-nexus"
    }
  },
  "grade": "B",
  "score": {
    "score": 85,
    "threatScore": 92,
    "grade": "B",
    "band": "B",
    "categorySubtotals": {
      "injection": 6.3,
      "exfiltration": 2.1,
      "permissions": 0,
      "supply-chain": 0,
      "network": 0,
      "hygiene": 0
    },
    "vector": [
      {
        "kind": "threat",
        "ruleId": "MTC-SRC-008",
        "category": "exfiltration",
        "severity": "low",
        "confidence": "heuristic",
        "rawWeight": 3,
        "confidenceMult": 0.4,
        "diminishingFactor": 1,
        "appliedPenalty": 1.2
      },
      {
        "kind": "threat",
        "ruleId": "MTC-SRC-008",
        "category": "exfiltration",
        "severity": "low",
        "confidence": "heuristic",
        "rawWeight": 3,
        "confidenceMult": 0.4,
        "diminishingFactor": 0.5,
        "appliedPenalty": 0.6
      },
      {
        "kind": "threat",
        "ruleId": "MTC-SRC-008",
        "category": "exfiltration",
        "severity": "low",
        "confidence": "heuristic",
        "rawWeight": 3,
        "confidenceMult": 0.4,
        "diminishingFactor": 0.25,
        "appliedPenalty": 0.3
      },
      {
        "kind": "threat",
        "ruleId": "MTC-SRC-009",
        "category": "injection",
        "severity": "medium",
        "confidence": "strong",
        "rawWeight": 9,
        "confidenceMult": 0.7,
        "diminishingFactor": 1,
        "appliedPenalty": 6.3
      },
      {
        "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.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": [
      "code-exec",
      "external-sink",
      "sensitive-source"
    ]
  },
  "coverage": {
    "level": "source",
    "inputs": {
      "toolSurface": true,
      "implementationSource": true,
      "packageMetadata": true,
      "liveTransport": false
    },
    "caveats": [
      "Tools were statically extracted from the published source (130 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-FLOW-004",
      "title": "Sensitive-source and external-sink co-exist",
      "category": "exfiltration",
      "severity": "high",
      "confidence": "strong",
      "description": "Tools that read sensitive data ([execution_files_list, storage_list]) and tools that can send data out ([agent_spawn, sandbox_upload, storage_upload, template_create]) are exposed together. An agent can move private data to the sink.",
      "remediation": "Keep secret-reading and egress capabilities on separate, separately-approved servers.",
      "location": {
        "kind": "flow",
        "name": "execution_files_list → agent_spawn"
      },
      "evidence": "sources [execution_files_list, storage_list] → sinks [agent_spawn, sandbox_upload, storage_upload, template_create]",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "references": [],
      "data": {
        "sources": [
          "execution_files_list",
          "storage_list"
        ],
        "sinks": [
          "agent_spawn",
          "sandbox_upload",
          "storage_upload",
          "template_create"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-001",
      "title": "Tool \"agent_spawn\" exposes command/code execution",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "Tool \"agent_spawn\" appears to run shell commands or evaluate code (keyword \"spawn\" in tool name). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.",
      "remediation": "Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.",
      "location": {
        "kind": "tool",
        "name": "agent_spawn"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-001",
      "title": "Tool \"template_create\" exposes command/code execution",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "Tool \"template_create\" appears to run shell commands or evaluate code (parameter \"command\"). Arbitrary execution driven by model input is one of the most dangerous MCP capabilities; combined with any untrusted input it becomes RCE.",
      "remediation": "Sandbox execution, allowlist commands/arguments, and never pass model output to a shell unescaped.",
      "location": {
        "kind": "tool",
        "name": "template_create"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (bin/flow-nexus.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`bin/flow-nexus.js:9`): 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": "bin/flow-nexus.js"
      },
      "evidence": "import { spawn } from 'child_process'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; impor",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "bin/flow-nexus.js",
        "line": 9,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (bin/mcp.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`bin/mcp.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": "bin/mcp.js"
      },
      "evidence": "import { spawn } from 'child_process'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; cons",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "bin/mcp.js",
        "line": 8,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (cli.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`cli.js:10`): 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": "cli.js"
      },
      "evidence": "exec, spawnSync } from 'child_process'; import { promisify } from 'util'; import supabaseClient from './src/services/sup",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "cli.js",
        "line": 10,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/cli/index.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/cli/index.js:3`): 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/index.js"
      },
      "evidence": "import { spawn } from 'child_process'; import { fileURLToPath } from 'url'; import { dirname, join } from 'path'; impor",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/cli/index.js",
        "line": 3,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/cli/payment-cli.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/cli/payment-cli.js:78`): 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/payment-cli.js"
      },
      "evidence": "exec } = await import('child_process'); exec(`echo \"${result.paymentUrl}\" | pbcopy`); console.log(c",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/cli/payment-cli.js",
        "line": 78,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/index-real.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/index-real.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": "src/index-real.js"
      },
      "evidence": "; import { exec } from 'child_process'; import { promisify } from 'util'; const execAsync = promisify(exec); const requ",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/index-real.js",
        "line": 16,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/index.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/index.js:39`): 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/index.js"
      },
      "evidence": "; import { exec } from 'child_process'; import { promisify } from 'util'; import distributedNeuralTools from './tools/di",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/index.js",
        "line": 39,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in server code (src/mcp-bridge.js)",
      "category": "permissions",
      "severity": "high",
      "confidence": "strong",
      "description": "In the server's implementation (`src/mcp-bridge.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/mcp-bridge.js"
      },
      "evidence": "import { spawn } from 'child_process'; import http from 'http'; import { fileURLToPath } from 'url'; import { dirname,",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "src/mcp-bridge.js",
        "line": 8,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-003",
      "title": "Hardcoded egress to an external endpoint (src/services/auth-service.js)",
      "category": "exfiltration",
      "severity": "medium",
      "confidence": "strong",
      "description": "In the server's implementation (`src/services/auth-service.js:46`): 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/services/auth-service.js"
      },
      "evidence": "const response = await fetch('https://api.flow-nexus.com/auth/validate', { method: 'POST', headers: { 'Cont",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "rule": "MTC-SRC-003",
        "file": "src/services/auth-service.js",
        "line": 46,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-009",
      "title": "Untrusted input concatenated into a command sink (src/cli/payment-cli.js)",
      "category": "injection",
      "severity": "medium",
      "confidence": "strong",
      "description": "In the server's implementation (`src/cli/payment-cli.js:79`): 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": "src/cli/payment-cli.js"
      },
      "evidence": "ld_process'); exec(`echo \"${result.paymentUrl}\" | pbcopy`); console.log(chalk.green('✅ Payment link",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-009",
        "file": "src/cli/payment-cli.js",
        "line": 79,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-CAP-006",
      "title": "Unconstrained command parameter \"claude_command_template\" on \"template_create\"",
      "category": "permissions",
      "severity": "medium",
      "confidence": "heuristic",
      "description": "Tool \"template_create\" takes a command-shaped parameter \"claude_command_template\" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.",
      "remediation": "Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.",
      "location": {
        "kind": "tool",
        "name": "template_create",
        "field": "inputSchema.properties.claude_command_template"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "param": "claude_command_template"
      }
    },
    {
      "ruleId": "MTC-CAP-006",
      "title": "Unconstrained command parameter \"startup_script\" on \"template_create\"",
      "category": "permissions",
      "severity": "medium",
      "confidence": "heuristic",
      "description": "Tool \"template_create\" takes a command-shaped parameter \"startup_script\" with no enum/pattern constraint. Free-form, model- or attacker-controlled arguments reaching a shell is the command-injection precondition.",
      "remediation": "Constrain the parameter (enum/pattern), or build the command from a fixed template with escaped args.",
      "location": {
        "kind": "tool",
        "name": "template_create",
        "field": "inputSchema.properties.startup_script"
      },
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "param": "startup_script"
      }
    },
    {
      "ruleId": "MTC-SRC-005",
      "title": "Dynamic module load from a non-literal (bin/flow-nexus.js)",
      "category": "permissions",
      "severity": "medium",
      "confidence": "heuristic",
      "description": "In the server's implementation (`bin/flow-nexus.js:241`): Loading a module chosen at runtime (from a variable) can pull in and run attacker-influenced code paths. 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": "bin/flow-nexus.js"
      },
      "evidence": ": serverPath; import(serverUrl).then(module => { const FlowNexusServer = module.FlowNexusServer || modul",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-005",
        "file": "bin/flow-nexus.js",
        "line": 241,
        "nonRuntime": false
      }
    },
    {
      "ruleId": "MTC-SRC-008",
      "title": "Hardcoded JSON Web Token in test/example/packaging (scripts/init-user.js)",
      "category": "exfiltration",
      "severity": "low",
      "confidence": "heuristic",
      "description": "A hardcoded JSON Web Token (a public-by-design (anon/publishable) key — RLS, not secrecy, protects it) appears in `scripts/init-user.js:28`. Verify whether this is a real credential; if so, remove and rotate it.",
      "remediation": "Remove the secret, rotate it, and load credentials from the environment or a secret store.",
      "location": {
        "kind": "server",
        "name": "scripts/init-user.js"
      },
      "evidence": "JSON Web Token: eyJh…(redacted)",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "secretType": "jwt",
        "file": "scripts/init-user.js",
        "line": 28
      }
    },
    {
      "ruleId": "MTC-SRC-008",
      "title": "Hardcoded JSON Web Token in server code (src/config/supabase-config.js)",
      "category": "exfiltration",
      "severity": "low",
      "confidence": "heuristic",
      "description": "A hardcoded JSON Web Token (a public-by-design (anon/publishable) key — RLS, not secrecy, protects it) appears in `src/config/supabase-config.js:9`. Verify whether this is a real credential; if so, remove and rotate it.",
      "remediation": "Remove the secret, rotate it, and load credentials from the environment or a secret store.",
      "location": {
        "kind": "server",
        "name": "src/config/supabase-config.js"
      },
      "evidence": "JSON Web Token: eyJh…(redacted)",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "secretType": "jwt",
        "file": "src/config/supabase-config.js",
        "line": 9
      }
    },
    {
      "ruleId": "MTC-SRC-008",
      "title": "Hardcoded JSON Web Token in server code (src/services/supabase-client.js)",
      "category": "exfiltration",
      "severity": "low",
      "confidence": "heuristic",
      "description": "A hardcoded JSON Web Token (a public-by-design (anon/publishable) key — RLS, not secrecy, protects it) appears in `src/services/supabase-client.js:26`. Verify whether this is a real credential; if so, remove and rotate it.",
      "remediation": "Remove the secret, rotate it, and load credentials from the environment or a secret store.",
      "location": {
        "kind": "server",
        "name": "src/services/supabase-client.js"
      },
      "evidence": "JSON Web Token: eyJh…(redacted)",
      "owasp": "LLM02:2025 Sensitive Information Disclosure",
      "data": {
        "secretType": "jwt",
        "file": "src/services/supabase-client.js",
        "line": 26
      }
    },
    {
      "ruleId": "MTC-CAP-005",
      "title": "Mutating tool \"agent_spawn\" declares no destructiveHint",
      "category": "hygiene",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"agent_spawn\" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.",
      "remediation": "Declare accurate annotations, and gate destructive tools on user confirmation regardless.",
      "location": {
        "kind": "tool",
        "name": "agent_spawn"
      },
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-005",
      "title": "Mutating tool \"template_create\" declares no destructiveHint",
      "category": "hygiene",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"template_create\" can mutate/egress but declares no destructiveHint. Clients that don't default to spec-safe behavior may not prompt before running it.",
      "remediation": "Declare accurate annotations, and gate destructive tools on user confirmation regardless.",
      "location": {
        "kind": "tool",
        "name": "template_create"
      },
      "data": {
        "tags": [
          "code-exec"
        ]
      }
    },
    {
      "ruleId": "MTC-CAP-008",
      "title": "Unconstrained path parameter \"file_type\" on \"execution_files_list\"",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"execution_files_list\" takes a path parameter \"file_type\" with no constraint. Without a canonicalize-and-contain check (not visible statically), this permits ../ traversal outside the intended root.",
      "remediation": "Resolve and verify the path stays within an allowed root; reject traversal sequences.",
      "location": {
        "kind": "tool",
        "name": "execution_files_list",
        "field": "inputSchema.properties.file_type"
      },
      "data": {
        "param": "file_type"
      }
    },
    {
      "ruleId": "MTC-CAP-008",
      "title": "Unconstrained path parameter \"path\" on \"storage_list\"",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "Tool \"storage_list\" takes a path parameter \"path\" with no constraint. Without a canonicalize-and-contain check (not visible statically), this permits ../ traversal outside the intended root.",
      "remediation": "Resolve and verify the path stays within an allowed root; reject traversal sequences.",
      "location": {
        "kind": "tool",
        "name": "storage_list",
        "field": "inputSchema.properties.path"
      },
      "data": {
        "param": "path"
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (scripts/debug-chat.js)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/debug-chat.js:3`): 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": "scripts/debug-chat.js"
      },
      "evidence": "import { spawn } from 'child_process'; import path from 'path'; import { fileURLToPath } from 'url'; const __filename",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "scripts/debug-chat.js",
        "line": 3,
        "nonRuntime": true
      }
    },
    {
      "ruleId": "MTC-SRC-002",
      "title": "Shell/command execution in packaging/dev tooling (scripts/fix-critical-issues.js)",
      "category": "permissions",
      "severity": "low",
      "confidence": "heuristic",
      "description": "In a packaging/dev/install script (shipped, but not the server runtime) (`scripts/fix-critical-issues.js:351`): 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": "scripts/fix-critical-issues.js"
      },
      "evidence": "import { exec } from 'child_process'; import { promisify } from 'util'; import chalk from 'chalk'; const execAsync =",
      "owasp": "LLM05:2025 Improper Output Handling",
      "data": {
        "rule": "MTC-SRC-002",
        "file": "scripts/fix-critical-issues.js",
        "line": 351,
        "nonRuntime": true
      }
    }
  ],
  "toxicFlows": [
    {
      "id": "flow-1",
      "severity": "high",
      "confidence": "strong",
      "untrustedInput": [],
      "sensitiveSource": [
        "execution_files_list",
        "storage_list"
      ],
      "externalSink": [
        "agent_spawn",
        "sandbox_upload",
        "storage_upload",
        "template_create"
      ],
      "selfContained": false,
      "path": [
        "execution_files_list",
        "agent_spawn"
      ],
      "pathWired": false,
      "description": "A sensitive-source → external-sink chain exists: execution_files_list → agent_spawn."
    }
  ],
  "capabilities": [
    {
      "tool": "auth_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "auth_init",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "template_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "template_get",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "template_create_from",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_publish",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_update",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_remove",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_get",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "analytics_app_stats",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "analytics_user_stats",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "analytics_store_overview",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "challenge_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "challenge_get",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "challenge_submit",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "achievement_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "leaderboard_get",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "credits_balance",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "credits_earn",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "credits_spend",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "realtime_subscribe",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "realtime_broadcast",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "daa_agent_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "daa_get_recommendations",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "daa_quality_check",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "system_info",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "App Templates Catalog",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Featured Apps",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Trending Apps",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Active Challenges",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Current Leaderboards",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Achievements Catalog",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Store Analytics Overview",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "WASM DAA Agents Status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Real-time Channels",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Categories Tree",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "React Dashboard",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Node.js REST API",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Python ML Pipeline",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Smart Code Formatter",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "API Testing Suite",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Flow Nexus Complete",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "App Store Only",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Swarm Coordination",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Development Tools",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Gamification Features",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "swarm_init",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "agent_spawn",
      "tags": [
        "code-exec"
      ],
      "reasons": {
        "code-exec": [
          "keyword \"spawn\" in tool name"
        ]
      }
    },
    {
      "tool": "task_orchestrate",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_store_list_templates",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_store_publish_app",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_store_complete_challenge",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_store_earn_ruv",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sandbox_create",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sandbox_execute",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "neural_train",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "github_repo_analyze",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "daa_agent_create",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "workflow_create",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "API Reference",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Getting Started Guide",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "React Application Template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Node.js API Template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Swarm Coordination Example",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Production Configuration",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Enterprise Suite",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Advanced Workflow System",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "Flow Nexus Neural",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "check_balance",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "create_payment_link",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "configure_auto_refill",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "get_payment_history",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "swarm_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "swarm_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "swarm_scale",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "swarm_destroy",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "swarm_create_from_template",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "swarm_templates_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "template_deploy",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "challenges_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "achievements_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ruv_balance",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "ruv_history",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sandbox_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sandbox_stop",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sandbox_configure",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sandbox_delete",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sandbox_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "sandbox_upload",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"upload_file\""
        ]
      }
    },
    {
      "tool": "sandbox_logs",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "workflow_execute",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "workflow_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "workflow_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "workflow_agent_assign",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "workflow_queue_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "workflow_audit_trail",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_register",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_login",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_logout",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_verify_email",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_reset_password",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_update_password",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_upgrade",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_stats",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_profile",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "user_update_profile",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "execution_stream_subscribe",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "execution_stream_status",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "execution_files_list",
      "tags": [
        "sensitive-source"
      ],
      "reasons": {
        "sensitive-source": [
          "keyword \"list_files\""
        ]
      }
    },
    {
      "tool": "execution_file_get",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "realtime_unsubscribe",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "realtime_list",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "storage_upload",
      "tags": [
        "external-sink"
      ],
      "reasons": {
        "external-sink": [
          "keyword \"upload_file\""
        ]
      }
    },
    {
      "tool": "storage_delete",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "storage_list",
      "tags": [
        "sensitive-source"
      ],
      "reasons": {
        "sensitive-source": [
          "keyword \"list_files\""
        ]
      }
    },
    {
      "tool": "storage_get_url",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_search",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_analytics",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "app_installed",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "system_health",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "audit_log",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "market_data",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "seraphina_chat",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "template_deployments",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "template_create",
      "tags": [
        "code-exec"
      ],
      "reasons": {
        "code-exec": [
          "parameter \"command\""
        ]
      }
    },
    {
      "tool": "auth_register",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "auth_login",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "swarm_metrics",
      "tags": [],
      "reasons": {}
    },
    {
      "tool": "credits_transfer",
      "tags": [],
      "reasons": {}
    }
  ],
  "surfaceDigest": "ea96c4da874ee72f5f05a7b7258481cc3ff4e472b772d25de498cc4fa035bcb0",
  "stats": {
    "tools": 130,
    "prompts": 0,
    "resources": 0,
    "findingsBySeverity": {
      "critical": 0,
      "high": 11,
      "medium": 5,
      "low": 9,
      "info": 0
    }
  }
}