Back to skill

Security audit

youtube-research

Security checks for vulnerabilities and agentic risk

Overview

This skill appears benign: it discloses that it sends YouTube lookup data and a Crawlora API key to Crawlora, with one minor overbroad POST option to be aware of.

Install this only if you are comfortable sending YouTube URLs, IDs, search terms, and your Crawlora API key to Crawlora. Use it for public YouTube research and avoid placing private prompts, secrets, or unrelated sensitive data in query parameters or POST bodies.

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

Note
Location
scripts/crawlora.sh:116
Finding
Unnecessary Arbitrary POST-Body Transmission to a Third-Party API<![CDATA[ ## Vulnerability Details **File Location**: `scripts/crawlora.sh:34-39, 53-58, 116-124` **Vulnerability Type**: Excessive outbound data transmission capability **Risk Level**: Low ### Vulnerable Code ```bash method="GET" body="" args=() while [ $# -gt 0 ]; do case "$1" in -X) method="$2"; shift 2 ;; -d) body="$2"; shift 2 ;; *) args+=("$1"); shift ;; esac done ``` ```bash case "$method" in GET|POST) ;; *) echo "only GET and POST are supported by the youtube-research skill" >&2 exit 2 ;; esac ``` ```bash if [ "$method" = "GET" ]; then # -G + --data-urlencode URL-encodes each value (so spaces etc. are safe). qs=() for kv in ${rest[@]+"${rest[@]}"}; do [ -n "$kv" ] || continue # curl treats both @file and name@file forms as local-file input for # --data-urlencode. Reject @ outright so query arguments cannot disclose # local files to the Crawlora API. case "$kv" in *@*) echo "@ is not allowed in query arguments" >&2; exit 2 ;; esac qs+=(--data-urlencode "$kv") done curl -fsS -G "${auth[@]}" ${qs[@]+"${qs[@]}"} "${base}${path}" else [ -n "$body" ] || body="${rest[0]:-}" [ -n "$body" ] || body='{}' # Stream the body on stdin so curl never interprets a user value as its # @file shorthand (and cannot read local files supplied in a request body). printf '%s' "$body" | curl -fsS -X "$method" "${auth[@]}" \ -H "Content-Type: application/json" --data-binary @- "${base}${path}" fi ``` ### Technical Analysis The helper accepts `POST` requests and forwards an arbitrary caller-provided body to `https://api.crawlora.net/api/v1`. However, all 13 endpoints documented in `reference/endpoints.md:11-89` use the `GET` method. Arbitrary POST-body support is therefore unnecessary for the Skill's declared YouTube research functionality and exceeds the minimum outbound-data capability required. The destination is fixed to Crawlora over HTTPS, routes are allowlisted, and request bod ...[truncated 2038 chars]
Remediation
<![CDATA[ ## Remediation Suggestions 1. Remove `POST` support and enforce `GET` as the only permitted method for the current endpoint catalog. 2. Remove the `-d` option, body parsing, and POST request branch until a documented endpoint genuinely requires them. 3. Reject any explicit method other than `GET` with a clear error. 4. If POST endpoints are introduced later, maintain an allowlist of exact method-and-path pairs rather than validating methods and paths independently. 5. For any future body-bearing endpoint, validate the JSON schema, permitted field names, value types, and size before transmission. 6. Add tests confirming that `-X POST`, `-d`, unsupported methods, non-catalog routes, and unexpected body data are rejected. A minimal hardening approach is: ```bash method="GET" args=() while [ $# -gt 0 ]; do case "$1" in -X) [ "${2:-}" = "GET" ] || { echo "only GET is supported by the youtube-research skill" >&2 exit 2 } shift 2 ;; -d) echo "request bodies are not supported by the youtube-research skill" >&2 exit 2 ;; *) args+=("$1") shift ;; esac done ``` The request execution can then use only the existing GET branch, eliminating the unused arbitrary-body transmission path. ]]>
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (9)

Lp3

Medium
Category
MCP Least Privilege
Confidence
90% confidence
Finding
The skill invokes shell commands (`scripts/crawlora.sh`, `jq`) but does not declare any tool restrictions such as `permissions` or `allowed-tools`. That creates unnecessary execution latitude for an agent runtime and weakens policy enforcement, increasing the chance of unintended command execution or abuse if the skill is modified or its inputs are mishandled.

External Transmission

Medium
Category
Data Exfiltration
Content
Endpoints this skill uses, grouped by platform. Call them via `scripts/crawlora.sh` (see SKILL.md).

All paths are relative to the API base `https://api.crawlora.net/api/v1` and require the header `x-api-key: $CRAWLORA_API_KEY`. Path params like `{id}` are substituted into the URL; `GET` params go in the query string; `POST` params go in a JSON body.

**13 endpoints across 1 platform group(s).**
Confidence
84% confidence
Finding
The skill is explicitly designed to send user-supplied YouTube identifiers, queries, and related parameters to an external third-party service at api.crawlora.net. That creates a real data-transmission boundary: user inputs may leave the local environment and be visible to the external provider, which matters if prompts, URLs, or other sensitive user-provided data are passed without clear disclosure or minimization.

External Transmission

Medium
Category
Data Exfiltration
Content
#!/usr/bin/env bash
# Crawlora REST helper — minimal, dependency-free (curl only).
# Calls https://api.crawlora.net/api/v1 with your Crawlora API key.
# Get a free key (2,000 credits/mo, no card) at https://crawlora.net?utm_source=github&utm_medium=referral&utm_campaign=crawlora-skills.
#
Confidence
70% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
#!/usr/bin/env bash
# Crawlora REST helper — minimal, dependency-free (curl only).
# Calls https://api.crawlora.net/api/v1 with your Crawlora API key.
# Get a free key (2,000 credits/mo, no card) at https://crawlora.net?utm_source=github&utm_medium=referral&utm_campaign=crawlora-skills.
#
# Usage:
Confidence
60% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
#!/usr/bin/env bash
# Crawlora REST helper — minimal, dependency-free (curl only).
# Calls https://api.crawlora.net/api/v1 with your Crawlora API key.
# Get a free key (2,000 credits/mo, no card) at https://crawlora.net?utm_source=github&utm_medium=referral&utm_campaign=crawlora-skills.
#
# Usage:
Confidence
60% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

External Transmission

Medium
Category
Data Exfiltration
Content
#!/usr/bin/env bash
# Crawlora REST helper — minimal, dependency-free (curl only).
# Calls https://api.crawlora.net/api/v1 with your Crawlora API key.
# Get a free key (2,000 credits/mo, no card) at https://crawlora.net?utm_source=github&utm_medium=referral&utm_campaign=crawlora-skills.
#
# Usage:
Confidence
60% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Content
# Keep the API key out of the curl process command line. A private temporary
# config supplies the header and is removed automatically on exit.
curl_config="$(mktemp "${TMPDIR:-/tmp}/crawlora-curl.XXXXXX")"
chmod 600 "$curl_config"
trap 'rm -f "$curl_config"' EXIT
printf 'header = "x-api-key: %s"\n' "$CRAWLORA_API_KEY" >"$curl_config"
auth=(--config "$curl_config")
Confidence
80% confidence
Finding
Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

External Transmission

Medium
Category
Data Exfiltration
Content
[ -n "$body" ] || body='{}'
  # Stream the body on stdin so curl never interprets a user value as its
  # @file shorthand (and cannot read local files supplied in a request body).
  printf '%s' "$body" | curl -fsS -X "$method" "${auth[@]}" \
    -H "Content-Type: application/json" --data-binary @- "${base}${path}"
fi
Confidence
70% confidence
Finding
Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Missing User Warnings

Low
Confidence
84% confidence
Finding
This markdown file explicitly instructs callers to send `x-api-key: $CRAWLORA_API_KEY`, which affects user/system credentials and outbound network behavior. The file is an endpoint reference, but it does not include any warning or note about handling secrets carefully, avoiding logging the key, or the fact that requests transmit data to an external service.

Static analysis

No suspicious patterns detected.