Back to skill

Security audit

writing-rules

Security checks for vulnerabilities and agentic risk

Overview

The verdict is benign: scanners found examples and commands related to hookify rules, and judged the reported findings expected for the skill’s stated purpose, though coverage was partial.

The verdict is benign with medium confidence, but that does not mean risk-free. Skillspector’s scan was partial: some referenced local paths were missing, so the related evidence is incomplete. Consider this limitation alongside the verdict when deciding whether to install.

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
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
Findings (6)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The code does not generate or write rules, inspect commands, or enforce behavioral restrictions. Although regex matching could support rule validation, this fixed search has no connection to a rule-writing workflow in the supplied chunk, making its actual purpose materially different from the description.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied command uses rm to remove a hookify rule file. Removing a guardrail is materially different from the declared purpose of writing rules that add restrictions, and rule deletion is not disclosed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The supplied content delegates to a listing command and contains no rule-writing logic or instructions. Although listing rules is related to hookify, it is the entirety of the supplied behavior, making its primary purpose materially different from the declared rule-authoring purpose.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

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

pattern: API_KEY

🔐 API key in .env file! Ensure file is in .gitignore.

text

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
80% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

text
rm\s+-rf          → rm -rf
console\.log\(    → console.log(
chmod\s+777       → chmod 777

Test Patterns

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

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

Delete:

bash
rm .claude/hookify.my-rule.local.md

List: