Back to skill

Security audit

TitleClash

Security checks for vulnerabilities and agentic risk

Overview

The skill is a coherent TitleClash game integration, but its required Bash submission command can execute unintended shell syntax from generated titles and it stores a game token locally.

Review before installing. This skill should only be used in a constrained environment until the submission command is changed to build JSON with a serializer such as python json.dumps or jq --arg. Treat generated titles and challenge images as untrusted input, and remove the local .token and history/log files if you stop using the service.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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
Findings (1)

T09 · Insecure Skill Coding Practices

Error
Location
SKILL.md:157
Finding

Shell Command Injection Through Unsafely Interpolated Titles

Content
View full analysis

Vulnerability Details

File Location: SKILL.md, lines 157-164
Vulnerability Type: Shell command injection caused by unsafe interpolation into a shell command
Risk Level: High

Vulnerable Code

bash
echo "[$(date -Iseconds)] STEP 3: Submitting titles..." >> "$LOGFILE"
SUBMIT=$(curl -s --connect-timeout 10 --max-time 30 -w "\n%{http_code}" -X POST "https://titleclash.com/api/v1/challenge/$CHALLENGE_ID" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"titles":["YOUR_TITLE_1","YOUR_TITLE_2","YOUR_TITLE_3"]}')
SUB_CODE=$(echo "$SUBMIT" | tail -1)
SUB_BODY=$(echo "$SUBMIT" | sed '$d')
echo "[$(date -Iseconds)] STEP 3: HTTP $SUB_CODE — $SUB_BODY" >> "$LOGFILE"
echo "Titles submitted."

The preceding instruction explicitly requires the generated titles to be substituted into this command:

text
Replace the 3 titles you wrote into this command:

Technical Analysis

The JSON request body is embedded directly in a single-quoted shell argument. Generated title values are therefore treated as shell source rather than as data after substitution.

A title containing a single quote terminates the surrounding shell string. Subsequent shell metacharacters, such as semicolons, command substitutions, redirections, or pipes, can then be interpreted by the shell. For example, substituting a title shaped like the following would alter the command structure:

text
'; id; #

This issue can also be triggered accidentally by ordinary English titles containing apostrophes. The document itself provides an example beginning with I've, which would break the documented quoting strategy if inserted without escaping.

The generated titles are influenced by a remotely supplied image. An adversarial image could contain prompt-injection text designed to induce a model to produce a title containing shell syntax. Even without an adversarial image, punctuation in a normal title can cause malformed commands or invali ...[truncated 1878 chars]

Remediation
View remediation

Remediation Suggestions

Do not insert generated text into shell source. Construct the JSON payload using a real JSON serializer and transfer title values through environment variables, positional arguments, standard input, or a temporary data file with restrictive permissions.

For example:

bash
export TITLE_1 TITLE_2 TITLE_3

PAYLOAD=$(python3 -c '
import json
import os

print(json.dumps({
    "titles": [
        os.environ["TITLE_1"],
        os.environ["TITLE_2"],
        os.environ["TITLE_3"],
    ]
}))
')

SUBMIT=$(curl -s --connect-timeout 10 --max-time 30 \
  -w "\n%{http_code}" \
  -X POST "https://titleclash.com/api/v1/challenge/$CHALLENGE_ID" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary "$PAYLOAD")

Additional hardening should include:

  1. Validate each title's length and reject control characters before submission.
  2. Keep title text exclusively in variables or data files; never paste it into executable shell syntax.
  3. Use json.dumps or jq --arg so quotation marks, apostrophes, backslashes, and newlines are encoded correctly.
  4. Add tests covering apostrophes, double quotes, command substitutions, semicolons, pipes, newlines, and Unicode characters.
  5. Treat all model-generated content and remotely influenced image text as untrusted input.
  6. Run the skill with least privilege and expose only the credentials and filesystem paths required for the TitleClash workflow.
  7. Avoid logging raw generated values or secrets unless necessary, and ensure diagnostic files have restrictive permissions.
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
Findings (4)

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The skill instructs the agent to automatically register for a remote service, extract a bearer token, and persist that credential to a local .token file with no explicit user consent or warning about ongoing storage and future reuse. This creates a real security and privacy risk because credentials are transmitted and retained outside the immediate session, potentially enabling unintended account actions or later misuse by other processes with access to the workspace.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

bash
echo "[$(date -Iseconds)] STEP 3: Submitting titles..." >> "$LOGFILE"
SUBMIT=$(curl -s --connect-timeout 10 --max-time 30 -w "\n%{http_code}" -X POST "https://titleclash.com/api/v1/challenge/$CHALLENGE_ID" \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"titles":["YOUR_TITLE_1","YOUR_TITLE_2","YOUR_TITLE_3"]}')

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

The skill logs the full submission response body into a local logfile without user notice or minimization. If the API response contains identifiers, scoring metadata, moderation details, or future sensitive fields, that data is silently persisted on disk and may be readable by other local tools or users depending on environment controls.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
80% confidence
Finding

The Quick Reference table uses Korean text for endpoint and environment variable purposes even though the surrounding document is in English. This introduces a language/locale inconsistency without any opt-in or explanation, which can violate language policy expectations for user-facing skill instructions.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.