# nvidia/skillspector — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `skills`
- Overall score: `4.2/5`
- Implementation check: `verified`
- Maturity: `early`
- Audited commit: `aadffa3c4284` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T05:51:29Z
- Repository: https://github.com/nvidia/skillspector
- Radar entry: https://radar.alplab.co/#repo/nvidia/skillspector
- License: `Apache-2.0`
- CI workflows: `.github/workflows`
- Tags: `security`, `agent-skills`, `static-analysis`, `mcp`, `sarif`, `llm`

## Summary

A Python/LangGraph static security scanner for AI agent skills that ingests Git URLs, zips, files, or local directories, fans out to ~30 dynamically discovered analyzer modules (regex, Python/JS AST, tree-sitter bash, YARA, plus optional LLM semantic passes), and emits risk-scored terminal/JSON/Markdown/SARIF reports, an install-gate exit-code contract, and an MCP server exposing scan_skill.

## Implementation Check

Every core README claim checked maps to real code: the 17 pattern categories exist as analyzer modules in src/skillspector/nodes/analyzers/ (e.g. static_patterns_supply_chain.py implementing SC1-SC10 with _is_typosquat, static_patterns_data_exfiltration.py, mcp_tool_poisoning.py, behavioral_ast.py, static_yara.py), multi-format ingest with SSRF allowlist and zip-slip guards lives in src/skillspector/input_handler.py (_validate_url_host, _safe_zip_target, INGEST_MAX_BYTES), the two-stage LLM pass in llm_utils.py/llm_analyzer_base.py with providers under src/skillspector/providers/, baseline suppression in suppression.py, SARIF in sarif_models.py, and the MCP scan_skill gate in mcp_server.py run_scan().

## When to Use

Use it before installing any third-party agent skill or MCP server, or wire it into CI/install gates via its documented exit codes and SARIF output; do not treat a low score as a clean bill without checking analysis_completeness and llm_used, and remember the optional LLM pass sends skill file contents to the configured external provider.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 5.0/5 |
| usability | 4.0/5 |
| reliability | 3.0/5 |
| security | 4.5/5 |
| integration | 4.5/5 |

## Code Evidence

src/skillspector/graph.py create_graph() wires resolve_input -> build_context -> inspect_dependencies -> parallel analyzers -> meta_analyzer -> finalize_inspection_ledger -> report over SkillspectorState; src/skillspector/nodes/analyzers/__init__.py _discover_analyzers() registers analyzers via pkgutil with ANALYZER_ID/node protocol and is_available() gating; src/skillspector/mcp_server.py run() rejects non-loopback HTTP bindings ('HTTP MCP has no authentication and must bind to a loopback IP') and run_scan(allow_local_targets=False) blocks local paths, non-HTTPS, and credentialed URLs, returning honest llm_used/scan_mode fields; src/skillspector/input_handler.py InputHandler._clone_git runs a bounded sandboxed clone (shell=False, --filter=blob:limit, _bounded_tree_measurement with INGEST_MAX_BYTES/INGEST_MAX_TREE_ENTRIES), _git_invocation strips HOME/credential helpers for untrusted scans, _download_file streams with follow_redirects=False and Content-Length pre-checks, and _safe_zip_target/_validate_zip_member_type block zip-slip, symlinks, and special files; src/skillspector/nodes/analyzers/static_patterns_supply_chain.py implements SC2 curl|sh and SC3 base64-decode-to-exec detection (SC2_CODE_PATTERNS, _decoded_shell_literal_payloads, _SC3_BOUNDED_PIPE_PATTERN with possessive/atomic regex bounds) and SC6 typosquatting via _osa_distance with known-legit allowlists; src/skillspector/models.py Finding.to_dict()/fingerprint() gives stable, source-bound identities for baseline suppression; .github/workflows/ci.yml pins all third-party actions to full SHAs, sets permissions: contents: read, and runs lint, make test-ci (unit+coverage), Node tests, and docker-smoke; tests/nodes/test_security_end_to_end.py, tests/test_python_ast.py, tests/unit/test_input_handler_ssrf.py, and tests/unit/test_mcp_server.py substantively cover the core path.

## Issues Found

None recorded.

## Key Risks

Static review only — nothing was executed, so 'tests exist' was verified from CI config, not from passing runs; the LLM semantic stage requires external API credentials and transmits skill contents to the configured provider (documented in README); CI excludes integration and live-provider markers (pyproject addopts '-m not integration and not provider'), so the full-graph path with real LLMs is not exercised in CI; installation is constrained to Python 3.12/3.13 in practice because yara-python ships no 3.14/3.15 wheels; the dependency tree is heavy (langgraph, langchain-*, boto3, semgrep-adjacent pins in uv.lock); report/baseline file output is POSIX-only (no Windows); MCP HTTP transport is unauthenticated by design (loopback-only, reverse proxy required for remote use); the 71-pattern count was taken from the README and category coverage verified against analyzer modules, not individually recounted; maturity cap is 'early', so 'trial' is the ceiling regardless of quality.

## Reviewed Files

- `pyproject.toml`
- `README.md`
- `Makefile`
- `.github/workflows/ci.yml`
- `src/skillspector/__init__.py`
- `src/skillspector/cli_entry.py`
- `src/skillspector/graph.py`
- `src/skillspector/models.py`
- `src/skillspector/constants.py`
- `src/skillspector/llm_utils.py`
- `src/skillspector/mcp_server.py`
- `src/skillspector/input_handler.py`
- `src/skillspector/nodes/resolve_input.py`
- `src/skillspector/nodes/analyzers/__init__.py`
- `src/skillspector/nodes/analyzers/static_patterns_supply_chain.py`
