Back to skill

Security audit

xix-bazi

Security checks for vulnerabilities and agentic risk

Overview

The skill is marked suspicious because scanners report a possible unsafe report-file path and a privacy concern about sending personal birth details to a remote service without a required warning.

Consider the privacy implications before installing: the scanner reports that precise birth details are sent to a remote service without a required warning. Also consider the reported risk that a server-controlled report filename could write JSON files outside the chosen directory. The skillspector scan was partial because two local path-like references were unresolved, so its evidence is incomplete.

Vulnerability Patterns
  • Insecure Skill Coding PracticesFinds exploitable flaws such as hardcoded secrets or command injection
  • 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)

T09 · Insecure Skill Coding Practices

Warning
Location
scripts/skill_api.py
Finding

Server-controlled report filename escapes the selected output directory

Content
View full analysis

Impact

The provider can create or overwrite writable .json files outside the selected directory when their parent directories already exist, potentially corrupting application configuration or other local data. The enforced .json suffix limits target filenames; code execution is not established.

Vulnerability Patterns
  • Data ExfiltrationExternal Transmission, Env Variable Harvesting, File System Enumeration
  • 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
  • Prompt InjectionInstruction Override, Hidden Instructions, Exfiltration Commands
Findings (4)

Tainted flow: 'req' from os.environ.get (line 29, 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/skill_api.py (reported line 36)May include surrounding context.

python
method="POST",
    )
    try:
        with urllib.request.urlopen(req, timeout=timeout) as r:
            return json.loads(r.read().decode("utf-8"))
    except urllib.error.HTTPError as e:
        try:

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.

The report workflow sends personal birth details to a remote service without requiring a user-facing privacy warning.

Medium
Category
Output Handling
Confidence
94% confidence
Finding

The workflow directs the agent to transmit precise birth time, birthplace, and gender to an external service without requiring a clear disclosure and informed confirmation before submission. Although remote report generation is the skill's intended function, collecting these details for an account-linked report creates a meaningful privacy risk when users do not understand the destination, caching, or retention of their information.

Content

No source excerpt is available for this finding.

External Transmission

Medium
Category
Data Exfiltration
Confidence
60% 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 · scripts/skill_api.py (reported line 24)May include surrounding context.

python
import urllib.request
from pathlib import Path

BASE = os.environ.get("BAZI_API", "https://api.xinjianxue.com/api/xinjianxue/skill")
ACCOUNT_PATH = Path.home() / ".xix-bazi" / "account.json"