Back to skill

Security audit

socialdatax-xhs-creator-profile

Security checks for vulnerabilities and agentic risk

Overview

The skill is read-only and purpose-aligned, but it asks agents to run an unpinned npm package at runtime with the user's API key available.

Install only if you are comfortable with the SocialDataX npm package being downloaded and executed dynamically. Prefer a pinned, reviewed package version or a preconfigured MCP tool, and run it with only the `SOCIALDATAX_API_KEY` and minimal filesystem/environment access exposed.

Vulnerability Patterns
  • Insecure DependenciesIntroduces malicious components through unsafe dependency sources
  • 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)

T08 · Insecure Dependencies

Warning
Location
SKILL.md:29
Finding
Execution of an Unpinned Third-Party npm Package## Vulnerability Details **File Location**: `SKILL.md`, lines 29–36 **Vulnerability Type**: Supply-chain exposure through mutable dependency execution **Risk Level**: Medium **Complete Code Snippet**: ```bash npx -y socialdatax-skills@latest xhs user-info \ --user-id "<user_id>" --pretty --source-client socialdatax-skills \ --source-platform clawhub --source-skill socialdatax-xhs-creator-profile npx -y socialdatax-skills@latest xhs user-info \ --profile-url "<profile_url_or_share_text>" --pretty \ --source-client socialdatax-skills --source-platform clawhub \ --source-skill socialdatax-xhs-creator-profile ``` ### Technical Analysis The documented commands instruct the agent to use `npx -y` to download and execute `socialdatax-skills@latest`. The `latest` npm tag is mutable, so the code executed during a future invocation may differ from the code reviewed when this Skill was published. The `-y` option suppresses the normal installation confirmation, enabling unattended retrieval and execution. No version lock, package-integrity hash, vendored implementation, or other mechanism constrains the downloaded artifact to a reviewed release. The package implementation is not present in the audited project, which contains only `SKILL.md`; consequently, its runtime behavior cannot be verified from the repository. The Skill also declares `SOCIALDATAX_API_KEY` as a required environment variable. A downloaded npm process may inherit that credential and the agent process's filesystem and network permissions. This is a supply-chain risk rather than proof that the current package release is malicious. ### Attack Path 1. An attacker compromises the npm publisher account, package build/release pipeline, or an upstream dependency used by `socialdatax-skills`. 2. The attacker publishes a malicious release and assigns it to the mutable `latest` distribution tag. 3. An agent follows the Skill documentation and in ...[truncated 1172 chars]
Remediation
## Remediation Suggestions 1. Replace `socialdatax-skills@latest` with an exact, reviewed package version; do not use a version range or mutable distribution tag. 2. Verify the package artifact against a trusted integrity hash or lockfile before execution. 3. Review the pinned package and its transitive dependencies before deployment, and repeat that review before upgrading. 4. Prefer a controlled installation step over downloading executable code at every invocation. 5. Run the CLI in a sandbox or restricted service account with minimal filesystem access and outbound network access limited to required endpoints. 6. Expose only `SOCIALDATAX_API_KEY` to the process rather than the agent's complete environment, and avoid making unrelated credentials available. 7. Remove unattended `-y` execution where interactive approval is feasible, or enforce package allowlisting in automated environments. 8. Add dependency monitoring and an explicit upgrade process so new versions are reviewed, tested, and pinned before use.
Vulnerability Patterns
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
  • 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
Findings (2)

Rp1

Medium
Category
MCP Rug Pull
Confidence
92% confidence
Finding
The skill instructs agents to execute `npx -y socialdatax-skills@latest`, which pulls and runs the newest package version at runtime without pinning or integrity control. If the upstream package is compromised, a malicious release is published, or a dependency is hijacked, the agent could execute attacker-controlled code with access to the user's environment, including `SOCIALDATAX_API_KEY` and local system capabilities.

Rp1

Medium
Category
MCP Rug Pull
Confidence
92% confidence
Finding
This command repeats the same unsafe pattern: `npx -y socialdatax-skills@latest` causes remote code to be downloaded and executed dynamically each time the skill is used. In this skill's context, that code may access network, shell, and the configured `SOCIALDATAX_API_KEY`, making a supply-chain compromise materially dangerous rather than theoretical.

Static analysis

No suspicious patterns detected.