Back to skill

Security audit

添加QQBot账号

Security checks for vulnerabilities and agentic risk

Overview

The skill does what it says, but users should take extra care because it handles QQ Bot secrets.

Install only if you want an agent to help modify OpenClaw QQ Bot configuration. Use SecretRef, the OpenClaw credential store, or a protected token file where possible; avoid pasting real secrets into shell commands, chats, logs, or support transcripts, and check permissions on ~/.openclaw/openclaw.json before storing credentials there.

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

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:46
Finding

QQ Bot Secret Exposed Through Command-Line Arguments

Content
View full analysis
--token "" ``` This stores credentials in the OpenClaw credentials store. Note: `--token-file` only sets AppSecret; you still need `appId` in config or `QQBOT_APP_ID` env var. ``` ### Technical Analysis The documented command directs the user to substitute a reusable QQ Bot application secret directly into a command-line argument. Quoting the secret only affects shell parsing; it does not prevent disclosure. Depending on the operating system, shell, and monitoring configuration, the secret may be exposed through: - Shell history files - Process listings or process-inspection interfaces while the command runs - Terminal session recordings - Command auditing and endpoint telemetry - CI/CD logs or copied troubleshooting transcripts The document mentions `--token-file`, but the shown primary command still uses the insecure `--token` argument pattern. ### Attack Path 1. A user replaces `` with the real QQ Bot secret. 2. The user executes the documented command. 3. The shell records the command in history, or local process/audit tooling captures its arguments. 4. A local user, administrator, monitoring operator, or attacker with access to those records obtains the secret. 5. The exposed credential may be used to authenticate as the associated QQ Bot, subject to the permissions and controls imposed by the QQ platform. ### Impact Assessment Successful exploitation discloses the QQ Bot application secret. The attacker does not automatically gain operating-system privileges, but may obtain the bot identity's remote API privileges and access to functionality authorized for that application. The scope is limited to the account associated ...[truncated 84 chars]
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
SKILL.md:53
Finding

QQ Bot Credentials Stored in Plaintext Configuration

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Rogue AgentSelf-Modification, Session Persistence
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • 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
Findings (2)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The instructions in this section are written in Chinese while the rest of the skill is in English, and there is no opt-in or indication that the skill is intended only for Chinese-speaking users. This can violate language/locale policy by forcing a specific language for part of the workflow without user choice.

Content

No source excerpt is available for this finding.

Session Persistence

Medium
Category
Rogue Agent
Confidence
60% 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 99)May include surrounding context.

  1. 为新 agent 创建工作区目录:
bash
mkdir -p ~/.openclaw/workspaces/<accountId>/skills
  1. 在该工作区中放置 SOUL.md、USER.md 等文件定义其人格。