Back to skill

Security audit

小红书数据助手 SocialDataX

Security checks for vulnerabilities and agentic risk

Overview

The skill is rated suspicious because its instructions repeatedly run an automatically approved, unpinned latest CLI package, creating supply-chain risk; the scans did not establish malicious intent.

Consider postponing installation until the CLI version is fixed to a reviewed release and package integrity is checked. The scan covered the single Markdown component, but reference resolution was partial, so the evidence is incomplete; the findings do not establish that a package release is malicious.

Vulnerability Patterns
  • 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
  • Unauthorized Access and Privilege EscalationObtains permissions beyond the task's legitimate needs
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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (21)

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 · SKILL.md (reported line 22)May include surrounding context.

md
ion and authorized configuration, send it as stdin to `npx -y socialdatax-skills@latest auth login --stdin` for persistent CLI storage; do not request duplicate manual entry, pass it as a CLI argument, or write it to a temporary script file. Otherwise direct the user to the official URL above and hidden input with `npx -y socialdatax-skills@latest auth login` in their local terminal, without asking them to send it in chat. The CLI saves it under the execution user's home at `.config/socialdatax/credentials.json`, Unix mode 600 or a private current-user ACL on Windows. Do not repeat the Key in replies, output logs, screenshots, command examples, Skill files or version control. The Agent must not read or display credential-file content.
- Each CLI invocation reads the private user file without depending on a client loading shell configuration or changing client/system settings. A nonempty `SOCIALDATAX_API_KEY` has priority, then the existing legacy variable, then the file. Saving a file

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The authentication check executes socialdatax-skills@latest through npx with automatic installation approval, rather than a fixed, reviewed release. A compromised package release could execute with the agent's permissions and access credentials even though the intended operation only reports credential availability; this is CLI execution, not an MCP server launch.

Content

No source excerpt is available for this finding.

Autonomous Decision Making

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill enables autonomous high-impact decisions without human-in-the-loop verification. Critical operations (destructive commands, financial transactions, data deletion) should require explicit user confirmation.

Content

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

md
an explicit Key change. When the user has already supplied a Key in the installation prompt or current conversation and authorized configuration, send it as stdin to `npx -y socialdatax-skills@latest auth login --stdin` for persistent CLI storage; do not request duplicate manual entry, pass it as a CLI argument, or write it to a temporary script file. Otherwise direct the user to the official URL above and hidden input with `npx -y socialdatax-skills@latest auth login` in their local terminal, without asking them to send it in chat. The CLI saves it under the execution user's home at `.config/socialdatax/credentials.json`, Unix mode 600 or a private current-user ACL on Windows. Do not repeat the Key in replies, output logs, screenshots, command examples, Skill files or version control. The Agent must not read or display credential-file content.
- Each CLI invocation reads the private user file without depending on a client loading shell configuration or changing client/system settings

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The interactive login alternative also executes socialdatax-skills@latest rather than an immutable release. Hidden input protects against display leakage, but it does not protect the API key from a malicious version of the program receiving it.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The stdin login command runs a mutable @latest package and directly supplies it an API key. Stdin avoids command-line disclosure, but a compromised release could still capture the key or execute arbitrary code.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The hot-search example executes a mutable @latest npm package with npx -y. A compromised release could execute arbitrary code with access to the runtime and its API credentials, regardless of the intended read-only API operation.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The search command executes socialdatax-skills@latest, allowing the executed package version to change without review. A compromised release could access credentials or other resources available to the agent.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The paginated search command uses an automatically approved, mutable @latest package. Pagination itself is not the vulnerability; the risk is executing an unreviewed future release in a credential-bearing environment.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The note-detail command runs a mutable npm release through npx -y. If that release is compromised, its code executes with the agent's permissions before the intended read-only request provides any protection.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The URL-based detail command automatically executes socialdatax-skills@latest. This creates a supply-chain exposure to future package changes; the supplied document does not establish that any release is currently malicious.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The comments command uses @latest with automatic npx installation approval. A compromised package could steal the service key or execute other code despite the documented read-only purpose.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The all-comments and replies example executes a mutable @latest release. The supply-chain risk comes from running potentially changed package code with access to the execution environment, not from the comment-retrieval flags.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The URL-based comments command uses npx -y with socialdatax-skills@latest. A malicious future release could execute with the runtime user's privileges and access the API credential.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The sub-comments command executes an automatically selected @latest package version. This permits unreviewed code changes to run in the same environment used for authenticated data access.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The user-info command relies on a mutable @latest npm release. A compromised release could perform arbitrary local actions or extract credentials; the intended profile lookup does not constrain the executable.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The profile-URL lookup runs socialdatax-skills@latest through npx -y. The mutable executable introduces supply-chain risk independently of whether the requested API endpoint is read-only.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The user-posts command automatically executes the package selected by the mutable @latest tag. Package compromise could expose the service key and other resources available to the agent.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The all-posts command repeats the mutable-package execution pattern. Its read-only business function does not prevent a compromised npm release from executing arbitrary code under the runtime user.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The profile-URL posts command executes a mutable @latest package with automatic installation approval. A compromised release would run in the credential-bearing execution environment rather than being limited to retrieving posts.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx -y socialdatax-skills'.

Medium
Category
MCP Rug Pull
Confidence
99% confidence
Finding

The search-suggestions command uses socialdatax-skills@latest instead of a fixed release. This is another occurrence of the same supply-chain weakness, not evidence of a separate malicious component or an actual package compromise.

Content

No source excerpt is available for this finding.

MCP server referenced without pinned version: 'npx availability'.

Medium
Category
MCP Rug Pull
Confidence
70% confidence
Finding

npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.

Content

No source excerpt is available for this finding.