← MCP server and skill grades

SkillSpector

NVIDIA/SkillSpector

D
Type
MCP server
Scanned
Nov 18, 2026
Version
a09091e0ebf6
Files read
582

SkillSpector is a security scanner, local server, and coding-agent extension that checks AI agent skills, plugins, and MCP servers for malicious code, prompt injection, and vulnerable dependencies before you install them. Its biggest risk is that scanning an untrusted folder with the OpenCode extension can execute a malicious program hidden in that folder's .venv directory, while attackers can also use a decoy setting to hide dangerous plugin hooks or bypass its HTTP server filter to read local files.

What it can reach

Files
Reads local folders, files, lockfiles, archives (ZIP, TAR, GZIP, DOCX), baselines, and custom YARA rules provided for scanning, unpacks or clones targets into temporary directories, and writes scan reports or baseline files when requested.
Network
Downloads repositories and packages from Git hosts, HuggingFace, and npm, sends dependency lists to OSV.dev and queries the MCP Registry, sends scanned file contents to your configured AI model provider by default (and to LangSmith if tracing is enabled), and can run an unauthenticated local HTTP MCP server.
Shell commands
Runs git commands to clone remote repositories, starts Python worker processes to inspect dependencies, invokes local AI CLIs (claude, gemini, opencode) when selected as the model provider, and runs the skillspector command from its extensions and companion skill workflow.
Secrets
Reads AI model API keys, custom gateway headers, LangSmith settings, AWS and Google Cloud credentials, and ambient Git credentials from environment variables and local authentication stores.

Findings

2 high3 medium4 low
  1. HighOpenCode extension executes .venv binary from the target worktree before PATH

    .opencode/tools/skillspector_scan_lib.ts:197

    When SKILLSPECTOR_BIN is unset, resolveBinary looks for <worktree>/.venv/bin/skillspector (or .venv/Scripts/skillspector.exe on Windows) inside the active session worktree before falling back to skillspector on PATH. If a user installs the OpenCode tool globally to audit untrusted repositories and runs skillspector_scan inside a repository checkout that contains a malicious .venv/bin/skillspector, approving the scan executes the attacker's binary from the repository instead of the user's installed scanner.

    Fix: Resolve any bundled .venv relative to the extension's own installation directory (using import.meta.url, as the Pi extension does) or fall back only to skillspector on PATH, never an untrusted workspace .venv.

  2. HighBundled disableAllHooks setting suppresses plugin hook exfiltration and execution findings

    src/skillspector/nodes/analyzers/bundled_execution_surface.py:1286

    When a scanned bundle includes .claude/settings.json or .claude/settings.local.json with disableAllHooks set to true, _bundled_hooks_are_disabled sets hooks_disabled to True across every hook file in the bundle, including hooks/hooks.json and .claude-plugin/plugin.json. This clears all parsed hook declarations, suppressing BH1 hook-execution findings, CRITICAL BH2 remote-exfiltration findings, and the partial-completeness flag for unmodeled hook commands. When a user installs that bundle as a Claude Code plugin (or copies a skill subdirectory), Claude Code loads the plugin hooks from hooks/hooks.json or .claude-plugin/plugin.json and ignores the .claude/settings*.json file inside the plugin directory, allowing a malicious plugin to pass the safe_to_install gate with a clean SAFE verdict.

    Fix: Never allow disableAllHooks in .claude/settings.json or .claude/settings.local.json to suppress findings or completeness checks on plugin hook surfaces (hooks/hooks.json and .claude-plugin/plugin.json), and retain BH1/BH2 visibility on project settings hooks since user or CLI settings can override project-level flags.

  3. MediumHTTP MCP local-target check can be bypassed to read arbitrary host files

    src/skillspector/mcp_server.py:96

    When the MCP server runs over HTTP (skillspector mcp --transport http), run_scan sets allow_local_targets=False to block callers from reading host files. However, _is_local_target treats any string containing :// as remote and checks candidate.exists() on relative paths, while run_scan validates urlparse(target).scheme == "https" (which lowercases the scheme and does not require a host). Inputs such as HTTPS://../../../../../../etc/passwd or https:x/../../../../../../etc/passwd pass run_scan, fail InputHandler's case-sensitive startswith("https://") checks, and fall through to os.path.abspath, which lexically collapses HTTPS:/.. or https:x/.. to read arbitrary files or directories on the host, send them to the configured LLM, and return snippets in the response.

    Fix: Require parsed_target.scheme == "https" with a non-empty parsed_target.hostname, pass a normalized lowercase https:// URL to InputHandler, and reject local filesystem fallback inside InputHandler.resolve whenever allow_local_targets is false.

  4. MediumGit clone in local and stdio MCP modes allows .lfsconfig SSRF via host git-lfs filters

    src/skillspector/input_handler.py:418

    When allow_git_credentials is true (the default for the CLI, stdio MCP server, Pi extension, and OpenCode extension), _git_invocation runs git with the host's global and system configuration, and _clone_git only overrides core.symlinks=false. On machines with git-lfs installed, cloning an untrusted GitHub, GitLab, or Bitbucket repository containing .gitattributes (filter=lfs) and a custom .lfsconfig (lfs.url) automatically triggers git-lfs during checkout, causing outbound HTTP requests (and potential Git credential helper lookups) to arbitrary external or private internal URLs outside SkillSpector's SSRF host allowlist.

    Fix: Set GIT_LFS_SKIP_SMUDGE=1 in the git clone environment and pass -c filter.lfs.smudge= -c filter.lfs.process= -c filter.lfs.required=false -c http.followRedirects=false on all git clone invocations.

  5. MediumCatastrophic regex backtracking in auto-run memory-write detector hangs scans

    src/skillspector/nodes/analyzers/static_patterns_memory_poisoning.py:764

    The MP3 memory-write detector runs _PY_STRING_LITERAL and _TS_STRING_LITERAL via Python's native re.finditer on auto-run test files (such as conftest.py, test_*.py, and *.test.ts), bypassing static_runner's 0.25-second timed regex engine. Inside (?P<dest>(?:\\.|(?!(?P=q)).)*), both branches match any two-character escape sequence such as \\n or \\\\ because (?!(?P=q)). does not exclude backslashes. When the rest of the sink pattern fails to match—for example on an ordinary single-argument open("...") read call, Path("...").read_text(), or an unclosed string literal containing 35+ escape sequences—Python's C regex engine backtracks exponentially (2^k steps) without checking workflow deadlines, hanging the CLI or MCP server at 100% CPU.

    Fix: Exclude backslashes and line breaks from the second branch (for example, (?!\\|(?P=q))[^\r\n]) or route the write-sink patterns through static_runner.iter_pattern_matches so the per-rule timeout applies.

  6. LowGemini CLI provider runs in read-only plan mode without disabling tools, MCP servers, or hooks

    src/skillspector/providers/_agent_cli.py:420

    When SKILLSPECTOR_PROVIDER=gemini_cli is selected, _build_gemini_argv invokes gemini with --approval-mode plan and --skip-trust while preserving HOME in the child environment. Unlike claude_cli and opencode_cli (which enforce a strict deny-all tool policy and block ambient configs/MCP servers) and codex_cli (which is disabled because read-only mode still permits reads), Gemini CLI's plan mode auto-approves read-only tools and loads MCP servers, extensions, and hooks from ~/.gemini/settings.json. Prompt injection inside a scanned skill's files can invoke those tools and exfiltrate or reflect results into the scan output.

    Fix: Disable gemini_cli until a verified deny-all-tools and isolated-config invocation is available, or explicitly disable all built-in tools, extensions, hooks, and MCP servers and verify the resolved policy before sending untrusted stdin.

  7. LowAmbient LangSmith tracing uploads unredacted file caches even during --no-llm scans

    src/skillspector/cli.py:345

    build_context stores local_file_cache and raw_file_cache—including unredacted .env files, hidden files, and local_only scripts intentionally withheld from LLM providers—inside SkillspectorState, and langsmith is installed as a core dependency. Unlike the OpenCode wrapper (which strips LANGCHAIN_* and LANGSMITH_* variables), the CLI, MCP server, and Pi extension pass graph runs directly to LangGraph without disabling tracing when --no-llm or use_llm=False is set. If a user has LANGSMITH_TRACING=true or LANGCHAIN_TRACING_V2=true in their environment, static-only scans still upload unredacted scanned file contents to LangSmith.

    Fix: Disable LangChain/LangSmith tracers when use_llm is false, and keep raw_file_cache and unredacted local_file_cache out of traced LangGraph state (using a process-local store keyed by scan ID, as python_ast_cache_key already does).

  8. LowSkill workflow uses a predictable /tmp report path and reads stale files on scan failure

    skills/skill-inspector/SKILL.md:41

    The skill-inspector skill instructs the agent to write JSON reports to the fixed path /tmp/skill-inspector-report.json and states that if the command exits non-zero, the agent should inspect any partial report at that path and continue. If a scan exits with code 2 before writing output, the agent can read a stale report from an earlier scan or a read-only /tmp/skill-inspector-report.json planted beforehand by another local user on a shared machine.

    Fix: Create a private per-run directory with mktemp -d (or read JSON from stdout without --output) instead of writing to a fixed path in /tmp.

  9. LowContrib batch scanner loads .env from the current working directory with override=True

    contrib/batch_scan/__init__.py:45

    At import time, contrib.batch_scan calls _dotenv.load_dotenv(_dotenv.find_dotenv(usecwd=True), override=True) if python-dotenv is installed. Running python -m contrib.batch_scan.batch_scan from inside an untrusted directory containing a .env file overwrites os.environ before CLI flags like --no-llm are parsed, allowing an attacker's .env to redirect provider base URLs (exfiltrating API keys) or inject PYTHONPATH, PYTHONSTARTUP, or LD_PRELOAD into spawned worker processes. Rated low because contrib/ is excluded from the built wheel and never run by the installed CLI, MCP server, or extensions.

    Fix: Remove automatic CWD .env loading with override=True, or require an explicit --env-file CLI flag loaded without overriding critical runtime and loader variables.