Back to skill

Security audit

小红书笔记总结 · Xiaohongshu (RedNote) note summary

Security checks for vulnerabilities and agentic risk

Overview

The scanners report a summarization skill with extra, undisclosed options and a privacy concern about sending full share text to LinkDigest, so the verdict is suspicious; the scan was partial.

Consider the privacy implications before installing: submitted share text and links may be sent to LinkDigest, and the scanner says extra features exceed the stated purpose. The scan is partial because a referenced local path could not be resolved, so these results do not establish that all behavior was reviewed.

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
  • Output HandlingUnvalidated Output Injection, Cross-Context Output, Unbounded Output
  • Taint TrackingDirect Taint Flow, Variable-Mediated Taint Flow, Credential Exfiltration Chain
  • MCP Least PrivilegeUnderdeclared Capability, Wildcard Permission, Missing Permission Declaration
  • MCP Tool PoisoningHidden Instructions, Unicode Deception, Parameter Description Injection
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (4)

Tainted flow: 'req' from os.environ.get (line 104, credential/environment) → urllib.request.urlopen (network output)

Critical
Category
Data Flow
Confidence
90% confidence
Finding

Credentials or environment variables flow to a network sink. This is a high-confidence indicator of credential exfiltration.

Content

Scanner excerpt · scripts/linkdigest.py (reported line 112)May include surrounding context.

python
if data is not None:
        req.add_header("Content-Type", "application/json")
    try:
        with urllib.request.urlopen(req, timeout=timeout, context=_SSL["context"]) as resp:
            status, headers, raw = resp.status, resp.headers, resp.read()
    except urllib.error.HTTPError as err:
        status, headers, raw = err.code, err.headers, err.read()

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
96% confidence
Finding

The primary API submission, authentication, polling, and result-display behavior is consistent with the declared summarization service. However, the CLI exposes additional platform coverage and explicitly forwards breakdown, insight, and translate_to requests, which are substantive capabilities absent from the description rather than merely supporting implementation details. The supplied code does not itself establish whether the remote service produces accurate OCR, citations, or billing guarantees; those server-side claims cannot be verified from this chunk. No unrelated local-file collection or file-writing behavior is evident.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, network, shell.

Medium
Category
MCP Least Privilege
Confidence
70% confidence
Finding

Without declared permissions the skill's intent is opaque and cannot be validated.

Content

No source excerpt is available for this finding.

The workflow forwards the user's complete share link or text, including xsec_token, without a privacy disclosure.

Medium
Category
Output Handling
Confidence
88% confidence
Finding

The workflow directs the agent to forward the entire share text and preserve xsec_token without clearly explaining that these values will be disclosed to a third-party service. Although LinkDigest API use is disclosed, complete share text can contain unrelated personal information, and token-bearing URLs can carry access-related context; the evidence does not establish that xsec_token is an account credential.

Content

No source excerpt is available for this finding.