Back to skill

Security audit

git-fast-content-search

Security checks for vulnerabilities and agentic risk

Overview

The scanners report that a bundled search script can trigger an external Git hook in repositories with attacker-controlled local configuration, so the skill is rated suspicious for a real execution risk.

Treat this as a review item before installing. The confirmed risk applies when the script searches worktrees whose local Git configuration an attacker controls; scanner coverage is incomplete (50%), and the malformed manifest prevented some checks, so the results do not establish that the skill is safe.

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
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (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/fast_content_search.py (reported line 46)May include surrounding context.

python
def git_files(root, needle):
    try:
        result = subprocess.run(
            ["git", "-C", str(root), "grep", "-I", "-l", "-z", "-F", "--", needle],
            stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, check=False,
        )

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
92% confidence
Finding

Although the argument list prevents shell injection, git status can execute an external filesystem-monitor hook configured through core.fsmonitor. Because this utility automatically runs Git inside discovered worktrees, an attacker who controls a scanned repository's local Git configuration can turn a content search into command execution with the agent's privileges; an ordinary clone containing only malicious tracked files is not sufficient.

Content

Scanner excerpt · scripts/fast_content_search.py (reported line 60)May include surrounding context.

python
def git_untracked_files(root):
    try:
        result = subprocess.run(
            ["git", "-C", str(root), "status", "--porcelain=v1", "-z",
             "--untracked-files=all"],
            stdout=subprocess.PIPE, stderr=subprocess.DEVNULL, check=False,