Back to skill

Security audit

Xiaohongshu Insight

Security checks for vulnerabilities and agentic risk

Overview

This skill is a Xiaohongshu trend-analysis helper with mock-data scripts and expected local export/report writes, with no evidence of hidden access, persistence, exfiltration, or destructive behavior.

Install only if you want Xiaohongshu-specific trend-analysis helpers. Treat the included scripts as mock/demo tooling, and avoid pointing export or report outputs at files you do not want replaced because overwrite confirmation is not implemented.

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
  • Trigger AbuseOverly Broad Trigger, Shadow Command Trigger, Keyword Baiting Trigger
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • Privilege EscalationExcessive Permissions, Sudo/Root Execution, Credential Access
Findings (7)

Vague Triggers

Medium
Category
Not specified by scanner
Confidence
95% confidence
Finding

The activation description says to use the skill when users mention broad terms like "creative inspiration" or "traffic trends," plus "etc.," without clear boundaries or exclusion conditions. This is ambiguous and may cause unintended invocation for general brainstorming or analytics requests not specifically about Xiaohongshu viral-post analysis.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
88% confidence
Finding

This code opens the provided output path for writing, which can silently overwrite an existing file, but there is no prior confirmation prompt or explicit warning before the write occurs. Because the script performs a user-data-affecting file write to an arbitrary path, it should disclose that behavior before execution.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
86% confidence
Finding

The JSON export function performs a file write to a user-supplied path and provides only a success message after the operation completes. There is no advance disclosure or confirmation that the action may overwrite an existing file.

Content

No source excerpt is available for this finding.

Missing User Warnings

Medium
Category
Not specified by scanner
Confidence
87% confidence
Finding

Saving the workbook is a filesystem-modifying operation that may replace an existing file, yet the script only reports success after the save. Users are not warned beforehand that the export writes to disk at the chosen location.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
98% confidence
Finding

The usage text and function arguments indicate support for querying by --author_id and by a day window, and query_notes also accepts author_id and days parameters. However, the implementation only filters by category, minimum engagement, and low_fan viral type; it never uses author_id or days when selecting results, so the documented behavior contradicts the actual code.

Content

No source excerpt is available for this finding.

Intent-Code Divergence

Medium
Category
Not specified by scanner
Confidence
96% confidence
Finding

The docstring and CLI expose viral types low_fan, period_spike, daily_spike, and continuous, implying those query modes are supported. In practice, only low_fan is handled in the filtering logic, so the documentation and interface overstate what the code actually does.

Content

No source excerpt is available for this finding.

Natural-Language Policy Violations

Low
Category
Not specified by scanner
Confidence
87% confidence
Finding

The file is titled specifically for 'Xiaohongshu', a Chinese platform, and the entire criteria set is framed as universally applicable to that locale/platform without stating that it is region-specific guidance or offering any alternative locale choice. Under the policy rule, locale-specific constraints should be explicitly justified when they are imposed.

Content

No source excerpt is available for this finding.

Static analysis

No suspicious patterns detected.