Is Zhengxi Views safe?
- Python network egress
- Python filesystem write/delete
- Python filesystem read
repo is an AI agent_skill analyzed by SkillTotal's deterministic static scanner. The scan found no malicious indicators, though 3 risky constructs are reported for review. It can: filesystem read, filesystem write and network egress — capabilities are what the code can do, not a verdict on intent. Risk score 0/100 (low).
repo
Automated static-analysis result. It can contain false positives and false negatives, and is not a claim about the intent of Zhengxi Views's authors. Report a false positive.
Behavioral traits
How this component maps to the CSA agentic threat model. Descriptive — it never affects the risk score.
Findings (3)
The component reads files from disk.
text = open(path, encoding="utf-8").read()
_LIST = {f["code"]: f for f in json.load(open(LIST, encoding="utf-8"))["funds"]} if os.path.exists(LIST) else {}for it in json.load(open(idx_path, encoding="utf-8")).get("funds", []):data = json.load(open(LIST, encoding="utf-8"))
funds = json.load(open(LIST, encoding="utf-8"))["funds"]
quarters = json.load(open(os.path.join(d, "季度持仓.json"), encoding="utf-8"))
pz = json.load(open(pzp, encoding="utf-8")) if os.path.exists(pzp) else {}text = open(path, encoding="utf-8").read()
Why it matters: Usually legitimate, but worth confirming it can't be steered into reading sensitive files.
Fix: Confirm which files are read and that paths cannot be influenced by untrusted input to reach sensitive locations.
The component writes or deletes files on disk.
with open(os.path.join(OUT, "fund_list.json"), "w", encoding="utf-8") as f:
with open(os.path.join(OUT, "_types.txt"), "w", encoding="utf-8") as f:
with open(dst, "w", encoding="utf-8") as f:
with open(os.path.join(d, "净值业绩规模.json"), "w", encoding="utf-8") as f:
with open(os.path.join(d, "净值业绩规模.md"), "w", encoding="utf-8") as f:
with open(os.path.join(d, "季度持仓.json"), "w", encoding="utf-8") as f:
with open(os.path.join(d, "季度持仓.md"), "w", encoding="utf-8") as f:
with open(os.path.join(d, "净值业绩规模.json"), "w", encoding="utf-8") as f:
with open(os.path.join(d, "净值业绩规模.md"), "w", encoding="utf-8") as f:
with open(os.path.join(d, "季度持仓.json"), "w", encoding="utf-8") as f:
with open(os.path.join(d, "季度持仓.md"), "w", encoding="utf-8") as f:
with open(os.path.join(OUT, "_index.json"), "w", encoding="utf-8") as f:
with open(os.path.join(OUT, "_index.md"), "w", encoding="utf-8") as f:
Why it matters: Usually legitimate, but worth confirming the paths can't be controlled by untrusted input.
Fix: Confirm which files are written/deleted and that paths cannot be influenced by untrusted input.
The component makes outbound network requests.
import requests
requests.packages.urllib3.disable_warnings()
r = requests.get(url, headers={"User-Agent": "Mozilla/5.0"}, timeout=60, verify=False)import requests
requests.packages.urllib3.disable_warnings()
S = requests.Session()
Why it matters: Usually legitimate, but confirm the destinations are expected and no sensitive data leaves.
Fix: Confirm the destination hosts are expected and that no sensitive data is sent off-host.
Check your own component
Run the same evidence-backed scan on any MCP server, agent skill, or package.
Scan your own componentHow we determine this: deterministic static analysis (regex + AST), evidence-anchored, no code execution. Methodology →