Back to skill

Security audit

search-harvester

Security checks for vulnerabilities and agentic risk

Overview

The skill is transparent about its goal, but it automates search scraping through Tor and public proxies to get around blocking, so users should review it carefully before installing.

Install only if Tor-based search scraping is approved in your environment and compatible with the relevant sites' terms and local rules. Avoid public HTTP proxies for sensitive queries, require explicit user approval before using Tor or proxy fallback, and prefer running Tor under a dedicated unprivileged service account with controlled config and output paths.

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
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Rogue AgentSelf-Modification, Session Persistence
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
Findings (25)

Credential Access

High
Category
Privilege Escalation
Confidence
60% confidence
Finding

Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.

Content

Scanner excerpt · .gitignore (reported line 10)May include surrounding context.

text
__pycache__/
*.pyc
.venv/
.env

# OS noise
.DS_Store

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · README.md (reported line 28)May include surrounding context.

bash
# 1. Run a dedicated Tor instance (SOCKSPort 19050, ControlPort 19051)
sudo tor -f /tmp/tor-harvestrc     # see SKILL.md for the config

# 2. Harvest
python3 scripts/search-harvester.py \

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

bash
# 1. Run a dedicated Tor instance (SOCKSPort 19050, ControlPort 19051)
sudo tor -f /tmp/tor-harvestrc     # see SKILL.md for the config

# 2. Harvest
python3 scripts/search-harvester.py \

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

bash
# 1. Run a dedicated Tor instance (SOCKSPort 19050, ControlPort 19051)
sudo tor -f /tmp/tor-harvestrc     # see SKILL.md for the config

# 2. Harvest
python3 scripts/search-harvester.py \

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · search-harvester/SKILL.md (reported line 49)May include surrounding context.

bash
# 1. Run a dedicated Tor instance (SOCKSPort 19050, ControlPort 19051)
sudo tor -f /tmp/tor-harvestrc     # see SKILL.md for the config

# 2. Harvest
python3 scripts/search-harvester.py \

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · search-harvester/SKILL.md (reported line 54)May include surrounding context.

bash
# 1. Run a dedicated Tor instance (SOCKSPort 19050, ControlPort 19051)
sudo tor -f /tmp/tor-harvestrc     # see SKILL.md for the config

# 2. Harvest
python3 scripts/search-harvester.py \

Undeclared Tool Scope

Medium
Category
MCP Least Privilege
Confidence
96% confidence
Finding

The skill declares broad operational behavior involving shell execution, file writes, and extensive network access, but it does not define any tool scope or permission boundaries. In a system that can auto-invoke skills, this creates an authorization gap where a scraping workflow that starts Tor, writes temp files, and reaches arbitrary external hosts may run with more capability than intended.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The description uses broad triggers such as 'find more places to submit' and a fallback condition for whenever direct search gets blocked, which can cause the skill to activate in loosely related contexts. Because the skill routes traffic through Tor and public proxies to evade blocking, accidental or overly eager invocation increases the chance of policy bypass, unexpected external traffic, and use against third-party services without clear user intent.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The 'When to Use' section authorizes use whenever search queries are blocked from the server IP and for broad 'candidate discovery' tasks, without meaningful constraints or compliance checks. In context, this is risky because the workflow is specifically designed to rotate identities and continue querying after blocks, which makes ambiguous activation more dangerous than a normal research skill.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
90% confidence
Finding

The skill instructs running Tor with sudo, elevating execution to root for a network-facing process controlled by the skill workflow. Running unnecessary root-level commands materially increases blast radius if the process, configuration, or surrounding automation is abused or compromised.

Content

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

md
#   SOCKSPort 127.0.0.1:19050
#   ControlPort 127.0.0.1:19051
#   DataDirectory /tmp/tor-harvest-data
sudo tor -f /tmp/tor-harvestrc        # run as background process
# Verify listening:
sudo ss -tlnp | grep -E "19050|19051"
# Verify exit IP:

External Transmission

Medium
Category
Data Exfiltration
Confidence
97% confidence
Finding

Fetching a free proxy list from a third-party service is an external transmission step that bootstraps later communication through untrusted infrastructure. In context, this increases risk because the skill's stated purpose is to prevent the server IP from touching search engines and to continue scraping via alternate identities, which is consistent with deliberate evasion rather than ordinary network use.

Content

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

Public Proxy Fallback

bash
curl -s -m 15 "https://api.proxyscrape.com/v4/free-proxy-list/get?request=display_proxies&protocol=http&proxy_format=ipport&format=text&timeout=20000" | tr -d '\r' > /tmp/proxies.txt
# Test each proxy (200 = alive):
while read -r p; do code=$(curl -s -m 10 -x "http://$p" https://api.ipify.org -o /dev/null -w "%{http_code}"); [ "$code" = "200" ] && echo "$p ALIVE"; done < /tmp/proxies.txt
# Then: curl -x http://<ip:port> <engine-url>

External Transmission

Medium
Category
Data Exfiltration
Confidence
98% confidence
Finding

This snippet sends outbound traffic through arbitrary public HTTP proxies and instructs the operator to relay search-engine requests through them. That exposes queries and potentially other metadata to untrusted intermediaries, while also facilitating source obfuscation and evasion of provider defenses; in this skill, the proxying is not incidental but part of the core anti-detection design.

Content

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

bash
curl -s -m 15 "https://api.proxyscrape.com/v4/free-proxy-list/get?request=display_proxies&protocol=http&proxy_format=ipport&format=text&timeout=20000" | tr -d '\r' > /tmp/proxies.txt
# Test each proxy (200 = alive):
while read -r p; do code=$(curl -s -m 10 -x "http://$p" https://api.ipify.org -o /dev/null -w "%{http_code}"); [ "$code" = "200" ] && echo "$p ALIVE"; done < /tmp/proxies.txt
# Then: curl -x http://<ip:port> <engine-url>

Public HTTP proxies are mostly dead (verified: 2/8 alive from proxyscrape). Use only when Tor is unavailable. Pitfall: proxy lists end lines with \r — always tr -d '\r' before looping, or every proxy fails with 000.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The activation description is extremely broad and explicitly routes generic research requests into a skill whose core purpose is evading search-engine blocking through Tor and public proxies. That makes accidental invocation likely and increases the chance the agent performs stealthy network activity when a normal search workflow would be more appropriate.

Content

No source excerpt is available for this finding.

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
91% confidence
Finding

The 'When to Use' section uses ambiguous conditions like replacing blocked research sweeps and finding candidate websites, without defining authorization or acceptable-use boundaries. In context, this broadens use of a censorship/bot-evasion workflow and makes misuse more likely for scraping or terms-of-service bypass.

Content

No source excerpt is available for this finding.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
88% confidence
Finding

The skill instructs running Tor with sudo, elevating execution of network-facing software from the skill workflow into root context. If the configuration, binary, or surrounding workflow is compromised, this materially increases the blast radius and enables privileged persistence or host modification.

Content

Scanner excerpt · search-harvester/SKILL.md (reported line 47)May include surrounding context.

md
#   SOCKSPort 127.0.0.1:19050
#   ControlPort 127.0.0.1:19051
#   DataDirectory /tmp/tor-harvest-data
sudo tor -f /tmp/tor-harvestrc        # run as background process
# Verify listening:
sudo ss -tlnp | grep -E "19050|19051"
# Verify exit IP:

Session Persistence

Medium
Category
Rogue Agent
Confidence
65% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

curl -s -m 45 --socks5-hostname 127.0.0.1:19050 https://api.ipify.org

text

⚠️ The systemd `tor.service` is a multi-instance master that shows "active (exited)" and listens on NOTHING. Don't rely on `sudo systemctl start tor` / port 9050 — use the dedicated instance above. First boot needs ~30-60s to build a circuit before curl works. Never start it with `sudo -b nohup tor ...` (silently fails) — use a proper background process.

## Harvesting (core loop)

Session Persistence

Medium
Category
Rogue Agent
Confidence
65% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

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

curl -s -m 45 --socks5-hostname 127.0.0.1:19050 https://api.ipify.org

text

⚠️ The systemd `tor.service` is a multi-instance master that shows "active (exited)" and listens on NOTHING. Don't rely on `sudo systemctl start tor` / port 9050 — use the dedicated instance above. First boot needs ~30-60s to build a circuit before curl works. Never start it with `sudo -b nohup tor ...` (silently fails) — use a proper background process.

## Harvesting (core loop)

Session Persistence

Medium
Category
Rogue Agent
Confidence
65% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · search-harvester/SKILL.md (reported line 54)May include surrounding context.

curl -s -m 45 --socks5-hostname 127.0.0.1:19050 https://api.ipify.org

text

⚠️ The systemd `tor.service` is a multi-instance master that shows "active (exited)" and listens on NOTHING. Don't rely on `sudo systemctl start tor` / port 9050 — use the dedicated instance above. First boot needs ~30-60s to build a circuit before curl works. Never start it with `sudo -b nohup tor ...` (silently fails) — use a proper background process.

## Harvesting (core loop)

Session Persistence

Medium
Category
Rogue Agent
Confidence
65% confidence
Finding

Skill establishes unauthorized persistence across sessions via cron jobs, startup scripts, or state files. Session persistence allows an attacker to maintain access beyond the current interaction.

Content

Scanner excerpt · search-harvester/SKILL.md (reported line 150)May include surrounding context.

curl -s -m 45 --socks5-hostname 127.0.0.1:19050 https://api.ipify.org

text

⚠️ The systemd `tor.service` is a multi-instance master that shows "active (exited)" and listens on NOTHING. Don't rely on `sudo systemctl start tor` / port 9050 — use the dedicated instance above. First boot needs ~30-60s to build a circuit before curl works. Never start it with `sudo -b nohup tor ...` (silently fails) — use a proper background process.

## Harvesting (core loop)

External Transmission

Medium
Category
Data Exfiltration
Confidence
90% confidence
Finding

Fetching proxy lists from a third-party service causes outbound transmission to an external provider and bootstraps later traffic through unknown hosts. In context, this is not just ordinary external communication; it is part of a workflow designed to evade source-IP attribution, which increases both privacy and policy risk.

Content

Scanner excerpt · search-harvester/SKILL.md (reported line 107)May include surrounding context.

Public Proxy Fallback

bash
curl -s -m 15 "https://api.proxyscrape.com/v4/free-proxy-list/get?request=display_proxies&protocol=http&proxy_format=ipport&format=text&timeout=20000" | tr -d '\r' > /tmp/proxies.txt
# Test each proxy (200 = alive):
while read -r p; do code=$(curl -s -m 10 -x "http://$p" https://api.ipify.org -o /dev/null -w "%{http_code}"); [ "$code" = "200" ] && echo "$p ALIVE"; done < /tmp/proxies.txt
# Then: curl -x http://<ip:port> <engine-url>

External Transmission

Medium
Category
Data Exfiltration
Confidence
97% confidence
Finding

This instruction routes traffic through arbitrary public HTTP proxies and external services, exposing all queried destinations and potentially any transmitted data to untrusted intermediaries. Public proxies are a well-known interception point and, in this skill, are specifically used to conceal source identity while scraping search engines, which materially raises abuse and data-leak risk.

Content

Scanner excerpt · search-harvester/SKILL.md (reported line 109)May include surrounding context.

bash
curl -s -m 15 "https://api.proxyscrape.com/v4/free-proxy-list/get?request=display_proxies&protocol=http&proxy_format=ipport&format=text&timeout=20000" | tr -d '\r' > /tmp/proxies.txt
# Test each proxy (200 = alive):
while read -r p; do code=$(curl -s -m 10 -x "http://$p" https://api.ipify.org -o /dev/null -w "%{http_code}"); [ "$code" = "200" ] && echo "$p ALIVE"; done < /tmp/proxies.txt
# Then: curl -x http://<ip:port> <engine-url>

Public HTTP proxies are mostly dead (verified: 2/8 alive from proxyscrape). Use only when Tor is unavailable. Pitfall: proxy lists end lines with \r — always tr -d '\r' before looping, or every proxy fails with 000.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

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

md
- **Don't hammer one exit node** — one query per exit, then NEWNYM. DDG 403s the second query from the same exit.
- **First circuit takes 30-60s** — don't declare Tor broken until bootstrap completes ("Bootstrapped 100%" in tor log).
- **`sudo -b nohup tor ...` silently fails** (no process, empty log). Use a background process manager.
- **Search engines interpret bare words oddly** (Bing turned "add" into ADHD medical results). Always quote phrases: `"add your company"`.
- **Don't mass-probe invented domain names** — only harvest from engine results + curated lists. Random guesses are almost all parked domains.
- **SearXNG public instances are rate-limited/403 from datacenter IPs** — don't rely on them as a rotation layer.

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
70% confidence
Finding

Commands invoke sudo or root privileges. Verify this elevated access is necessary and justified.

Content

Scanner excerpt · search-harvester/SKILL.md (reported line 150)May include surrounding context.

md
- **Don't hammer one exit node** — one query per exit, then NEWNYM. DDG 403s the second query from the same exit.
- **First circuit takes 30-60s** — don't declare Tor broken until bootstrap completes ("Bootstrapped 100%" in tor log).
- **`sudo -b nohup tor ...` silently fails** (no process, empty log). Use a background process manager.
- **Search engines interpret bare words oddly** (Bing turned "add" into ADHD medical results). Always quote phrases: `"add your company"`.
- **Don't mass-probe invented domain names** — only harvest from engine results + curated lists. Random guesses are almost all parked domains.
- **SearXNG public instances are rate-limited/403 from datacenter IPs** — don't rely on them as a rotation layer.

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 · search-harvester/scripts/search-harvester.py (reported line 45)May include surrounding context.

python
def current_ip():
    out = subprocess.run(
        ["curl", "-s", "-m", "25", "--socks5-hostname", f"{SOCKS[0]}:{SOCKS[1]}",
         "https://api.ipify.org"],
        capture_output=True, text=True)

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 · search-harvester/scripts/search-harvester.py (reported line 54)May include surrounding context.

python
def fetch(url, timeout=30):
    """Fetch a URL through the Tor SOCKS proxy via curl. Returns (code, body)."""
    out = subprocess.run(
        ["curl", "-s", "-m", str(timeout), "-L", "--socks5-hostname",
         f"{SOCKS[0]}:{SOCKS[1]}", "-A", UA, "-w", "\n%{http_code}", url],
        capture_output=True, text=True)