Back to skill

Security audit

hook-scope-guide

Security checks for vulnerabilities and agentic risk

Overview

The scanners found no AIG issues and one low-probability, likely contextual match about agent settings; the verdict is benign with medium confidence, though some reference checks were incomplete.

The verdict is benign, but confidence is medium and the scan was partial because several local references could not be resolved. Before installing, consider the guidance about global hooks, which can apply across sessions, and whether that scope suits your use.

Vulnerability Patterns
  • Skill Instruction HijackingAlters the agent's session goals or safety constraints when the skill loads
  • Agent Memory PoisoningWrites attacker-controlled rules into memory that affect later sessions
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • Embedded Malicious CodeShips malicious scripts inside the skill and executes them locally
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (2)

Agent Config Directory Access

High
Category
Agent Snooping
Confidence
90% confidence
Finding

Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.

Content

Scanner excerpt · SKILL.md (reported line 32)May include surrounding context.

md
version controlled, and how long should it persist. Plugin hooks
(`hooks/hooks.json` in the plugin) serve plugin users while the plugin
is enabled. Project hooks (`.claude/settings.json`) serve the team and
are committed. Global hooks (`~/.claude/settings.json`) serve only you,
in every session, and are never committed.

The question tree, per-scope configuration and examples, loading

Agent Config Directory Access

High
Category
Agent Snooping
Confidence
90% confidence
Finding

Skill reads from agent configuration directories (.claude/, .codex/, .gemini/). These directories may contain API keys, personal settings, and other credentials that the skill has no legitimate need to access.

Content

Scanner excerpt · SKILL.md (reported line 57)May include surrounding context.

md
- [ ] A single scope (plugin / project / global) is selected and the rationale traces through at
  least two of the three decision questions (audience, version control, persistence).
- [ ] The selected scope's file location (`hooks/hooks.json`, `.claude/settings.json`, or
  `~/.claude/settings.json`) is confirmed to exist or is created at the correct path.
- [ ] Plugin hooks do not add `"hooks": "./hooks/hooks.json"` to `plugin.json` (duplicate-load
  guard). This absence is verified before the hook is deployed.
- [ ] Global hooks are flagged with a security note confirming they apply to all Claude sessions