Back to skill

Security audit

Smart Code Search

Security checks for vulnerabilities and agentic risk

Overview

This skill is a local semantic code-search helper; its indexing and agent-integration behavior is disclosed and purpose-aligned, with some setup actions users should run deliberately.

Install only if you want ColGREP available for local semantic code search. Run indexing and agent-integration commands intentionally, add .colgrep/ to .gitignore, and avoid the rebuild command unless you are in the intended project directory and want to discard the existing local index.

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
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (5)

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
85% confidence
Finding

The troubleshooting guidance includes a destructive shell command, rm -rf .colgrep/ && colgrep init. Although scoped to a hidden project directory, recursive deletion is still a dangerous pattern in agent-mediated execution because path confusion, directory mislocation, or command reuse could delete unintended data.

Content

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

Re-index from scratch:

bash
rm -rf .colgrep/ && colgrep init

Add to .gitignore:

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 · references/advanced.md (reported line 86)May include surrounding context.

For a complete rebuild:

bash
rm -rf .colgrep/
colgrep init

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
93% confidence
Finding

The trigger list includes very broad phrases like 'search the code', 'find where', and 'code search', which are common in ordinary development conversations. That can cause unintended invocation of this skill in contexts where the user did not explicitly request semantic indexing/search, increasing the chance of unexpected local actions such as indexing a repository or registering integrations.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
90% confidence
Finding

The skill encourages commands that create and maintain a .colgrep/ index and install agent integrations, but it does not clearly warn that these operations modify the user's workspace and potentially agent configuration. In an automated agent setting, omission of these side effects can lead to surprising changes to local state and reduced user control over environment modifications.

Content

No source excerpt is available for this finding.

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
89% confidence
Finding

This markdown file includes a rebuild sequence using rm -rf .colgrep/, which performs irreversible local file deletion. Although it is limited to the tool's index directory, the surrounding documentation does not explicitly warn users that the command deletes existing index data before reinitializing it.

Content

No source excerpt is available for this finding.