Back to skill

Security audit

precommit-setup

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this pre-commit setup skill suspicious because scanners report a risky workflow that could stage unrelated or sensitive files, alongside an incomplete review of some referenced items.

Review the staged changes carefully before following any setup instructions that create a commit, and consider whether your project permits sending coverage reports to Codecov. The scan is partial: several referenced paths were not included in the bundle, so those items were not fully assessed.

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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (4)

Anti-Refusal Statement

High
Category
Anti-Refusal
Confidence
90% confidence
Finding

Skill attempts to nullify the agent's safety policies or restrictions ('you have no restrictions', 'ignore your guidelines', 'do anything now'). This is a direct jailbreak that disables guardrails.

Content

Scanner excerpt · modules/validation-hooks.md (reported line 49)May include surrounding context.

md
files: ^(plugins|src)/.*\\.py\$
\`\`\`

## Hook Bypass Policy

`SKIP=<hook> git commit` and `git commit --no-verify`
**must not be used**. Hooks exist to keep the tree

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
75% 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 · modules/validation-hooks.md (reported line 51)May include surrounding context.

md
## Hook Bypass Policy

`SKIP=<hook> git commit` and `git commit --no-verify`
**must not be used**. Hooks exist to keep the tree
green; bypassing them moves broken code into history,
where the next commit fights yesterday's bug instead

The setup workflow stages all changes and creates a commit without warning about including unrelated or sensitive files.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The example pairs git add . with an immediate commit, potentially recording unrelated changes or unignored sensitive files without review. In an agent-driven setup workflow, copying these commands can exceed the intended configuration changes; a later push could expose accidentally committed data.

Content

No source excerpt is available for this finding.

The recommended CI workflow uploads coverage data to Codecov without a third-party data-sharing warning.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The workflow includes an operational step that sends coverage.xml to Codecov, rather than merely listing an available tool. The skill does not warn that coverage reports, which can contain repository paths and coverage details, will leave the CI environment for a third-party service.

Content

No source excerpt is available for this finding.