Benign python Download

pydantic-zod-codegen 1.0.0

Imports subprocess modulesys.path mutation (alters module search path)

Evidence

Imports subprocess module emitter.py · lines 27–32
27import json
28import shutil
29import subprocess
30import tempfile
31from pathlib import Path
32from typing import Any
curl piped to bash emitter.py · lines 57–60
57 if shutil.which("bunx") is None:
58 raise RuntimeError(
59 "bunx not found on PATH. Install bun via `brew install bun` or `curl -fsSL https://bun.sh/install | bash`."
60 )
Command execution capability emitter.py · lines 66–72
66 with tempfile.TemporaryDirectory() as tmp:
67 in_path = Path(tmp) / "schema.json"
68 in_path.write_text(json.dumps(payload), encoding="utf-8")
69 try:
70 result = subprocess.run(
71 [
72 "bunx",
Python process execution capability emitter.py · lines 85–87
85 if result.returncode != 0:
86 raise RuntimeError(f"bunx json2ts failed (returncode={result.returncode}): {result.stderr.strip()}")
87 return result.stdout
sys.path mutation (alters module search path) cli.py · lines 92–96
92 # `ModuleNotFoundError`. Prepending cwd is the KISS equivalent of running the
93 # CLI under `python -m`.
94 cwd = os.getcwd()
95 if cwd not in sys.path:
96 sys.path.insert(0, cwd)

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.