Back to skill

Security audit

小红书数据 API · Xiaohongshu (RedNote) data API · DataXAPI

Security checks for vulnerabilities and agentic risk

Overview

The skill is marked suspicious because scanners flag forwarding user wording to an external service and using an unpinned package; review these risks before installing.

Before installing, consider whether you are comfortable with the skill sending query wording to DataXAPI and whether you can avoid including sensitive details. Review the package version and pin a version you trust; the scan was partial, so its results do not establish that the skill is safe.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Supply ChainUnpinned Dependencies, External Script Fetching, Obfuscated Code
Findings (5)

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 97)May include surrounding context.

md
- **IDs are 24 characters.** Notes, users, topics and products are named by 24 hexadecimal characters. A note's link ends in its ID (/explore/<id> or /discovery/item/<id>); short links and share texts are not taken.
- **Search returns an excerpt.** A search result is the card, not the note: its text is an excerpt and its title has lost its emoji. An account's note list gives the first 100 characters. Note detail has the whole text.
- **A link that opens.** Search results carry a link with the access token the website asks for. An account's note list has no link: fetch the note by its ID to get one.
- **No view counts.** Notes come without a view count: the platform does not give one.
- **The PGY creator ID.** PGY endpoints take the creator ID from the PGY creator search. That search matches what creators write about; for terms no creator matches it still returns loosely related creators, not an empty list.

The discovery workflow sends the user's wording to DataXAPI without a privacy warning.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The fallback discovery instruction explicitly directs the agent to send the user's wording to an external service without first minimizing it or checking for sensitive content. External search is expected for this skill, but forwarding task wording rather than just necessary endpoint-discovery terms could unnecessarily disclose personal information or confidential context.

Content

No source excerpt is available for this finding.

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

Medium
Category
MCP Rug Pull
Confidence
94% confidence
Finding

The skill recommends running an unpinned npm package through npx dataxapi or installing it globally without a version. Although this is a CLI dependency issue rather than an MCP server version issue, a compromised future release could execute code with the agent's permissions and potentially access its API key or local files.

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

dataxapi call xiaohongshu.notes.search 'query=咖啡' --max-price 0.02

text

**MCP.** Server `https://api.dataxapi.com/mcp`, header `Authorization: Bearer <key>`. Tools: `find` (with `platform: "xiaohongshu"` it lists this platform's endpoints), `describe` (parameters and price), `call`, `read_more` (free), `account` (balance). Setting the server up: https://dataxapi.com/agents.md

```json
{"capability":"xiaohongshu.notes.search","query":"咖啡","max_price":"0.02"}

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

REST:

bash
curl -G "https://api.dataxapi.com/v1/xiaohongshu/notes/search" \
  --data-urlencode "query=咖啡" \
  -H "Authorization: Bearer $DATAXAPI_API_KEY"