Back to skill

Security audit

guipi-lowfans-hotnotes

Security checks for vulnerabilities and agentic risk

Overview

ClawScan marks this skill suspicious because scanners report undeclared network behavior, a persistent local preview server with broad file exposure, and actions that may affect unrelated processes or include out-of-scope cached data.

Consider the suspicious verdict before installing. In particular, review whether the local preview server’s directory exposure and lifetime, the shutdown behavior, and the tag-report network and quota use are acceptable for your environment. Scanning was partial because some local references were unresolved, so the results do not establish that every behavior or reference was assessed.

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
  • Excessive AgencyUnrestricted Tool Access, Autonomous Decision Making, Scope Creep
  • Behavioral ASTexec() Call, eval() Call, Dynamic Import
  • 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
Findings (24)

Tainted flow: 'params' from os.environ.get (line 710, credential/environment) → requests.get (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 · fetch_notes.py (reported line 727)May include surrounding context.

python
cid = _client_id()   # 匿名档设备标识,服务端双轨配额用
                if cid:
                    hdrs["X-Client-Id"] = cid
            resp = requests.get(url, params=params,
                                headers=hdrs, timeout=25)
        except requests.RequestException as e:
            if attempt == RETRIES:

Tainted flow: 'key' from os.environ.get (line 2874, credential/environment) → requests.get (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 · fetch_notes.py (reported line 808)May include surrounding context.

python
"""GET /v1/categories (flat). Reference data, costs no row quota."""
    _need_requests()
    url = f"{base_url.rstrip('/')}/categories"
    resp = requests.get(url, params={"flat": 1},
                        headers={"X-API-Key": key} if key else {}, timeout=25)
    if resp.status_code != 200:
        raise FetchError("api", f"categories http {resp.status_code}: "

Tainted flow: 'port' from os.environ.get (line 2424, 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 · fetch_notes.py (reported line 2388)May include surrounding context.

python
def _serve_ok(port: int) -> bool:
    """端口上跑的是不是能正常响应 HTTP 的服务(比 TCP 连通更可靠)。"""
    try:
        with urllib.request.urlopen(f"<redacted-url>", timeout=1.0) as r:
            return 200 <= r.status < 400
    except (OSError, urllib.error.URLError, ValueError):
        return False

Description-Behavior Mismatch

High
Category
MCP Tool Poisoning
Confidence
98% confidence
Finding

With LIUCHUAN_BASE_URL configured but no API key, normal execution calls probe_meta(args.base_url) before checking anon and not args.allow_anon. Thus, it contacts the service even without explicit anonymous-mode consent. Additionally, --tag-report bypasses the placeholder-endpoint guard and can reach the same network probe even when no endpoint is configured. These paths contradict the explicit configuration-related no-request guarantee. Local caching and the loopback preview server are supporting implementation details, not separate mismatches.

Content

No source excerpt is available for this finding.

Skill declares no tool scope ('permissions' or 'allowed-tools') but code capabilities were detected: env, file_read, file_write, 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.

Tainted flow: 'dst' from os.environ.get (line 234, credential/environment) → shutil.copy2 (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 236)May include surrounding context.

python
for f in LEGACY_CACHE_DIR.glob("notes_*.json"):
                dst = CACHE_DIR / f.name
                if not dst.exists():
                    shutil.copy2(f, dst)
                    copied += 1
            if (LEGACY_CACHE_DIR / "history").exists():
                HISTORY_DIR.mkdir(parents=True, exist_ok=True)

Tainted flow: 'dst' from os.environ.get (line 234, credential/environment) → shutil.copy2 (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 243)May include surrounding context.

python
for f in (LEGACY_CACHE_DIR / "history").glob("*.json"):
                    dst = HISTORY_DIR / f.name
                    if not dst.exists():
                        shutil.copy2(f, dst)
                        copied += 1
            for name in ("theme_cache.json", "quota.json", "serve.json"):
                src = LEGACY_CACHE_DIR / name

Tainted flow: 'CACHE_DIR' from os.environ.get (line 148, credential/environment) → shutil.copy2 (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 248)May include surrounding context.

python
for name in ("theme_cache.json", "quota.json", "serve.json"):
                src = LEGACY_CACHE_DIR / name
                if src.exists() and not (CACHE_DIR / name).exists():
                    shutil.copy2(src, CACHE_DIR / name)
                    copied += 1
        # 人设 / 上次参数以前也放在缓存目录,迁到配置目录
        CONFIG_DIR.mkdir(parents=True, exist_ok=True)

Tainted flow: 'dst' from os.environ.get (line 234, credential/environment) → shutil.copy2 (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 256)May include surrounding context.

python
("last_run.json", LAST_RUN_FILE)):
            src = LEGACY_CACHE_DIR / name
            if src.exists() and not dst.exists():
                shutil.copy2(src, dst)
                copied += 1
        marker.write_text(datetime.now().strftime("%Y-%m-%d %H:%M"),
                          encoding="utf-8")

Tainted flow: 'TAGS_FILE' from os.environ.get (line 157, credential/environment) → shutil.copy2 (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 289)May include surrounding context.

python
shutil.copy2(f, new / "history" / f.name)
                    copied += 1
        if TAGS_FILE.exists() and not (new / "theme_cache.json").exists():
            shutil.copy2(TAGS_FILE, new / "theme_cache.json")
            copied += 1
        PATHS_FILE.parent.mkdir(parents=True, exist_ok=True)
        PATHS_FILE.write_text(json.dumps({"cache_dir": str(new)},

Tainted flow: 'dst' from os.environ.get (line 427, credential/environment) → shutil.copy2 (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 429)May include surrounding context.

python
for f in LEGACY_CACHE_DIR.glob("notes_*.json"):
            dst = CACHE_DIR / f.name
            if not dst.exists():
                shutil.copy2(f, dst)    # 复制不搬移,旧目录留着备查
                copied += 1
        if copied:
            print(f"... 已从 {LEGACY_CACHE_DIR} 补 {copied} 份历史缓存到 "

Tainted flow: 'snap' from os.environ.get (line 511, credential/environment) → shutil.copy2 (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 513)May include surrounding context.

python
time.localtime(saved_at or time.time()))
            snap = HISTORY_DIR / f"{path.stem}__{stamp}.json"
            if not snap.exists():
                shutil.copy2(path, snap)
        except OSError:
            pass
    except OSError:

Tainted flow: 'snap' from os.environ.get (line 583, credential/environment) → shutil.copy2 (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 585)May include surrounding context.

python
stamp = time.strftime("%Y%m%d_%H%M", time.localtime(ts))
            snap = HISTORY_DIR / f"{f.stem}__{stamp}.json"
            if not snap.exists():
                shutil.copy2(f, snap)
                added += 1
        if added:
            print(f"... 已为 {added} 份既有缓存补建历史快照", file=sys.stderr)

Tainted flow: 'page' from os.environ.get (line 2291, credential/environment) → pathlib.Path.write_text (file write)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 2355)May include surrounding context.

python
"""
    out_path = Path(out_path)
    out_path.parent.mkdir(parents=True, exist_ok=True)
    out_path.write_text(page, encoding="utf-8")
    return out_path

Unbounded Resource Access

Medium
Category
Excessive Agency
Confidence
75% confidence
Finding

Skill allows unbounded resource consumption (API calls, storage, compute). Without rate limits or quotas, a compromised or misbehaving agent can cause denial-of-service or cost overruns.

Content

Scanner excerpt · fetch_notes.py (reported line 2372)May include surrounding context.

python
def _port_alive(port: int) -> bool:
    try:
        with socket.create_connection(("127.0.0.1", port), timeout=0.4):
            return True
    except OSError:
        return False

Internal Network Request

Medium
Category
Server-Side Request Forgery
Confidence
70% confidence
Finding

Code issues a request to a loopback, link-local, or private-range host. This can reach internal services not meant to be exposed and is a common SSRF pivot.

Content

Scanner excerpt · fetch_notes.py (reported line 2388)May include surrounding context.

python
def _serve_ok(port: int) -> bool:
    """端口上跑的是不是能正常响应 HTTP 的服务(比 TCP 连通更可靠)。"""
    try:
        with urllib.request.urlopen(f"<redacted-url>", timeout=1.0) as r:
            return 200 <= r.status < 400
    except (OSError, urllib.error.URLError, ValueError):
        return False

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
96% confidence
Finding

The subprocess invocation does not permit shell injection, but it starts a persistent HTTP server exposing the report's entire parent directory, which defaults to the working directory. Other local processes or users can retrieve sibling files, directory listings, and files reachable through symlinks; binding to loopback limits remote exposure but does not provide authentication.

Content

Scanner excerpt · fetch_notes.py (reported line 2399)May include surrounding context.

python
flags = 0
    if os.name == "nt":
        flags = 0x00000008 | 0x00000200   # DETACHED_PROCESS|CREATE_NEW_PROCESS_GROUP
    subprocess.Popen(
        [sys.executable, "-m", "http.server", str(port),
         "--bind", "127.0.0.1", "--directory", dir_s],
        stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL,

Tainted flow: 'dir_s' from os.environ.get (line 2433, credential/environment) → subprocess.Popen (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 2399)May include surrounding context.

python
flags = 0
    if os.name == "nt":
        flags = 0x00000008 | 0x00000200   # DETACHED_PROCESS|CREATE_NEW_PROCESS_GROUP
    subprocess.Popen(
        [sys.executable, "-m", "http.server", str(port),
         "--bind", "127.0.0.1", "--directory", dir_s],
        stdin=subprocess.DEVNULL, stdout=subprocess.DEVNULL,

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · fetch_notes.py (reported line 2459)May include surrounding context.

python
"""Windows: netstat -ano;类 Unix: lsof。取占端口的 pid,找不到返回 0。"""
    try:
        if os.name == "nt":
            out = subprocess.run(["netstat", "-ano"], capture_output=True,
                                 text=True, timeout=8).stdout
            for line in out.splitlines():
                parts = line.split()

subprocess module call

Medium
Category
Dangerous Code Execution
Confidence
70% confidence
Finding

subprocess module calls execute external commands. Without careful input validation, this enables command injection.

Content

Scanner excerpt · fetch_notes.py (reported line 2466)May include surrounding context.

python
if len(parts) >= 5 and parts[1].endswith(f":{port}"):
                    return int(parts[-1])
        else:
            out = subprocess.run(["lsof", "-ti", f"tcp:{port}"],
                                 capture_output=True, text=True,
                                 timeout=8).stdout.strip()
            return int(out.splitlines()[0]) if out else 0

Tainted flow: 'port' from os.environ.get (line 2484, credential/environment) → subprocess.run (code execution)

Medium
Category
Data Flow
Confidence
65% confidence
Finding

Data from a source is assigned to a variable that is later passed to a sink, creating a variable-mediated taint flow.

Content

Scanner excerpt · fetch_notes.py (reported line 2466)May include surrounding context.

python
if len(parts) >= 5 and parts[1].endswith(f":{port}"):
                    return int(parts[-1])
        else:
            out = subprocess.run(["lsof", "-ti", f"tcp:{port}"],
                                 capture_output=True, text=True,
                                 timeout=8).stdout.strip()
            return int(out.splitlines()[0]) if out else 0

Preview shutdown claims to stop this skill's server but terminates any process occupying its recorded port.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

stop_server resolves a PID from a recorded port and sends SIGTERM without verifying that the process is the preview server it started. A stale or modified state file, port reuse, or lsof selecting another socket user can therefore terminate an unrelated process that the current user has permission to signal.

Content

No source excerpt is available for this finding.

--tag-report is advertised as offline and quota-free but can make API requests and consume quota.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

--tag-report is described as offline or quota-free, but its execution passes through the network probe and normal collection path before producing the report. With a valid key and missing, insufficient, or expired cache, an apparently local reporting action can transmit filters and consume scarce API quota without the advertised consent.

Content

No source excerpt is available for this finding.

Default history loading adds notes outside the requested keyword and content-type filters.

Medium
Category
Excessive Agency
Confidence
99% confidence
Finding

When a category is supplied, history selection uses only a category-based filename prefix rather than the full category, keyword, and content-type scope. Historical rows are then filtered only by likes and fans, so the default dashboard or JSON output can include notes outside the requested keyword and type, undermining report integrity and potentially disclosing unrelated cached material to report recipients.

Content

No source excerpt is available for this finding.