Back to skill

Security audit

git-author-guard

Security checks for vulnerabilities and agentic risk

Overview

ClawScan rates this skill suspicious because its scan script may let a supplied revision value turn a Git audit into a file write, and its workflow also directs commit changes despite claiming to avoid repository changes.

Consider avoiding installation until the revision-input file-write risk and commit/amend instructions are addressed. The scan was marked partial: although both listed components were inspected, several local references could not be resolved, so the evidence is incomplete.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (5)

Code capability 'env' detected in scripts/git_author_guard.py but not covered by declared permissions.

High
Category
MCP Least Privilege
Confidence
75% confidence
Finding

The skill uses 'env' capability that is not covered by the declared 'allowed-tools' preapproval. Review the host runtime's actual enforcement policy; runtime permissions are unknown unless separately verified, and this declaration alone does not establish a permission ceiling.

Content

No source excerpt is available for this finding.

Shadow Command Trigger

Medium
Category
Trigger Abuse
Confidence
70% confidence
Finding

Shadow Command Trigger: description clause 'detect env-var identity overrides before committing, and audit recent commit authorship before pushing' conflicts with built-in command 'commit'

Content

No source excerpt is available for this finding.

The workflow instructs the agent to create and amend commits despite explicitly claiming never to mutate repository state.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

The workflow directs the agent to create commits and automatically amend mismatched commits, although the skill also supports audit-only requests and promises not to mutate repository state. Following these instructions during an identity check could cause unauthorized commits or local history changes; restricting amendments to unpushed commits reduces, but does not eliminate, that risk.

Content

No source excerpt is available for this finding.

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
98% confidence
Finding

Although subprocess execution uses an argument list without a shell, scan passes the user-controlled --since value directly into Git's option-parsing context. A value such as --since=--output=/path/to/file becomes a git log output option, allowing an ostensibly read-only audit to create or overwrite a file accessible to the agent.

Content

Scanner excerpt · scripts/git_author_guard.py (reported line 28)May include surrounding context.

python
def run_git(repo, args):
    cmd = ["git", "-C", repo] + args
    p = subprocess.run(cmd, capture_output=True, text=True)
    if p.returncode != 0:
        sys.stderr.write(p.stderr.strip() + "\n")
        sys.exit(2)

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · scripts/git_author_guard.py (reported line 44)May include surrounding context.

python
for k, v in overrides.items():
        print("  %s=%s" % (k, v))
    for side in ("user.name", "user.email"):
        p = subprocess.run(["git", "config", side], capture_output=True, text=True)
        cfg = p.stdout.strip() if p.returncode == 0 else "(unset)"
        print("  git config %s = %s" % (side, cfg))
    print("Fix: prefix commits with "