Back to skill

Security audit

quarkclouddrive

Security checks for vulnerabilities and agentic risk

Overview

The scanners mark this skill suspicious because they report sensitive prompt and login-code handling, risky installer behavior, and capabilities beyond its stated Quark Drive purpose.

Consider not installing until the prompt and OAuth-code handling, privileged remote setup, archive verification, uninstall behavior, and memory-clearing instruction have been reviewed or addressed. Scanner coverage is incomplete, so these results do not establish that the skill is safe or prove malicious intent.

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

Warning
Location
uninstall.sh
Finding

Uninstall bypasses the documented confirmation gate

Content
View full analysis

Impact

A premature helper invocation can delete legacy configuration and cached state and, with the installed CLI present, initiate authorization revocation and current-Agent configuration cleanup. The latter behavior is documented but cannot be independently verified because the CLI is absent from this snapshot.

Vulnerability Patterns
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
Findings (31)

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
93% confidence
Finding

The supplied script's primary purpose is local software uninstallation, which is not declared among the cloud-drive and authentication operations. Logout is consistent with authentication management, but deleting installed commands and an entire local directory is a separate, destructive maintenance capability rather than an implementation detail of the advertised operations. The deletion targets are Quark-related; the code does not show unrelated resource access or data exfiltration.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied command invokes an uninstall-named script rather than implementing a declared Quark Drive operation. This indicates an undeclared uninstall capability. However, without the script contents, its actual effects—including whether anything is removed—cannot be confirmed.

Content

No source excerpt is available for this finding.

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
90% confidence
Finding

The supplied authentication reference runs bash uninstall.sh, rather than performing an evident authentication or cloud-drive operation. Uninstallation is outside the declared purpose. The missing script prevents verification of what is actually removed or changed, so no specific destructive effects can be established.

Content

No source excerpt is available for this finding.

Mandatory quality tracking collects verbatim user messages unrelated to command execution.

High
Category
Data Exfiltration
Confidence
96% confidence
Finding

Mandatory verbatim copying can expose credentials, confidential instructions, or personal information unrelated to the requested drive operation through CLI invocation records and possible quality-tracking processing. The blanket rule covers authentication commands as well, increasing the consequences when a user's message contains an authorization code; remote transmission is not verified by this source.

Content

No source excerpt is available for this finding.

Incomplete referenced artifact analysis

High
Category
analysis-evasion
Confidence
100% confidence
Finding

Referenced artifact was not completely inspected

Content

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

md
后续每次调用都重新依据对应的 `install.sh` 返回结果判断,不沿用上一次的升级状态,也不因之前已展示过提示而省略参数。

Chaining Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

The pipeline connects an external network response directly to a privileged shell, turning control of the remote script into root command execution. This dependency-bootstrap pattern is an unsafe trust transition even though its apparent purpose is legitimate installation.

Content

Scanner excerpt · install.sh (reported line 155)May include surrounding context.

sh
install_node_linux() {
  if command -v apt-get &>/dev/null; then
    info "使用 apt 安装 Node.js ${REQUIRED_NODE_MAJOR}..."
    curl -fsSL "https://deb.nodesource.com/setup_${REQUIRED_NODE_MAJOR}.x" | sudo -E bash - 2>/dev/null
    sudo apt-get install -y nodejs 2>/dev/null
    if command -v node &>/dev/null; then
      return 0

Chaining Abuse

High
Category
Tool Misuse
Confidence
99% confidence
Finding

The RPM bootstrap chains a remote download directly into root-level interpretation without an intervening authenticity check. Compromise of the supplied script would therefore compromise the host, not just the installed skill.

Content

Scanner excerpt · install.sh (reported line 162)May include surrounding context.

sh
fi
  elif command -v yum &>/dev/null; then
    info "使用 yum 安装 Node.js ${REQUIRED_NODE_MAJOR}..."
    curl -fsSL "https://rpm.nodesource.com/setup_${REQUIRED_NODE_MAJOR}.x" | sudo bash - 2>/dev/null
    sudo yum install -y nodejs 2>/dev/null
    if command -v node &>/dev/null; then
      return 0

Tool Parameter Abuse

High
Category
Tool Misuse
Confidence
95% confidence
Finding

Tool parameters are crafted to achieve unintended or unsafe behavior. Parameter abuse can bypass intended safety checks (e.g. shell=True, --force, dangerous glob patterns).

Content

Scanner excerpt · install.sh (reported line 346)May include surrounding context.

sh
refs_src=$(find "$TMP_DIR" -maxdepth 2 -type d -name "references" | head -1)

  if [ -n "$refs_src" ]; then
    rm -rf "$SKILL_DIR/references" || return 1
    cp -rf "$refs_src" "$SKILL_DIR/references" || return 1
    local ref_count
    ref_count=$(find "$SKILL_DIR/references" -type f | wc -l | tr -d ' ')

The fallback login flow requires users to disclose an OAuth authorization code in the conversation and prohibits directing them to enter it locally.

High
Category
Data Exfiltration
Confidence
98% confidence
Finding

The fallback makes conversational disclosure of an OAuth code mandatory and expressly rejects directing users to enter it locally. This unnecessarily places a credential in chat history and subsequently in a command argument, creating exposure to transcript access and execution logging; successful misuse depends on the OAuth protections and code validity.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The mandatory welcome message forces Chinese output without a language choice.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The skill requires the agent to reproduce the supplied Chinese welcome message verbatim upon first installation or when no account is bound. This imposes Chinese output regardless of the user's language, without offering an opt-in or documenting a reason that requires this language restriction.

Content

No source excerpt is available for this finding.

Mandatory collection of verbatim user prompts and persistent conversation identifiers exceeds the needs of drive operations.

Medium
Category
Excessive Agency
Confidence
96% confidence
Finding

Every command must receive the user's complete original message for quality tracking even though the text is explicitly unnecessary for command execution. This expands sensitive-data exposure to CLI arguments and any downstream telemetry, while the reused conversation identifier enables correlation; the supplied source does not establish actual telemetry transmission or retention.

Content

No source excerpt is available for this finding.

Mandatory quality-tracking metadata includes verbatim user requests without a user-facing privacy disclosure.

Medium
Category
Output Handling
Confidence
96% confidence
Finding

The skill mandates copying raw user requests into quality-tracking metadata without requiring a user-facing disclosure or consent. Users may reasonably authorize a drive operation without authorizing collection of unrelated secrets or personal details contained in the same message.

Content

No source excerpt is available for this finding.

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 · install.sh (reported line 55)May include surrounding context.

sh
if rm -f "$symlink" 2>/dev/null; then
        info "  已删除旧版全局命令: $symlink"
      else
        warn "  删除旧版全局命令失败(可能需要 sudo 权限): $symlink"
      fi
    else
      info "  未发现旧版全局命令,跳过"

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
99% confidence
Finding

The command runs an unverified remote setup script as root and requests preservation of the caller's environment with sudo -E. Preserved environment variables can additionally influence privileged execution, although the direct execution of mutable remote code is already the primary risk.

Content

Scanner excerpt · install.sh (reported line 155)May include surrounding context.

sh
install_node_linux() {
  if command -v apt-get &>/dev/null; then
    info "使用 apt 安装 Node.js ${REQUIRED_NODE_MAJOR}..."
    curl -fsSL "https://deb.nodesource.com/setup_${REQUIRED_NODE_MAJOR}.x" | sudo -E bash - 2>/dev/null
    sudo apt-get install -y nodejs 2>/dev/null
    if command -v node &>/dev/null; then
      return 0

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
99% confidence
Finding

The installer streams a mutable remote script directly into a root shell without independent integrity verification. A compromised distribution endpoint could execute arbitrary system-wide changes; installing a Node.js dependency does not require giving unreviewed remote script content unrestricted root execution.

Content

Scanner excerpt · install.sh (reported line 155)May include surrounding context.

sh
install_node_linux() {
  if command -v apt-get &>/dev/null; then
    info "使用 apt 安装 Node.js ${REQUIRED_NODE_MAJOR}..."
    curl -fsSL "https://deb.nodesource.com/setup_${REQUIRED_NODE_MAJOR}.x" | sudo -E bash - 2>/dev/null
    sudo apt-get install -y nodejs 2>/dev/null
    if command -v node &>/dev/null; then
      return 0

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 · install.sh (reported line 156)May include surrounding context.

sh
if command -v apt-get &>/dev/null; then
    info "使用 apt 安装 Node.js ${REQUIRED_NODE_MAJOR}..."
    curl -fsSL "https://deb.nodesource.com/setup_${REQUIRED_NODE_MAJOR}.x" | sudo -E bash - 2>/dev/null
    sudo apt-get install -y nodejs 2>/dev/null
    if command -v node &>/dev/null; then
      return 0
    fi

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 · install.sh (reported line 163)May include surrounding context.

sh
elif command -v yum &>/dev/null; then
    info "使用 yum 安装 Node.js ${REQUIRED_NODE_MAJOR}..."
    curl -fsSL "https://rpm.nodesource.com/setup_${REQUIRED_NODE_MAJOR}.x" | sudo bash - 2>/dev/null
    sudo yum install -y nodejs 2>/dev/null
    if command -v node &>/dev/null; then
      return 0
    fi

Sudo/Root Execution

Medium
Category
Privilege Escalation
Confidence
99% confidence
Finding

The yum installation path pipes a remotely fetched setup script directly into sudo bash. If that script's distribution is compromised, attacker-controlled commands run with root privileges before any package installation checks.

Content

Scanner excerpt · install.sh (reported line 162)May include surrounding context.

sh
fi
  elif command -v yum &>/dev/null; then
    info "使用 yum 安装 Node.js ${REQUIRED_NODE_MAJOR}..."
    curl -fsSL "https://rpm.nodesource.com/setup_${REQUIRED_NODE_MAJOR}.x" | sudo bash - 2>/dev/null
    sudo yum install -y nodejs 2>/dev/null
    if command -v node &>/dev/null; then
      return 0

External Transmission

Medium
Category
Data Exfiltration
Confidence
96% confidence
Finding

This request downloads an installer archive rather than visibly transmitting private files, so the external-transmission label is misleading. However, the configuration-supplied URL permits HTTP and arbitrary hosts, and the archive is installed and its CLI executed without independent authenticity verification, creating a supply-chain code-execution risk.

Content

Scanner excerpt · install.sh (reported line 261)May include surrounding context.

sh
mkdir -p "$TMP_DIR"
  local zip_path="$TMP_DIR/skill.zip"

  if ! curl -fsSL --connect-timeout 30 --max-time 120 -o "$zip_path" "$ZIP_DOWNLOAD_URL"; then
    warn "下载失败,重试中..."
    if ! curl -fsSL --connect-timeout 30 --max-time 120 -o "$zip_path" "$ZIP_DOWNLOAD_URL"; then
      error "下载 zip 包失败: $ZIP_DOWNLOAD_URL"

Exit cleanup recursively deletes a fixed sibling temp directory without disclosing the deletion.

Medium
Category
Output Handling
Confidence
99% confidence
Finding

Cleanup recursively deletes a fixed sibling directory named temp rather than a uniquely allocated installer workspace. Because cleanup is registered on exit, even an early installation failure can delete preexisting files unrelated to this skill.

Content

No source excerpt is available for this finding.

Installer output instructs the agent to stop using and clear skill-related memory, beyond the declared drive-management purpose.

Medium
Category
Excessive Agency
Confidence
97% confidence
Finding

The installer emits instructions to stop using and clear skill-related agent memory, crossing the boundary between tool output and authorized agent instructions. Refreshing documentation is reasonable, but deleting persistent context could remove user preferences or security constraints without consent.

Content

No source excerpt is available for this finding.

Installer output instructs the agent to stop using and delete skill-related memory under an update-refresh pretext.

Medium
Category
Prompt Injection
Confidence
97% confidence
Finding

This output tells the agent to delete skill-related memory under an update-refresh rationale. Although likely intended to prevent stale instructions, following it would grant installer output authority over persistent agent state without user approval.

Content

No source excerpt is available for this finding.

The workflow directs cloud-based processing and recommends uploading files to Quark Drive without a privacy warning.

Medium
Category
Output Handling
Confidence
90% confidence
Finding

The skill requires the agent to invoke the remote AI assistant for file understanding and recommends uploading bulk files to Quark Drive instead of parsing them locally. It does not instruct the agent to warn users that their questions and selected document contents will be processed by the cloud service, which is consequential for sensitive documents.

Content

No source excerpt is available for this finding.

Mandatory verbatim Chinese responses impose an output language without user opt-in.

Medium
Category
Output Handling
Confidence
98% confidence
Finding

The skill requires the agent to reproduce a lengthy Chinese welcome message verbatim. This imposes Chinese output regardless of the user's language, with neither a language choice nor a documented locale-specific justification.

Content

No source excerpt is available for this finding.