Back to skill

Security audit

Cloud Drive Downloader Claw

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report serious web API exposure, automatic handling of clipboard and browser links, and capabilities extending well beyond the stated cloud-drive download purpose.

Treat this as a meaningful security review, not a finding that the author is malicious. Before installing, consider whether you trust a skill that may expose its API token, automatically submit clipboard or browser links, and perform broader transfer and remote-service actions than its description suggests. The scan was partial (93.9% coverage), with some files and analyzer checks incompletely inspected, so it cannot establish that unreported behavior is safe.

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 (3)

T09 · Insecure Skill Coding Practices

Error
Location
scripts/pancli/web.py
Finding

Unauthenticated HTML discloses the token protecting every Web API

Content
View full analysis

Impact

The attacker can read the configuration returned by /api/settings, submit downloads using attacker-selected URLs and destinations, modify the exposed settings, and control existing tasks. Remote code execution is not established by this finding.

T09 · Insecure Skill Coding Practices

Warning
Location
extensions/chrome/content.js
Finding

Page-controlled selection events trigger authenticated downloads without user approval

Content
View full analysis

Impact

A website can initiate downloads that the user did not select or approve, causing outbound requests and file creation under the service's configured download destination. The page does not need to learn the API token. Credential disclosure, arbitrary path selection, and code execution are not established.

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/http_downloader/downloader.py
Finding

Checksum-rejected content is published at the final destination before verification

Content
View full analysis

Impact

Content that fails the explicit checksum requirement remains at the final destination. On platforms where moving replaces an existing file, it can replace that file before rejection. Other processes watching the destination can observe unverified bytes. No automatic execution or writes outside the selected output directory were established.

Vulnerability Patterns
  • 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
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
Findings (184)

Tainted flow: 'value' from sys.stdin.read (line 1079, user input) → subprocess.run (code execution)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

External input (network, user) flows to a code execution sink. This enables remote code execution or command injection.

Content

Scanner excerpt · scripts/pancli/engine.py (reported line 917)May include surrounding context.

python
def _macos_keychain_store(name, value):
    if not (SECURITY_BIN and Path(SECURITY_BIN).exists()):
        raise RuntimeError("macOS security 命令不可用,拒绝保存明文;请在正常终端执行")
    proc = subprocess.run(
        [SECURITY_BIN, "add-generic-password", "-U", "-a", name, "-s", KEYCHAIN_SERVICE, "-w"],
        input=value + "\n" + value + "\n", text=True, capture_output=True,
    )

Tainted flow: 'value' from sys.stdin.read (line 1083, user input) → subprocess.run (code execution)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

External input (network, user) flows to a code execution sink. This enables remote code execution or command injection.

Content

Scanner excerpt · scripts/pancli/engine.py (reported line 1046)May include surrounding context.

python
def _secret_tool_store(name, value):
    proc = subprocess.run(
        ["secret-tool", "store", "--label", APP + " " + name, "service", APP, "account", name],
        input=value, text=True, capture_output=True,
    )

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
99% confidence
Finding

The supplied code's primary function is repository portability auditing, not cloud-drive download scheduling. It scans user-specified local files and directories, reports compatibility findings, and optionally checks native-library filenames. No cloud-drive integration or download orchestration is present in this chunk. Although linting can be a supporting development tool, this script is a standalone auditor with an unrelated stated project context, making its primary purpose materially different from the declared description. There is no visible login, payment, or speed-limit bypass behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The mismatch is an undisclosed expansion of scope, not evidence of restriction bypass. Search queries are sent to external discovery services, user-supplied pages are fetched and parsed, and yt-dlp is executed for video search. These are substantive discovery and crawling capabilities rather than merely supporting implementation details for cloud-drive scheduling. URL ranking and local/NAS download delegation are consistent with scheduling. The supplied chunk does not demonstrate cracking login, payment, or speed restrictions; using an existing browser session is not itself a login bypass. Behavior of imported download implementations cannot be fully determined from this chunk.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

Download execution, scheduling, task management, and reporting reasonably support the declared purpose. However, cmd_transfer and cmd_sync introduce broader data-transfer and destructive synchronization capabilities not disclosed by a download-only description. Their dry-run defaults and explicit execution flags reduce accidental effects but do not remove the mismatch. cmd_notify_send additionally retrieves a webhook secret and can transmit title/body content through curl to external services; this is a separately exposed capability rather than merely internal download status reporting. The supplied chunk does not establish login or payment bypass. Its automatic HTTP range splitting is not, by itself, evidence of defeating a service-enforced rate limit.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

The reported global clipboard listener can process sensitive links copied from unrelated applications without an intentional download request. Automatic submission can expose those links to a local or remote service and trigger unintended requests; the supplied source does not include the listener implementation.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
97% confidence
Finding

The cloud-drive routing, authentication configuration, logging, and engine execution fit the declared scheduling purpose. However, build_plan also constructs executable yt-dlp video-download commands and aria2 BitTorrent commands, which are distinct capabilities beyond cloud-drive scheduling. The CLI additionally exposes search and crawl operations, although their implementations are outside this chunk. No supplied implementation demonstrates login cracking or payment bypass; ordinary parallel Range downloading alone does not establish prohibited speed-limit circumvention. The mismatch is the materially broader capability scope, not evidence of malicious behavior.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

Automatic access to the existing clipboard and continued submission of copied links can disclose sensitive URLs without a deliberate handoff to this skill. A download scheduler does not inherently need ongoing access to unrelated clipboard data; the behavior is reported by the analyzer rather than directly visible in this source.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The reported default-enabled capture forwards unrelated browser download URLs, which may contain signed access tokens or identify private resources, to a configured download service. Automatically supplying confirm_auth also substitutes software-generated consent for user authorization; this assessment relies on the static behavior report because extension code is not included.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
92% confidence
Finding

Remote download execution, staging, and storage transfers reasonably support the declared scheduling purpose. However, cmd_remote_deploy and build_remote_deploy_plan additionally implement remote software installation and optional persistent Web-service hosting, neither of which is disclosed by the description. These are substantive remote-administration capabilities rather than merely download scheduling details. The supplied chunk shows no authentication, payment, or rate-limit bypass; that stated restriction is not contradicted.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The reported persistent clipboard monitoring and automatic submission can turn unrelated copy operations into unintended disclosure or downloads. The concern is missing consent and collection boundaries, not merely omission from the short description; listener code is unavailable for direct verification.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
89% confidence
Finding

Selecting text is not authorization to transmit its URLs or initiate downloads, so the reported selection-change forwarding crosses a user-consent boundary. Arbitrary HTTP(S) collection can expose private or token-bearing links outside the download workflow; implementation details remain unverified without the extension source.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
87% confidence
Finding

Download progress reporting, notifications, and a management console can reasonably support download orchestration. Destructive synchronization and an unrestricted-looking background-command interface materially extend that declared scope. Explicit opt-in flags reduce accidental use but do not disclose these capabilities in the description. The supplied chunk establishes command exposure and dispatch, not the unseen handlers' actual implementation. Nothing shown indicates bypassing authentication, payment, or speed restrictions.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
84% confidence
Finding

The diagnostics, temporary files, local HTTP server, download test, transfer planning, and MCP checks reasonably support a download orchestration tool. However, check_search invokes pan.py search test --check --json to probe Archive, DuckDuckGo, and yt-dlp sources, extending the scope beyond the declared cloud-drive services. This is a limited scope mismatch, not evidence of authentication, payment, or rate-limit bypass. The delegated scripts are not supplied, so their broader behavior cannot be established from this chunk.

Content

No source excerpt is available for this finding.

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/pan_mcp.py (reported line 134)May include surrounding context.

python
def _env() -> Dict[str, str]:
    env = dict(os.environ)
    env.setdefault("PYTHONPYCACHEPREFIX", "/tmp/pan-mcp-pycache")
    return env

Env Variable Harvesting

High
Category
Data Exfiltration
Confidence
60% confidence
Finding

Code enumerates, copies, or searches environment variables for secrets. Bulk environment access can collect credentials unrelated to the skill's stated purpose.

Content

Scanner excerpt · scripts/verify_real_env.py (reported line 37)May include surrounding context.

python
def sh(args, env=None, timeout=180):
    e = dict(os.environ); e.update(env or {})
    return subprocess.run([sys.executable, str(PAN)] + args, capture_output=True, text=True, env=e, timeout=timeout)

scripts/pancli/carriers.py L057–L109 implements upload-capable transfers and destructive synchronization beyond download scheduling.

High
Category
Excessive Agency
Confidence
97% confidence
Finding

The manifest describes a cloud-drive download scheduling layer, but this function passes unrestricted source and destination arguments to rclone copy or sync (L083–L084), allowing remote writes and deletion of destination-only files. The --apply and --delete requirements make these operations opt-in, but do not bring them within the declared download-only purpose.

Content

No source excerpt is available for this finding.

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/pancli/carriers.py (reported line 123)May include surrounding context.

python
def notify_webhook_url(cfg, channel):
    key = str(((cfg.get("notify") or {}).get(channel + "_secret") or "")).strip() or ("notify." + channel)
    value = keychain_get(key)
    return value, key

def build_notify_payload(channel, title, body, chat_id=""):

External Script Fetching

High
Category
Supply Chain
Confidence
90% confidence
Finding

Remote code is downloaded and executed. This bypasses code review and could introduce malicious code.

Content

Scanner excerpt · scripts/pancli/carriers.py (reported line 178)May include surrounding context.

python
return 0
    tmp = tempfile.NamedTemporaryFile("w", suffix=".json", delete=False, encoding="utf-8")
    tmp.write(payload); tmp.close(); Path(tmp.name).chmod(0o600)
    cfg_curl = "url = %s\n-H = \"Content-Type: application/json\"\n--data = \"@%s\"\n" % (json.dumps(url), tmp.name)
    log_line("NOTIFY channel=%s send=1 ref=%s" % (args.channel, ref))
    try:
        proc = subprocess.run(["curl", "-sS", "--config", "-"], input=cfg_curl,

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/pancli/engine.py (reported line 65)May include surrounding context.

python
APP = "pan-downloader"
VALID_TIERS = ("free", "vip", "auto")
KEYCHAIN_SERVICE = "com.lis.pan-downloader"
SECURITY_BIN = os.environ.get("PAN_SECURITY_BIN", "/usr/bin/security")
SKILL_DIR = Path(__file__).resolve().parent.parent.parent

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/pancli/engine.py (reported line 777)May include surrounding context.

python
"extensions": {}
}
SECRET_RE = re.compile(r"(cookie|token|password|passwd|secret|bduss|credential|authorization|auth|pass)", re.I)
KEYCHAIN_REF_PREFIX = "keychain:"


# ---------------------------------------------------------------- 基础工具

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/pancli/engine.py (reported line 867)May include surrounding context.

python
def is_secret_ref(value):
    return isinstance(value, str) and value.startswith((CREDENTIAL_REF_PREFIX, KEYCHAIN_REF_PREFIX))


def secret_ref_name(ref):

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/pancli/engine.py (reported line 873)May include surrounding context.

python
def secret_ref_name(ref):
    if not is_secret_ref(ref):
        return ""
    for prefix in (CREDENTIAL_REF_PREFIX, KEYCHAIN_REF_PREFIX):
        if ref.startswith(prefix):
            return ref[len(prefix):].strip()
    return ""

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/pancli/engine.py (reported line 777)May include surrounding context.

python
"extensions": {}
}
SECRET_RE = re.compile(r"(cookie|token|password|passwd|secret|bduss|credential|authorization|auth|pass)", re.I)
KEYCHAIN_REF_PREFIX = "keychain:"


# ---------------------------------------------------------------- 基础工具

Credential Access

High
Category
Privilege Escalation
Confidence
70% confidence
Finding

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

Content

Scanner excerpt · scripts/pancli/engine.py (reported line 861)May include surrounding context.

python
return credential_ref(text)


def keychain_ref(name):
    """兼容旧调用;新配置统一推荐 credential: 引用。"""
    return credential_ref(name)