Back to skill

Security audit

Sayba 小红书运营全流程

Security checks for vulnerabilities and agentic risk

Overview

The skill’s Xiaohongshu automation purpose is mostly clear, but its recommended setup and account-control flows include unsafe installation, persistent gateway startup, and plaintext token exposure that users should review before installing.

Install only after reviewing the one-click setup. Prefer a pinned and verified OpenClaw install, do not pipe remote scripts directly to a shell, avoid non-interactive risk acceptance, keep the gateway local and optional, and do not share terminal output that contains tokens. Use a test Xiaohongshu account first and require human confirmation before publishing or replying.

Vulnerability Patterns
  • Remote Payload Retrieval and ExecutionFetches external code whose behavior can change after review
  • System PersistenceInstalls backdoors, hooks, services, or scheduled tasks that survive the run
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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
Findings (6)

T03 · Remote Payload Retrieval and Execution

Error
Location
Openclaw一键安装.md:37
Finding

Remote Installation Script Executed Directly Through Bash

Content
View full analysis
Remediation
View remediation
/install.sh" printf '%s %s\n' "" "/tmp/nvm-install.sh" | shasum -a 256 -c - less /tmp/nvm-install.sh bash /tmp/nvm-install.sh ``` ]]>

T06 · System Persistence

Error
Location
Openclaw一键安装.md:89
Finding

Automatic Installation and Startup of a Persistent Gateway Service

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Error
Location
Openclaw一键安装.md:63
Finding

Unpinned Global Installation of the OpenClaw npm Package

Content
View full analysis
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
Openclaw一键安装.md:97
Finding

Gateway Authentication Token Printed in Cleartext

Content
View full analysis
}" echo "Token: ${token:-}" echo "Dashboard: http://127.0.0.1:18789/" ``` ### Technical Analysis The script reads the gateway authentication token from OpenClaw configuration and writes it directly to standard output. Authentication tokens should be treated as secrets. Terminal output can persist in scrollback, screen recordings, screenshots, CI logs, support transcripts, remote-session logs, or Agent execution records. The audit found no command that directly transmits the token to an external server. The vulnerability is local and secondary disclosure through plaintext output. ### Attack Path 1. The user completes installation and OAuth onboarding. 2. The script reads `gateway.auth.token` from local OpenClaw configuration. 3. The complete token is printed to the terminal. 4. Terminal output is captured in scrollback, logging, screenshots, recordings, or support material. 5. A party with access to that output obtains the token. 6. The token is reused to authenticate to the gateway wherever it is reachable and accepted. ### Impact Assessment The exposed secret can permit authentication to the OpenClaw gateway within the token's configured scope. The resulting privileges depend on gateway configuration, enabled tools, network reachability, and token permissions. At minimum, disclosure compromises the confidentiality of the gateway credential and can require immediate token rotation. ]]>
Remediation
View remediation

T09 · Insecure Skill Coding Practices

Warning
Location
Openclaw一键安装.md:76
Finding

Automated Acceptance of Security Risk During OAuth Onboarding

Content
View full analysis
Remediation
View remediation

T08 · Insecure Dependencies

Warning
Location
references/xhs-publish-flows.md:46
Finding

Unpinned Installation Recommendation for an Additional Image-Generation Skill

Content
View full analysis
Remediation
View remediation
Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Tool MisuseTool Parameter Abuse, Chaining Abuse, Unsafe Defaults
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (13)

Chaining Abuse

High
Category
Tool Misuse
Confidence
94% confidence
Finding

Piping curl output directly into bash creates a one-step arbitrary code execution path from a remote source. In an installation guide for operational tooling, this is especially risky because users are encouraged to run it verbatim, often with high trust and little inspection, magnifying supply-chain and content-tampering impact.

Content

Scanner excerpt · Openclaw一键安装.md (reported line 37)May include surrounding context.

md
fi

  echo "[1/6] 安装 nvm..."
  curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
  # shellcheck disable=SC1090
  . "$NVM_DIR/nvm.sh"
}

Ssd 3

High
Category
Not specified by scanner
Confidence
99% confidence
Finding

The script retrieves gateway.auth.token and echoes it in plaintext, which normalizes exposing a live credential during setup. This is dangerous because installation logs, terminal scrollback, screen shares, and shell capture tools can leak the token, enabling unauthorized access if the gateway is reachable or if the token is reused in local workflows.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
97% confidence
Finding

The guide explicitly prints the gateway authentication token to the terminal as part of normal verification, but does not treat it as a secret or warn users not to share terminal output. Anyone with access to shell history, screenshots, recordings, logs, or copied output could reuse the token to access the local gateway or associated session.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The README explicitly promotes autonomous posting and replying on a real Xiaohongshu account via browser automation, but does not clearly warn about account suspension, platform ToS violations, accidental public actions, or reputational harm. In a skill designed to independently operate an account, the absence of operator-consent and risk disclosures makes unintended account-impacting behavior materially more dangerous.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The README promotes 'viral post cloning' by analyzing a target post and generating/publishing similar content, without warning about plagiarism, impersonation, copyright, spam, or platform enforcement risks. Because the skill is positioned as end-to-end autonomous publishing, this materially increases the chance of policy-violating or deceptive content being published at scale.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
50% confidence
Finding

Data is being sent to an external URL. This could be legitimate telemetry or data exfiltration. Manual review is recommended.

Content

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

md
## Star 趋势

[![Star History Chart](https://api.star-history.com/svg?repos=Xiangyu-CAS/xiaohongshu-ops-skill&type=Date)](https://star-history.com/#Xiangyu-CAS/xiaohongshu-ops-skill&Date)

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The instruction "语言优先‘能对话’而不是‘写报告’" appears within a fully Chinese-language skill focused on output style, and elsewhere the skill mandates a platform-specific persona for all external copy. There is no indication that users may choose another language or that Chinese-only output is an explicit opt-in requirement, which creates a locale policy concern.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
94% confidence
Finding

The skill explicitly instructs operators to collect per-user comment fields including user, time, text, likes, and replies, which creates a structured dataset of identifiable user activity without any privacy limitation, minimization guidance, or lawful-basis warning. In this context, the data is being operationalized for content production and account operations rather than incidental viewing, which increases the chance of unnecessary retention, profiling, or downstream misuse of commenter information.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
89% confidence
Finding

This markdown file contains user-facing examples and templates exclusively in Chinese, but it does not state that the skill is Chinese-only or offer any language/locale choice. Under the language/locale policy, forcing a specific language without user opt-in can be a natural-language policy violation.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
92% confidence
Finding

The file explicitly defines the persona and output style for Xiaohongshu in Chinese, requiring a platform-specific tone and phrasing. This is a natural-language locale/style constraint, but the document does not offer the user a language choice or explain a justified regional limitation beyond naming the platform.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The file's operational instructions are entirely in Chinese, which effectively forces a specific language for users or operators. Under the policy, locale or language constraints should either be optional, user-selected, or explicitly justified as region-specific.

Content

No source excerpt is available for this finding.

External Script Fetching

Low
Category
Supply Chain
Confidence
85% confidence
Finding

The guide fetches and executes an external installer script directly from GitHub at runtime. Even though pinning to a tagged version reduces risk somewhat, users are still trusting remote content without integrity verification, so a compromised upstream, tag substitution, MITM in a hostile environment, or content drift could result in arbitrary code execution.

Content

Scanner excerpt · Openclaw一键安装.md (reported line 37)May include surrounding context.

md
fi

  echo "[1/6] 安装 nvm..."
  curl -fsSL https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
  # shellcheck disable=SC1090
  . "$NVM_DIR/nvm.sh"
}

Missing User Warnings

Low
Category
Not specified by scanner
Confidence
90% confidence
Finding

The README advertises downloading target-post images and text from arbitrary URLs without any ownership, consent, copyright, or privacy warning. In a content-operations skill, this encourages reuse of third-party content in ways that can infringe rights or mishandle personal data embedded in posts.

Content

No source excerpt is available for this finding.