AgentReadyHomeAgent Listing

← hook-development

hook-development — agentic threat model

7.7AIVSS 7.7 · High

This agent skill facilitates the development and testing of event-driven hooks within Claude Code, presenting a high risk of local code execution and tool-bypass vulnerabilities if validation scripts (like bash and write validators) are poorly implemented or maliciously manipulated.

OWASP AIVSS score rationale

AIVSS = (CVSS_Base + AARS) × Mitigation_Factor, where AARS = (10 − CVSS_Base) × (Factor_Sum / 10) × ThM
CVSS base 7.8AARS uplift 0.75Factor sum 3.4/10Threat ×1.0Mitigation ×0.9
Autonomy of Action
0.40
Goal-Driven Planning
0.30
Self-Modification
0.20
Dynamic Tool Use
0.70
Persistent Memory
0.10
Contextual Awareness
0.50
Dynamic Identity
0.10
Multi-Agent Interactions
0.40
Non-Determinism
0.40
Opacity & Reflexivity
0.30

Scored with the canonical OWASP AIVSS formula (AIVSS calculator reference); agentic risk factors estimated from the agent’s described capabilities.

MAESTRO 7-layer threat model

Per-layer threats for this agent. Layers tagged “not certain from listing” are general, caveated commentary where the public description didn’t pin that layer.

L1 · Foundation Models⚠ not certain from listing

Not certain from the listing — The listing describes a skill for Claude Code that teaches hook development and ships bash scripts, but does not specify the underlying foundation model or its specific alignment and robustness properties.

L2 · Data Operations⚠ not certain from listing

Not certain from the listing — The listing focuses on hook development, validation scripts, and event types, without detailing data operations, vector databases, or training data pipelines.

L3 · Agent Frameworks✓ mapped

The agent framework here is Claude Code's plugin/hook architecture. Threats include insecure tool integration, such as bypasses in hook validation logic or flaws in `validate-bash.sh` and `validate-write.sh` that could allow command injection or unauthorized file writes.

L4 · Deployment & Infrastructure✓ mapped

The skill executes bash scripts (`hook-linter.sh`, `test-hook.sh`, `validate-bash.sh`) locally in the developer's environment. Threats include local code execution, privilege escalation, or host compromise if malicious hooks are executed or if the test scripts are manipulated.

L5 · Evaluation & Observability✓ mapped

The skill provides `hook-linter.sh` and `test-hook.sh` for testing and linting hooks. However, there is a risk of blind spots if these local test scripts fail to catch edge cases or bypasses in prompt-based hooks.

L6 · Security & Compliance (cross-cutting)✓ mapped

The skill focuses on security controls (validating tool use and blocking dangerous commands via prompt-based hooks). However, compliance and authorization policies are managed locally by the developer, and there is no mention of centralized policy enforcement or formal compliance auditing.

L7 · Agent Ecosystem✓ mapped

This skill is part of the 'plugin-dev' plugin, interacting with Claude Code and potentially other subagents (e.g., `SubagentStop` event). Threats include cascading failures or trust abuse if a malicious plugin hook intercepts or alters subagent communications.

MAESTRO — the 7-layer agentic threat-modeling framework (Cloud Security Alliance / Ken Huang).