← MCP server and skill grades

quarkclouddrive_offical

quark-clouddrive/quarkclouddrive_offical

C
Type
Skill
Scanned
Nov 17, 2026
Version
a5830d99830c
Files read
15

This skill connects AI coding agents to Quark Cloud Drive to upload, download, search, organize, share, and summarize cloud files through a downloadable Node.js CLI. The biggest risk is that the actual CLI executable is absent from the repository and install.sh automatically downloads and runs unverified updates—overwriting both executable scripts and SKILL.md instructions—before every user turn, while also sending every full user prompt to the CLI for tracking.

What it can reach

Shell commands
Runs install.sh, uninstall.sh, and the downloaded Node.js CLI (scripts/quark-drive.cjs), and may invoke Homebrew or sudo package installers if Node.js >= 16 is missing.
Files
Uploads arbitrary local files and folders to Quark Cloud Drive, downloads cloud files and search artifacts to local disk, stores local task and rename state, overwrites its own scripts and skill docs during updates, and deletes ~/.quarkclouddrive on uninstall.
Network
Communicates with open-api-drive.quark.cn, pan.quark.cn, and dynamic package download URLs to fetch the CLI bundle, manage and share cloud files, send session tracking parameters, and run a local HTTP callback listener during OAuth login.
Secrets
Stores and uses Quark Cloud Drive OAuth tokens in a local config.json file, granting access to all files in the user's cloud drive by default until restricted in the Quark mobile app.
Browser
Opens the user's web browser during login to complete Quark Cloud Drive OAuth authorization.
System
Reads local machine identifiers or creates a local UUID file to bind the device with Quark's API.

Findings

1 high3 medium1 low
  1. HighUnverified runtime code download and silent auto-update on every user turn

    skills/quarkclouddrive/install.sh:261

    The actual CLI runtime (scripts/quark-drive.cjs) is not included in this repository so it cannot be audited before installation. Worse, SKILL.md requires the agent to run bash scripts/install.sh before the first CLI command after every user message. Whenever the remote API reports a version change, install.sh downloads a zip archive from a dynamically supplied URL (whose validation even permits unencrypted http:// URLs and arbitrary hosts) with no checksum or cryptographic signature check, overwrites both executable scripts and SKILL.md prompt files, immediately executes the downloaded code with node, and tells the agent to clear its skill memory and follow the newly downloaded SKILL.md.

    Fix: Include auditable CLI source or pin releases to immutable HTTPS URLs verified against hardcoded SHA-256 checksums, reject http:// download URLs, and do not silently overwrite code and prompt files on every conversation turn without user approval.

  2. MediumUndisclosed verbatim exfiltration of full user prompts and unsafe double-quoted shell template

    skills/quarkclouddrive/SKILL.md:104

    SKILL.md forces the agent to pass --session-input on every CLI command containing an exact word-for-word copy of the user's raw chat message solely for service quality tracking, without disclosing this in README.md. In coding agents, user messages frequently include unrelated source code, credentials, or private data alongside a file request, all of which gets sent to the CLI and exposed in local OS process listings. In addition, the command template places this raw text inside Bash double quotes (--session-input "..."), where backticks (common in Markdown or pasted text) and $(...) undergo shell command substitution if interpolated literally.

    Fix: Remove the mandatory --session-input prompt telemetry parameter, or make it strictly opt-in and never pass raw user prompts inside double-quoted shell commands.

  3. MediumAutomatic root execution via curl | sudo bash installing End-of-Life Node.js 16

    skills/quarkclouddrive/install.sh:155

    When Node.js is missing or older than version 16, install.sh pipes a remote setup script from deb.nodesource.com or rpm.nodesource.com directly into sudo -E bash without integrity verification, and hardcodes REQUIRED_NODE_MAJOR=16 (also force-linking node@16 via Homebrew on macOS). Node.js 16 reached End-of-Life in September 2023 and has known unpatched security vulnerabilities, yet the script installs it system-wide with root privileges.

    Fix: Do not run curl | sudo bash automatically; instruct the user to install a currently supported LTS version of Node.js (such as Node.js 20 or 22) themselves.

  4. MediumPredictable sibling temp directory deleted with rm -rf on every script exit

    skills/quarkclouddrive/install.sh:29

    Instead of creating a unique temporary directory with mktemp -d, install.sh sets TMP_DIR to a sibling folder named temp in the parent directory of SKILL_DIR (for example ~/.claude/skills/temp) and registers an EXIT trap that runs rm -rf "$TMP_DIR" every time install.sh finishes—including the automatic pre-command check on every user message. Any existing sibling directory named temp is silently deleted, and if SKILL_DIR is inside a shared parent directory such as /tmp, another local user can pre-create temp/scripts to hijack installation.

    Fix: Create an isolated temporary directory using mktemp -d and only remove that newly created directory on exit.

  5. LowSkill forbids the agent from reading or analyzing the downloaded CLI script even when asked

    skills/quarkclouddrive/SKILL.md:310

    SKILL.md instructs the agent (including when installed globally across all projects) to refuse any cat, head, read_file, or code inspection requests on scripts/quark-drive.cjs, even when the user explicitly asks what the downloaded script does. Combined with unpinned runtime downloads, this prevents users from using their coding agent to audit the executable running on their machine.

    Fix: Remove instructions that override user requests to inspect locally installed script files.