Skip to content

Multi-tier framework for evaluating AI agent skills and plugins with quality gates, security scanning, harness compatibility checks, semantic overlap detection, synthetic evaluation dataset generation, and live agent evaluation that measures how skills affect agent behavior. Ships reusable CI templates that bring every check to any repository.

17.5 KB
Raw Blame
{
  "skill": {
    "name": "unknown",
    "source": "/fixture/bundled-script-hooks",
    "scanned_at": "2026-11-09T15:56:03.555577+00:00"
  },
  "risk_assessment": {
    "score": 17,
    "severity": "LOW",
    "recommendation": "CAUTION",
    "max_issue_severity": "MEDIUM"
  },
  "components": [
    {
      "path": ".claude-plugin/plugin.json",
      "type": "json",
      "lines": 5,
      "executable": false,
      "size_bytes": 172,
      "source_url": null,
      "source_identity": null,
      "source_digest": null
    },
    {
      "path": "hooks/count-builds.sh",
      "type": "shell",
      "lines": 20,
      "executable": true,
      "size_bytes": 726,
      "source_url": null,
      "source_identity": null,
      "source_digest": null
    },
    {
      "path": "hooks/hooks.json",
      "type": "json",
      "lines": 29,
      "executable": false,
      "size_bytes": 626,
      "source_url": null,
      "source_identity": null,
      "source_digest": null
    },
    {
      "path": "hooks/session-start.py",
      "type": "python",
      "lines": 27,
      "executable": true,
      "size_bytes": 789,
      "source_url": null,
      "source_identity": null,
      "source_digest": null
    },
    {
      "path": "scripts/plugin_paths.py",
      "type": "python",
      "lines": 32,
      "executable": true,
      "size_bytes": 966,
      "source_url": null,
      "source_identity": null,
      "source_digest": null
    }
  ],
  "structured_summaries": [],
  "issues": [
    {
      "id": "BH1",
      "finding_id": "finding-2e4592825d864d72856a1c63976c13d5",
      "category": "Bundled Execution Surface",
      "pattern": "Bundled hooks can execute when matching lifecycle events occur.",
      "severity": "MEDIUM",
      "confidence": 0.95,
      "location": {
        "file": "hooks/hooks.json",
        "start_line": 1,
        "end_line": null
      },
      "finding": "document:hooks/hooks.json",
      "explanation": "Bundled lifecycle hooks can run automatically when their configured events occur, so their reach and handler capability require review before installation.",
      "remediation": "Review bundled hook handlers, destinations, and event reach before install.",
      "code_snippet": null,
      "intent": null,
      "tags": [
        "Bundled Execution Surface",
        "Hooks"
      ],
      "evidence": {
        "activation_state": "conditional",
        "activation_reason": "requires_hook_activation",
        "declaration_count": 2,
        "events": [
          "PostToolUse",
          "SessionStart"
        ],
        "handler_types": [
          "command"
        ],
        "matcher_breadth": [
          "all",
          "scoped"
        ],
        "payload_analysis_level": "unmodeled",
        "reach": "ambient",
        "target_summary": "command",
        "unknown_event_count": 0,
        "unknown_handler_count": 0
      },
      "match_fingerprint": "540b7379b65bae27915cae35749ee17abe964c59808dc4b1306170fbb907691d",
      "occurrences": [
        {
          "file": "hooks/hooks.json",
          "start_line": 1,
          "end_line": null
        }
      ]
    },
    {
      "id": "TT2",
      "finding_id": "finding-70e2f738a61c465da8ee3b3959434a8e",
      "category": "Data Flow",
      "pattern": "Tainted flow: 'target' from os.environ.get (line 29, credential/environment) → pathlib.Path.write_text (file write)",
      "severity": "MEDIUM",
      "confidence": 0.65,
      "location": {
        "file": "scripts/plugin_paths.py",
        "start_line": 31,
        "end_line": 31,
        "start_column": 4,
        "end_column": 52
      },
      "finding": "dest.write_text(target + \"\\n\", encoding=\"utf-8\")",
      "explanation": "Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.",
      "remediation": "Validate tainted variables before passing them to sinks. Use allowlists, type checks, or sanitization functions on data from external sources.",
      "code_snippet": "    \"\"\"Record where the notes cache lives so a copied install can find it.\"\"\"\n    target = path or os.environ.get(\"BUILD_NOTES_CACHE\") or str(Path(\"~/.cache/build-notes\").expanduser())\n    dest = Path(plugin_root(), \"notes-cache-origin\")\n    dest.write_text(target + \"\\n\", encoding=\"utf-8\")\n    return dest",
      "intent": null,
      "tags": [
        "Data Flow"
      ],
      "evidence": {},
      "match_fingerprint": "60544fdc96ac0bdf783433e61d0f619a16446a90a52dcdebb8957d73c0133335",
      "occurrences": [
        {
          "file": "scripts/plugin_paths.py",
          "start_line": 31,
          "end_line": 31,
          "start_column": 4,
          "end_column": 52
        }
      ]
    }
  ],
  "suppressed_count": 0,
  "suppressed": [],
  "metadata": {
    "has_executable_scripts": true,
    "skillspector_version": "2.13.4",
    "llm_requested": false,
    "llm_available": false,
    "meta_analysis_applied": false,
    "inference_usage": [],
    "llm_provenance": {
      "schema_version": 1,
      "provider": {
        "configured_adapter": "unknown",
        "resolved_adapter": "unknown",
        "effective_adapter": "not_applicable",
        "effective_adapters": [],
        "service": "unknown",
        "routing": {
          "deployment_override": null,
          "deployment_source": "unknown",
          "api_version": null,
          "api_version_source": "unknown"
        }
      },
      "analyzers": [
        {
          "analyzer_id": "mcp_tool_poisoning",
          "model": "z-ai/glm-5.3",
          "model_source": "resolved_configuration",
          "analyzer_revision": {
            "value": "2.13.4",
            "source": "skillspector_package",
            "source_revision": {
              "value": "unknown",
              "source": "unknown"
            }
          }
        },
        {
          "analyzer_id": "semantic_developer_intent",
          "model": "z-ai/glm-5.3",
          "model_source": "resolved_configuration",
          "analyzer_revision": {
            "value": "2.13.4",
            "source": "skillspector_package",
            "source_revision": {
              "value": "unknown",
              "source": "unknown"
            }
          }
        },
        {
          "analyzer_id": "semantic_quality_policy",
          "model": "z-ai/glm-5.3",
          "model_source": "resolved_configuration",
          "analyzer_revision": {
            "value": "2.13.4",
            "source": "skillspector_package",
            "source_revision": {
              "value": "unknown",
              "source": "unknown"
            }
          }
        },
        {
          "analyzer_id": "semantic_security_discovery",
          "model": "z-ai/glm-5.3",
          "model_source": "resolved_configuration",
          "analyzer_revision": {
            "value": "2.13.4",
            "source": "skillspector_package",
            "source_revision": {
              "value": "unknown",
              "source": "unknown"
            }
          }
        },
        {
          "analyzer_id": "meta_analyzer",
          "model": "z-ai/glm-5.3",
          "model_source": "resolved_configuration",
          "analyzer_revision": {
            "value": "2.13.4",
            "source": "skillspector_package",
            "source_revision": {
              "value": "unknown",
              "source": "unknown"
            }
          }
        }
      ],
      "sampling": {
        "temperature": {
          "requested": null,
          "source": "provider_default",
          "forwarded_to_client": null,
          "adapter_support": false,
          "provider_support": "unknown"
        },
        "seed": {
          "requested": null,
          "source": "unset",
          "forwarded_to_client": null,
          "adapter_support": false,
          "provider_support": "unknown"
        },
        "reasoning_effort": {
          "requested": null,
          "source": "provider_default",
          "forwarded_to_client": null,
          "adapter_support": false,
          "provider_support": "unknown"
        }
      },
      "determinism": {
        "classification": "not_applicable",
        "control_status": "not_applied",
        "provider_guarantee": false,
        "reason": "LLM analysis was not executed for this scan."
      }
    },
    "filtering_mode": "heuristic"
  },
  "execution_successful": true,
  "analysis_completeness": {
    "total_components": 5,
    "scanned_components": 4,
    "coverage_percent": 80.0,
    "is_complete": false,
    "status": "partial",
    "execution_successful": true,
    "fully_inspected_files": 4,
    "partially_inspected_files": 1,
    "entirely_uninspected_files": 0,
    "ledger_exceptions": [
      {
        "outcome": "partial",
        "phase": "static",
        "reason_code": "opaque_content",
        "message": "Artifact contents could not be fully interpreted.",
        "path": "hooks/hooks.json",
        "start_line": null,
        "end_line": null,
        "fatal": false,
        "analyzers": [
          "bundled_execution_surface"
        ],
        "observed_records": 2,
        "limit_records": 2048
      },
      {
        "outcome": "partial",
        "phase": "static",
        "reason_code": "static_parse_limit",
        "message": "A security-relevant expression could not be fully resolved by the bounded static parser. SkillSpector could not determine this command or code fragment's boundaries. Check: command word boundary; location: reported source range; unchecked scope: command string. Relevant parser input not fully checked.",
        "path": "hooks/hooks.json",
        "start_line": null,
        "end_line": null,
        "fatal": false,
        "analyzers": [
          "static_patterns_tool_misuse"
        ],
        "parser_diagnostic": {
          "cause": "boundary_unresolved",
          "check": "command_word_boundary",
          "source_start_offset": 313,
          "source_end_offset": 322,
          "start_line": 11,
          "end_line": 11,
          "unchecked_scope": "command_string",
          "observed_is_lower_bound": false,
          "full_input_checked": false,
          "location_precision": "source_span"
        }
      }
    ],
    "scope_exclusions": [],
    "analyzer_statuses": [
      {
        "analyzer_id": "artifact_integrity",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "behavioral_ast",
        "status": "completed",
        "planned_work": 2,
        "completed": 2,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "behavioral_taint_tracking",
        "status": "completed",
        "planned_work": 2,
        "completed": 2,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "bundled_execution_surface",
        "status": "degraded",
        "planned_work": 1,
        "completed": 0,
        "partial": 1,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "mcp_least_privilege",
        "status": "not_applicable",
        "planned_work": 0,
        "completed": 0,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0,
        "reason_code": "manifest_absent",
        "message": "No compatible manifest was present for this analyzer."
      },
      {
        "analyzer_id": "mcp_rug_pull",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "mcp_tool_poisoning",
        "status": "not_applicable",
        "planned_work": 0,
        "completed": 0,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0,
        "reason_code": "manifest_absent",
        "message": "No compatible manifest was present for this analyzer."
      },
      {
        "analyzer_id": "meta_analyzer",
        "status": "disabled",
        "planned_work": 0,
        "completed": 0,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0,
        "reason_code": "disabled_by_configuration",
        "message": "Analyzer was disabled by the requested configuration."
      },
      {
        "analyzer_id": "semantic_developer_intent",
        "status": "disabled",
        "planned_work": 0,
        "completed": 0,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0,
        "reason_code": "disabled_by_configuration",
        "message": "Analyzer was disabled by the requested configuration."
      },
      {
        "analyzer_id": "semantic_quality_policy",
        "status": "disabled",
        "planned_work": 0,
        "completed": 0,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0,
        "reason_code": "disabled_by_configuration",
        "message": "Analyzer was disabled by the requested configuration."
      },
      {
        "analyzer_id": "semantic_security_discovery",
        "status": "disabled",
        "planned_work": 0,
        "completed": 0,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0,
        "reason_code": "disabled_by_configuration",
        "message": "Analyzer was disabled by the requested configuration."
      },
      {
        "analyzer_id": "static_patterns_agent_snooping",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_anti_refusal",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_data_exfiltration",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_deserialization",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_excessive_agency",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_harmful_content",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_memory_poisoning",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_output_handling",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_privilege_escalation",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_prompt_injection",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_rogue_agent",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_ssrf",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_supply_chain",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_system_prompt_leakage",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_patterns_tool_misuse",
        "status": "degraded",
        "planned_work": 5,
        "completed": 4,
        "partial": 1,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      },
      {
        "analyzer_id": "static_yara",
        "status": "completed",
        "planned_work": 5,
        "completed": 5,
        "partial": 0,
        "skipped": 0,
        "failed": 0,
        "unaccounted": 0
      }
    ],
    "references": [],
    "limitations": [
      "Analyzer bundled_execution_surface status: degraded.",
      "Analyzer static_patterns_tool_misuse status: degraded."
    ],
    "findings_before_filtering": 2,
    "findings_after_filtering": 2
  }
}